Description: This method is used to ask for permissions for accessing user location, reading sms (Android only)

Request Parameter

Parameter NameTypeDescription
listOfPermissionsArray<string>List of the permissions that you would like to ask for. The permissions you can ask for are described in the table below.
Promise resolve:
      "willShowPermissionAlertAgain": false
      "permissionGranted": true,
      "willShowPermissionAlertAgain": false

Response Parameters


Permission NameDescription
READ_SMS (accessed as Constants.Permission. READ_SMS)Read the user SMS​ for functionalities like OTP detection. Only available for Android.
LOCATION (accessed as Constants.Permission.LOCATION)Retrieve the user's location.


import { Constants } from 'phonepesdk'
let result = await sdk.seekPermission([Constants.Permission.READ_SMS, Constants.Permission.LOCATION])