TestProject Forum

Android permission manager with browserstack

I added the Android permission manager to my test to accept all media permissions, works great on my local device, but causes my tests to fail on browserstack (always stops at first element)

I added the plugin on the 2nd step after app install, then tried it on first step. Both give the same issue on BrowserStack

As soon a I remove the plugin the tests work on browserstack, but they are stopping on permissions and as android versions have different permission views my test stops there. Im not sure if there is another way to handle permissions or something im missing?

Hello,
to overcome this issue you can assign your test to a job and then add this capability to the job capabilities to allow all permission in android devices

chrome_xieY4NyY8h

Then set this capability:

{
  "autoGrantPermissions": "true"
}

Like this:

Let me know if that worked for you.

Problem solved. Thank you.