I have a hybrid app on the play store currently (The Stylista) which runs perfectly across different platforms until its loaded on a Samsung Galaxy 5 or 6..
The app opens to a white screen with my loading gif just spinning and get no further - is there something I am missing? Code should be added?
I have been doing research and see that it is a permission issue..
The answer was adding this snippet to the config file:
<gap:config-file platform="android" parent="/manifest">
<application android:debuggable="true" />
</gap:config-file>
Then I was able to debug in the browser - ALSO with the new android versions, when testing the connection to Cordova, it was not returning the Connection variable thus failing as it was undefined. You can change the code to read:
function getData(tableName, data, onSuccess) {
if (navigator && navigator.connection && navigator.connection.type) {
var networkState = navigator.connection.type;
if (navigator.connection.type == 'none') {
showMessage("You don't appear to be connected to the internet. Please check your connection.");
return;
}
}
Instead of the default:
function getData(tableName, data, onSuccess) {
if (navigator && navigator.connection && navigator.connection.type) {
var networkState = navigator.connection.type;
if (networkState == Connection.NONE) {
showMessage("You don't appear to be connected to the internet. Please check your connection.");
return;
}
}
This will allow your hybrid app to work again :)