Skip to main content
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Handle permission pop-ups in your Flutter Integration tests for Android

Learn how to handle permission pop-ups in your Flutter Android apps on BrowserStack App Automate

While testing different scenarios, it is common for Android apps to present various pop-ups or system dialogs that request users to grant different permissions (e.g., contacts, notifications, photos, etc.) to the application.

This feature is available on Android devices only.

Grant all permissions for Android apps

While testing your Android apps, use the Flutter’s autoGrantPermissions parameter to automatically determine which permissions your app requires and grant them to the app on install. These permissions are determined based on the Android manifest defined in the app’s .APK file.

To grant all permissions, set autoGrantPermissions to true when running a build using the builds REST API.

Example cURL request to enable autoGrantPermissions:

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle