breautek commented on issue #191: Frequent Locations (Covid19)
URL: 
https://github.com/apache/cordova-plugin-geolocation/issues/191#issuecomment-599215185
 
 
   Apple does have APIs 
[documented](https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_visits_location_service)
 so it appears possible to do this, but I'm not sure if it gives you the exact 
data as shown in the `Frequent Locations` settings screen, but you may receive 
the most recent entry given the quote:
   
   > When you start the visits location service, a recently cached value may be 
reported to your delegate immediately
   
   Android does have a similar feature but I don't think Android has any 
equivalent APIs to receive this information.
   
   I did a quick google search, and found this 
[plugin](https://github.com/oursiberia/cordova-plugin-visit) which already has 
this feature implemented. I cannot vouch if it actually works or not, but a 
quick inspection of the source code appears to match the current apple 
documentation. So in your use case, you might be able to get started 
immediately with the help of this plugin.
   
   Unfortunately, I don't have easy access to apple hardware to work on this 
myself.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to