I'm working with Expo SDK 42 and I'm having some problems retrieving specific data about the foreground location permission.
For ios, for example, when the user gets asked for permission, he gets 3 options: "allow once", "allow while using the app" or "don't allow".
The permission is being asked using the following method according to the documentation: requestForegroundPermissionsAsync()
. So after requesting it, if the user selects "allow once" or "allow while using the app", that method will return exactly the same object, which contains a property telling that the permission is 'granted', and there's no difference in the return value if the user selected one option or the other.
The problem is, I need to know and differentiate if the user selected "allow once" or "allow while using the app" because, based on that, I will show a different screen.
Do you know if it's possible to do that with Expo? If not, is there a workaround or something I can do to know what option was selected by the user?
Thank you.