Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
allow android to get data from https
-
I am developing mobile applicaiton using onsen ,angularjs with Cloud Monaca IDE
my application connect to data base using https reqests
when I test the application t on the simulator device
but when I try it on my android mobile I get error when trying connect to https urls
how can I fix this problem?function getUsernamePassword(username, password){ return $http({ method: 'GET', url: "https://xxx.xxx.xxx.xxx:8444/api/checkPassword/" + username+"/"+password }).then(function successCallback(response) { return response; }, function errorCallback(response) { console.log('login faield'); }); }
-
I think you need to add internet permission to your andriodmanifest.xml
<uses-permission android:name="android.permission.INTERNET" />
and add this line to your config.xml
<access origin="https:*"/>
You can do this from Monaca IDE