Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0
-
None
-
None
-
Cordova Android 7
Tested on a Genymotion Emulator (Android 7.1.0, Nexus 5X)
Target SDK: 26
Description
An exception occurs when a user clicks on a telephone link, for example, from within the InAppBrowser, if the app's activity is being destroyed because of low memory or from the Data Saver feature.
- Enable the 'Don't keep activities' setting in device Developer Settings
- Open app and go into InAppBrowser
- Within InAppBrowser, click a tel:XXX-XXX-XXXX link
- This will launch the Phone app
- A popup appears saying that our app crashed
This is the stack generated:
java.lang.IllegalArgumentException: Receiver not registered: android.widget.ZoomButtonsController$1@2ea8523 at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:1007) at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1330) at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:608) at android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:404) at ait.c(PG:376) at org.chromium.android_webview.AwContents.z(PG:594) at com.android.webview.chromium.WebViewChromium.onDetachedFromWindow(PG:992) at android.webkit.WebView.onDetachedFromWindowInternal(WebView.java:2365) at android.view.View.dispatchDetachedFromWindow(View.java:15561) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3187) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3179) at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3259) at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5917) at android.view.ViewRootImpl.die(ViewRootImpl.java:5894) at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:446) at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:384) at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:124) at android.app.Dialog.dismissDialog(Dialog.java:363) at android.app.Dialog.dismiss(Dialog.java:346) at org.apache.cordova.inappbrowser.InAppBrowser$5$1.onPageFinished(InAppBrowser.java:462) at yk.c(PG:236) at aje.handleMessage(PG:72) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)