-
Notifications
You must be signed in to change notification settings - Fork 109
How to overcome 'Screen overlay detected' error in Olympus when permissions are dynamically requested?
You need to figure out which third party App is using overlays (i.e. Chat Heads, etc) and disable it from its settings. For example in our case we had Facebook's Chat Heads that were causing issues, so we had to edit permission settings for Facebook and disable 'Draw over other apps' from Settings > Apps > Configure Apps (gear icon) > Draw over other apps > Messenger > Permit drawing over other apps
Notice that this is required only when you get Dynamic Permission dialog, so it only happens the first time. Also, as you can imagine this only happens in Marshmallow (where Dynamic Permissions where introduced) or later.
Unfortunately we haven't found a way to fix that in the App because App has no control over the permission dialog (its created from the Android system) or the third party chat heads.
For more information check here
You need to:
- Initialize RCDevice with RCDevice.ParameterKeys.DEBUG_JAIN_SIP_LOGGING_ENABLED = true
- Make sure that
dangerous
permissionWRITE_EXTERNAL_STORAGE
is in the manifest and also dynamically requested from the user (for Marshmallow and above). Sometimes when testing you might want to have this permission, but still don't want to request it dynamically. A workaround for this is to instead navigate to your App in the Android Settings and enable this permission there. - Run the scenario and afterwards the logs should be in
Download
shared Android folder asdebug-jain.log