Permissions

Following necessary permissions are also listed at the top of every page.

Use Case

Permission

List Necessary Permissions

List the permission necessary for your use cases in your app's AndroidManifest.xml

AndroidManifest.xml
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_SMS"/>

Request Phone and SMS Permissions

Telephony telephony = Telephony.instance;

bool permissionsGranted = await telephony.requestPhoneAndSmsPermissions;

Request SMS Permissions

bool permissionsGranted = await telephony.requestSmsPermissions;

Request Phone Permissions

bool permissionsGranted = await telephony.requestPhonePermissions;

Last updated

Was this helpful?