Failed to grant permission ios 10.3.1
See original GitHub issuei am trying to use this code in iOS 10.3.1 but gettint error of failed to grant permissions:
componentDidMount(){
if(Platform.OS === 'ios'){
FCM.requestPermissions({badge: false, sound: true, alert: true});
try {
console.log("[Push] requestPermissions");
const values = await FCM.requestPermissions({badge: false, sound: true, alert: true});
console.log(values);
} catch(err){
console.log("[Push] requestPermissions error: " + err);
return;
}
}
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:28 (12 by maintainers)
Top Results From Across the Web
iOS 10.3.2 Beta 1 won't allow me t… | Apple Developer Forums
iOS 10.3.2 Beta 1 won't allow me to connect to internet using safari, vpn, email, even the software update has an error itself....
Read more >What's new in the iOS client | Microsoft Learn
This new feature fixes an issue in Windows 11 remote sessions that caused the screen to flicker, making the session unusable. Updates for ......
Read more >Request Permission for Camera and Library in iOS 10 - Info.plist
If access is allowed, then the code onAccessHasBeenGranted will be run. · If access is not determined, then requestAuthorization(_:) will be called. ·...
Read more >Known issue - Upload widget not working for videos in iOS 10.3
We tried different workarounds but were not able to read the video files because the access is always blocked to the WebView.
Read more >Troubleshoot—ArcGIS Online Help | Documentation
If you have a public account, you can access Esri Community and ArcGIS Blog. ... My web map contains a layer that is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@natashache like @evollu says, the actual OS (on iOS) modal is only shown once, after that it returns the choice the user made; being acknowledged or rejected the notifications. In the code, you can dispatch the
requestPermissions
Promise. It will only resolve when the user accepted the permissions, it will reject if the user denied.In our code, we handle it this way:
For now we only handle the iOS part since our Android app is not targeted for runtime notifications. This might change soon though… I hope this helps!
Thanks @evollu @jeroenbourgois. After adding the catch block the warning is no longer showing and the notifications (mysteriously) started coming in. Let’s hope it stays that way.