I've created a social media app that uses geoLocation services. It's an Ionic 4 app with a Firebase backend. GeoLocation services are working with Android but with iOS it's not prompting users for geoLocation access.
I've been looking but can't find an example of how to prompt users for GeoLocation service permission on Platform ready.
Any example on how to check for location services permissions and then prompt a user for location services permissions would be greatly appreciated.
And I assume this would be added to the app.component.ts file.
Sébastien :
You're not supposed to prompt for permission until you request a location. When you ask for a location the first time the permissions system prompt will be displayed.\n\nIf you want to check the permission status for Geolocation at any time you can use the \ncordova-diagnostic-plugin plugin (there is an Ionic wrapper).\n\nOnce installed you can enquire about permissions, status, etc.:\n\nthis.diagnostic.isLocationAvailable(); // returns a promise\nthis.diagnostic.isLocationAuthorized(); // returns a promise\n// etc.\n",
2020-06-02T19:05:35