Answer the question
In order to leave comments, you need to log in
How to fix cordova app crash on screen rotation?
When the application is loaded, a splashscreen picture is shown.
If you change the orientation of the smartphone, the application crashes and writes:
"An error has occurred in the application."
Set the portrait orientation in the config.xml file:
<platform name="android">
<preference name="Orientation" value="portrait" />
</platform>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question