According to the Android flow on the README, if the user doesn't check "Never ask again?", the status goes back to DENIED. When I ran it on my emulator, it didn't had "Never ask again?" section and the result from checkMultiple() returned denied state.
But when I try to ask for permission again (after denying), permission modal won't show.
It acts like BLOCKED state.
Not sure if Pixel 4 api 30 automatically accepts denied access with never ask again option or there's something wrong with my code.
Please help.
app/src/main/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.terraclose">
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!-- live Streaming -->
<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:allowBackup="false"
android:usesCleartextTraffic="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true">
<!-- Change the value to true to enable pop-up for in foreground on receiving remote notifications (for prevent duplicating while showing local notifications set this to false) -->
<meta-data android:name="com.dieam.reactnativepushnotification.notification_foreground"
android:value="false"/>
<!-- Change the resource name to your App's accent color - or any other color you want -->
<meta-data android:name="com.dieam.reactnativepushnotification.notification_color"
android:resource="@color/white"/> <!-- or @android:color/{name} to use a standard color -->
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyBvy_V9amO72NvCAcQM7foCayB19aJVQ4c"/>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Bug summary
I'm using Pixel 4 API 30 emulator.
According to the Android flow on the README, if the user doesn't check
"Never ask again?"
, the status goes back to DENIED. When I ran it on my emulator, it didn't had"Never ask again?"
section and the result fromcheckMultiple()
returned denied state.But when I try to ask for permission again (after denying), permission modal won't show. It acts like
BLOCKED
state. Not sure if Pixel 4 api 30 automatically accepts denied access with never ask again option or there's something wrong with my code. Please help.app/src/main/AndroidManifest.xml
Library version
3.2.0
Environment info
Steps to reproduce
PERMISSIONS.ANDROID.READ_EXTERNAL_STORAGE
,PERMISSIONS.ANDROID.WRITE_EXTERNAL_STORAGE,
and deny it.DEINIED
Reproducible sample code