How can I tell if prompting the user for geolocation will actually show a prompt? If I’ve already asked before and they’ve denied it, requestPermissions will fail silently (on iOS at least).
Rationale: I want to show an onboarding screen that encourages users to share their location, but only if asking for their location will actually show the prompt (ie not old users who have seen my old prompt and denied it).
I’m doing this for notifications permissions via OneSignal.Notifications.canRequestPermission()
, which tells me whether my request will work or not. Is there an equivalent in capacitor geolocation?