I have tested this on iOS 12 and 13.
Here an example:
index.html (1.3 KB)
This used to work, but does not seem to work anymore. I have tried it both with and without the justification text.
Basically what is happening is that the forge.permissions.check works as intended. in this case, when you click the button the first time, permission has not yet been granted so it calls forge.permissions.request.
- iOS does not display the justification text on either modal. (Not a deal breaker.)
- After allowing the permission, no callback is fired. Neither the success or error callback is fired.
- The permission does appear to be granted successfully though as in this example if you click the button a second time, forge.permissions.check does return granted ===true.
So I think it is just the callback for whatever reason.
In our actual app, on success, if granted is true we then call forge.parse.registerForNotifications to register the device with parse. But of course if the callback does not fire, nothing happens.