0 Replies Latest reply on Mar 9, 2017 3:54 PM by accessi26252617

    Opening a push notification causes the activity to restart

    accessi26252617

      When I open a push notification the webview is restarted.

       

      Start app

       

      I/CordovaLog(19411): Changing log level to DEBUG(3)

      I/CordovaActivity(19411): Apache Cordova native platform version 6.1.2 is starting

      D/CordovaActivity(19411): CordovaActivity.onCreate()

      D/SystemWebViewEngine(19411): CordovaWebView is running on device made by: motorola

      D/CordovaWebViewImpl(19411): >>> loadUrl(file:///android_asset/www/index.html)

      D/CordovaActivity(19411): Started the activity.

      D/CordovaActivity(19411): Resumed the activity.

      D/CordovaWebViewImpl(19411): onPageDidNavigate(file:///android_asset/www/index.html)

      D/CordovaWebViewImpl(19411): onPageFinished(file:///android_asset/www/index.html)

      D/CordovaNetworkManager(19411): toLower : mobile

      D/CordovaNetworkManager(19411): wifi : wifi

      D/CordovaNetworkManager(19411): Connection Type: 3g

      D/CordovaNetworkManager(19411): Connection Extra Info: internet.movil

      D/CordovaNetworkManager(19411): toLower : mobile

      D/CordovaNetworkManager(19411): wifi : wifi

      D/CordovaNetworkManager(19411): Connection Type: 3g

      D/CordovaNetworkManager(19411): Connection Extra Info: internet.movil

      W/PluginManager(19411): THREAD WARNING: exec() call to OneSignalPush.init blocked the main thread for 67ms. Plugin should use CordovaInterface.getThreadPool().

      OPEN NOTIFICATION PUSH

      D/CordovaActivity(20982): Paused the activity.

      D/CordovaActivity(20982): Stopped the activity.

      D/CordovaActivity(20982): CordovaActivity.onDestroy()

      D/CordovaWebViewImpl(20982): >>> loadUrl(about:blank)

      D/CordovaActivity(20982): CordovaActivity.onDestroy()

      D/CordovaWebViewImpl(20982): >>> loadUrl(about:blank)

      D/CordovaActivity(20982): CordovaActivity.onDestroy()

      D/CordovaWebViewImpl(20982): >>> loadUrl(about:blank)

      I/CordovaLog(22084): Changing log level to DEBUG(3)

      I/CordovaActivity(22084): Apache Cordova native platform version 6.1.2 is starting

      D/CordovaActivity(22084): CordovaActivity.onCreate()

      D/SystemWebViewEngine(22084): CordovaWebView is running on device made by: motorola

      D/CordovaWebViewImpl(22084): >>> loadUrl(file:///android_asset/www/index.html)

      D/CordovaActivity(22084): Started the activity.

      D/CordovaActivity(22084): Resumed the activity.

      D/CordovaWebViewImpl(22084): onPageDidNavigate(file:///android_asset/www/index.html)

      D/CordovaWebViewImpl(22084): onPageFinished(file:///android_asset/www/index.html)

      D/CordovaNetworkManager(22084): toLower : mobile

      D/CordovaNetworkManager(22084): wifi : wifi

      D/CordovaNetworkManager(22084): Connection Type: 4g

      D/CordovaNetworkManager(22084): Connection Extra Info: internet.movil

      D/CordovaNetworkManager(22084): toLower : mobile

      D/CordovaNetworkManager(22084): wifi : wifi

      D/CordovaNetworkManager(22084): Connection Type: 4g

      D/CordovaNetworkManager(22084): Connection Extra Info: internet.movil

      W/PluginManager(22084): THREAD WARNING: exec() call to OneSignalPush.init blocked the main thread for 99ms. Plugin should use CordovaInterface.getThreadPool().

       

      Already try to put the following preferences and still not working.

       

      <preference name="AndroidLaunchMode" value="singleTop" />

       

      Or

       

      <preference name="AndroidLaunchMode" value="singleInstance" />