cordova-plugin-remote-injection icon indicating copy to clipboard operation
cordova-plugin-remote-injection copied to clipboard

Fix android.view.WindowManager$BadTokenException crashes

Open zsoltboldizsar opened this issue 7 years ago • 4 comments

Connected issue #31

The fix consists of checking whether the host activity, where the dialog is about to be shown, is still running and only proceed if it is, hence avoiding the crash from happening.

zsoltboldizsar avatar May 19 '18 21:05 zsoltboldizsar

I will test this out in the next week or two.

ccorcos avatar Jun 12 '18 21:06 ccorcos

The default promptInterval was changed from 10 to 1 btw.

int promptInterval = webView.getPreferences().getInteger("CRIPageLoadPromptInterval", 1);

ccorcos avatar Aug 02 '18 01:08 ccorcos

Changed it back to its original value. Thanks for your time.

zsoltboldizsar avatar Aug 02 '18 10:08 zsoltboldizsar

Its in production. No more crashes :)

ccorcos avatar Aug 06 '18 23:08 ccorcos