Current location popup did not displayed in iOS 10 - ios

I am a beginner in iOS development and want to fetch user's current location, I have gone through tutorials to fetch current location.
When I run app on iPhone device, location authorization pop-up displayed and after authorize I am able to fetch current location.
Problem which I am facing is when I run app on simulator, I didn't receive authorization pop-up. While if i run same code on other's system with simulator, I received auth popup But is doesn't on my system.
I am using Xcode 8.3.1 to run app. Please help my why auth pop-up doesn't displayed on my system.

Simulators don't have permission to fetch Current Location of users due to nonavailability of GPS. Don't you worry about it. If popup appears on a Device then everything is good.

Related

App does not appear in iPad Settings list when iPad connected to Mac as external device

I am developing an iPhone/iPad photo processing app on a Mac using Swift in XCode 13.4. When I connect an iPhone running iOS 15.6 as an external device, the app appear in the Settings list and I can allow it to have access to Photos. When I connect to an iPad running iOS 15.5 as an external device the program runs but fails when trying to access photos using info[UIImagePickerController.InfoKey.phAsset.rawValue]. This is commonly because permission to access photos has not been given to the app. When I tried to set this I found that the app did not appear in the Settings list. The app does appear in the iPhone settings list even though it has never been installed from the App Store.
Okay, so it turns out that you mean you're running from Xcode on the device. Good! But that is irrelevant to the question, as it turns out.
The question is why it is that, on the iPad, there is no entry for your app in the Settings app, is that right? So that would be because on the iPad you've never done anything that causes the app to request permission (such as photos).
The point is, you cannot initiate the granting of permissions from Settings; the app itself must first request permission from the user (using the correct PHPhotoLibrary call). Only after that happens will the app acquire a place in Settings where the user can modify the initial permissions.
Adding a programmatic definition of photo access options as suggested by Matt in main form viewWillAppear solved the problem as per https://developer.apple.com/documentation/photokit/delivering_an_enhanced_privacy_experience_in_your_photos_app. However, iOS 14 or newer is required.

App Tracking Transparency permission is not prompting when trying to download the application in the App Store through the Apple Ad

We Added the ATT(App Tracking Transparency) into our latest Application release, and everything worked fine except for one thing.
When our users try to download the application in the App Store through the Apple Ad specifically, the ATT permission isn't prompting and the data tracking permission is set to disabled by default.
When we try to download on the same device not through the Apple Ad, when we ran the application we see the ATT permission when we launch the application
If anyone has any input or value to add for this issue it will be very helpful and appreciated.
iOS seems to cache the ATT permission for a while.
Try to restart your iOS device after the app was installed via "apple ads click" and then removed.
After the reboot of your iOS device and installing the app from app store the permission prompt should appear.
My permission appears again after I restart my device as #Jochen Holzer suggested.
Note: The permission always appear after uninstall > install in my colleague, but restarting the device is needed in my case. I assume that we have different version. Mine is 14.4 and hers is 14.1
want to upvote his answer but I lack of point

My application is not showing under location services (Settings->Privacy)

I have developed location based application and it is able to get user's location but there is strange thing in it. Under setting->Privacy->Location Services, it is not showing my application. It is only happening with iPhone 6 Plus for other devices it is showing.
I'm pretty late to the game, but I had the same problem on an iPhone 8. The app would just not show up under location services. On other devices it was showing up fine.
The only solution that worked, after spending hours on finding a non-existent bug in my code, was to Reset Location & Privacy in Settings -> General -> Reset.
I had the same problem. Turns out I simply didn't open the app and get to the prompt to allow the location services.
As long as you don't get the prompt and confirm in the app, it will not show in the Privacy->Location list.

Show permissions dialog again in iOS

I'm working on an iOs app written in Swift with a Camera view controller. The first time I launched this view controller, the permission dialog was shown and I allowed the access to the camera and to the photo library. However, I noticed an issue while allowing the library permission and I would like to be able to reproduce it in order to fix it... But to do that, I need to re-show this permission dialog. However, even if I delete the app and reinstall it, I never get this permission dialog again.
How to get it again so I can fix my issue?
There is no perfect solution
The recommended way is go to "Settings" app
(General > Reset > Reset Location & Privacy).
But as you say, it resets all the apps.
Another option is to change the bundle identifier of the app, so it's considered a new app and it will ask again.
The third option is to delete the app, change your device time for more than 24 hours forward, turn the device off and turn it on again.
I'm not certain that it works in iOS 9, but in iOS 8 the system expired the privacy settings once the application had been uninstalled for 24 hours. You could simulate it by removing the application, moving time ahead a day in Settings and then reinstalling the application.
There's also Reset Location & Privacy, but that's a global reset.
You can go in Settings -> Privacy -> Camera and disable your app.
If you're jailbroken, you can run these shell commands on the device to reset all the permissions dialogs for just your app:
export bundleIdentifier="com.yourcompany.product"
sqlite3 /private/var/mobile/Library/TCC/TCC.db "DELETE FROM access WHERE client = '${bundleIdentifier}'"

Iphone Application does not ask for permission everytime

I have an ios app which uses calendar, location bluetooth and motion API. When i do a clean install to the app (remove the app completely from iPhone) and then build it using xCode, my app doesn't every time prompt to the user the consent dialog for example. This app wants to use Calendar. Do you allow it to do that.
I want to do some testing and i want this to prompt every time when user install the app after removing it from iPhone.
Any ideas?
From what I know… the system alert is prompted to the user only once!
If you delete the application from your device, the privacy settings will not be removed and will be there even if you reinstall the application. To remove them you have to manually reset the privacy settings from General-> Reset-> Reset Location & Privacy.

Resources