Checking Permissions Status
To get information about the user's permission status, you can call thecheckPermissionFlow function. This returns 3 possible values:
- "CLOSE FLOW"
- "NEVER ASK AGAIN"
- "NO ACTION PERFORMED"
Then, use checkPermissionFlow and arePermissionsEnabled to view the current permission status and most recent interaction of the user with the SDK:
import SmsPngmeAndroid, { checkPermissionFlow } from '@pngme/react-native-sms-pngme-android';
const testFunction = async() => {
const lastActionPerformed = await checkPermissionFlow();
Alert.alert("Result", lastActionPerformed);
}Updated about 1 month ago
