[ad_1]
I am working with Expo SDK 42 and I am having some issues retrieving particular information in regards to the foreground location permission.
For ios, for instance, when the person will get requested for permission, he will get 3 choices: “enable as soon as”, “enable whereas utilizing the app” or “do not enable”.
The permission is being requested utilizing the next technique based on the documentation: requestForegroundPermissionsAsync(). So after requesting it, if the person selects “enable as soon as” or “enable whereas utilizing the app”, that technique will return precisely the identical object, which accommodates a property telling that the permission is ‘granted’, and there is no distinction within the return worth if the person chosen one possibility or the opposite.
The issue is, I have to know and differentiate if the person chosen “enable as soon as” or “enable whereas utilizing the app” as a result of, primarily based on that, I’ll present a distinct display.
Are you aware if it is potential to do this with Expo? If not, is there a workaround or one thing I can do to know what possibility was chosen by the person?
Thanks.
[ad_2]
