GeoFencing & Beacon Monitoring/Ranging With Diffrent Location Permissions. What could be the Standard Solution?

Hi Apple Team,



We have scenario where We want that our application will detect beacon with Both the Authorisation status That is "WhenInUse" and "AlwaysInUse".


We know that With Authorisation status WhenInUse "No Region monitoring will work in application"


We came across with the following options:


Option 1

Whenever Application is in foreground state Application will Start the Ranging.

Whenever Application goes in to the background state we can start Beacon Monitoring & Stop the Ranging.

With above anny of two Permissions given by user Beacon detection will work in foreground state and will work in background state if Authorisation status is "AlwaysInUse".(We know that With Authorisation status "WhenInUse" Application will not detect any beacon in background/kill state).


Now in following scenario We Suspect that our aforesaid logic will not work.


- Whenever Application is in foreground annd if user will force quit the application by swiping up and in that case We can't stop the ranging and start only monitoring of the beacons.


Question 1: I would like to request you to give suggestion that is that possible that before going in to the kill/terminate state if we can stop ranging of the beacon and start monitoring only By the help of ApplicationWillTerminate method of AppDelegete?

Question 2: How much time we will have to perform any given task if user swipe up and force quit the application from switcher?


Option 2

If above scenario Fails than we can have some dynamic detection logic.

When user authorised the permission with "WhenInUse" Option then beacon ranning will take in place.

If user has authorised the permission of "AlwaysInUse" We can do simple monitoring of the beacons.


With Above Solution If application is in killed/background state then does it notify to application with didchangeauthorisationstatus with updated status becasue we need change our detectionn logice to monitoring/ranging depends upon the latest authorisation status of the app.


Question 3: Which Of the above option is actaully a standard solution and will workout if we want our application to detect beacons with any of the two permission given by user.(If you have any other suggestion then please suggest)



GeoFencing With WhenInUse Authorisation Status

We have also Geofencing in our app. Right now if user allows permissionn to "WhenInUse" Geofencing is not working.

Question 4 : Do we have any other option to identifye Geofence region monitoring if user has given "WhenInUse"Permission?


I have tried to explore Apple Documentation and other sources on internnet but couldnt get strong views on aforesaide questions.

It would be really helpfull if you can please reply on this.

We are expecting a reply for above question..Please do revert as soon as possible.


Thanks & Regards

GeoFencing & Beacon Monitoring/Ranging With Diffrent Location Permissions. What could be the Standard Solution?
 
 
Q