skip to Main Content

React Native PermissionAndroid POST_NOTIFICATIONS get's automatically denied without asking and the app get's bugged

I execute following code in my useEffect hook: const requestNotificationPermission = async () => { try { const granted = await PermissionsAndroid.request( PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS, { title: 'Notification Permission', message: 'Allow the app to send you notifications', buttonNeutral: 'Ask Me Later', buttonNegative:…

VIEW QUESTION

Storage Permission in Android 13 – Flutter

I'm making the use of read and write permission for accessing external storage and for getting the permission, I'm using the permission handler package AndroidManifest.xml <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> For getting the permission from user var status = await Permission.storage.request();…

VIEW QUESTION
Back To Top
Search