Hello, I am developing application with Svelte and Framework7 for Cordova/Phonegap mobile application and now I have a problem with download any data from my server.
Here is an example of my code:
function downloadButton(id){
alert("Downloading..");
Request.get('http://example.com/', {}, function (data) {
alert(data);
});
}
This code works in Cordova development mobile app (throw command phonegap serve
)
But when I install (throw npm run build-dev-cordova-android
) generated apk file into mobile (throw command: ${ANDROID_HOME}/platform-tools/adb install <name-of-apk-file>
so it not works.
Do you anybody know where can be a problem?
Thanks