Stop Cordova App to Restart on Split-Screen

This issue can be fixed by adding the following code in config.xml

<edit-config file="AndroidManifest.xml" target="/manifest/application/activity[@android:name='MainActivity']" mode="merge">
  <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" />
</edit-config>

This solution has been proposed for the cordova issue @

https://github.com/apache/cordova-android/issues/799


Leave A Comment

Your email address will not be published.