0

I have an app that uses the GPS location in photos of the camera roll.

I want to notify the user while he is in the default iOS camera app (not in-app camera) to turn on his GPS permission to the camera app if it's off.

Is it even possible to do so? If not, can I check if the camera app has GPS permission inside my own app (for example, when I load the camera roll photos - to check if the default camera app has GPS permission)?

Thank you!

rmaddy
  • 314,917
  • 42
  • 532
  • 579
FS.O6
  • 1,394
  • 2
  • 20
  • 42
  • check this link http://stackoverflow.com/questions/4700987/how-to-check-if-location-services-are-enabled-for-a-particular-app-prior-to-ios – Rahul Dec 07 '16 at 17:52
  • @RahulMishra I want to check if the location is enabled for ANOTHER app (the default camera app), so I can't use `CLLocationManagerDelegate` methods here – FS.O6 Dec 07 '16 at 18:19
  • I doubt apple won't provide any API's or property for this. – Rahul Dec 07 '16 at 18:32
  • @RahulMishra Do you think Apple will or won't provide? – FS.O6 Dec 07 '16 at 18:33
  • it won't. It breaks the sandbox principal. – Rahul Dec 07 '16 at 18:35
  • @RahulMishra So there is no way to do it? – FS.O6 Dec 07 '16 at 18:35
  • @FS.OG saying no is not good for this. There is always an alternative way. You can check for location after taking photo and show message based on that. see this link http://stackoverflow.com/questions/10302250/reading-the-gps-data-from-the-image-returned-by-the-camera-in-ios-iphone – Rahul Dec 07 '16 at 18:49
  • @RahulMishra But I'm not using in-app camera, I want it on the default app – FS.O6 Dec 07 '16 at 18:50
  • You can't do this – Paulw11 Dec 07 '16 at 19:37

0 Answers0