How to get the current location of a user without asking permission?

can someone tell me how can i get current location-latitude / longitude information of a user without asking his permission? How to automatically locate a user? Thank you in advance. Shreya

+4
source share
2 answers

From Apple documentation

Important: in addition to the fact that the equipment is unavailable, the user has the ability to deny application access to the data location service. During initial use of the application, the primary location framework prompts the user to confirm that the use of the location service is acceptable. If the user rejects the request, the CLLocationManager object reports a corresponding error to its delegate in future Requests. You can also check the explicit permission of applications using the authorizationStatus method.

Thus, the apple will not allow the use of the CoreLocation database without user permission. I'm not sure there is no other way without using the CoreLocation infrastructure, at least with an open API.

+7
source

I would not consult with circumventing Apple TOS regarding obtaining user permission to enable the CoreLocation application for the application. It appears that the correct payment method is to reject your application. Apple may be sensitive to such things .

Here is a related question that I found .

+2
source

Source: https://habr.com/ru/post/1383007/


All Articles