Well im trying to make simple app which will display map and user location i did everything like in this tutorial http://kendrickcoleman.com/index.php/Tech-Blog/phonegap-cordova-geolocation-integration-with-google-maps-javascript-api-v3.html
I have downloaded cordova.js from github i have correct key and all i can see on my avd is grey-white screen without any map, coudl someone give me a clue what shoudl i change ?
shoudl i add anything to android manifest or to config file ?
Battled with the same issue for 3 days only to discover that http request are blocked in the latest Ionic except a the cordova whitelist plugin is added.
To add whitelist plugin, run the following command:
ionic plugin add cordova-plugin-whitelist
Related
I'm making a cordova app and I included the background mode plugin, then i used the line cordova.plugins.backgroundMode according to the official documentation and the app doesn't recognize it. Yes I've included cordova.js before app.js, yes I'm sure the plugin is properly installed since it didn't give any error message while installing it, it appears in the plugin list and I reinstalled it with multiple versions and not a single one works. One thing I found weird is that npm didn't add this plugin to config.xml. Can anyone help with this?
I tried reinstalling the plugin, tried just calling backgroundMode, tried using it on an android phone but it doesn't work.
I am working on an Android application using Ionic framework version 2. The app makes an http request to an url, gets the json and displayes the data on the screen. Its a very simple and basic application. With CORS plugin on my chrome, things went smooth. But once i build the apk and run on the device, it doesn't seem to work. I have followed all the suggestions provided in various URL's for the cordova whitelist plugin. But nothing seem to resolve my issue and it is very annoying. Things i did on my end
Step1:
cordova plugin add cordova-plugin-whitelist
Step2:
cordova prepare
config.xml
index.html
While executing the step 1, i got an error unexpected token. But i could see the plugin files are added in the project. Could that be a proble?
In the App Debug log i see this -
SystemWebViewClient: URL blocked by whitelist: http://.com
I'm making my first steps in phonegap. I've been able to set up a project, install a plugin and build the app on my phone without errors. However, now, when I try to change the layout of my www/index.html in the project's root platforms/android/assets/www/index.html stays untouched whenever I (re)build the app.
I'm basically working in eclipse, only for html and javascript I use sublime. I've searched now for a couple of hours for a solution. The most promising approach was this thread: Changes to HTML files not showing on built phonegap 3.0 app ... but even that didn't work.
What can I have done wrong? There's no error, no warning (none resulting from the build process) and I don't know how I could debug the issue. I'm currently using phonegap/cordova 4.2.0
Any clue? Thanks
I still don't know the reason for my problem. However, installing the app via cordova CLI rather than eclipse seems to have solved the problem:
$ cordova prepare android
$ cordova run android
I recently have setup my dev environment to work with Phonegap/Cordova and I am getting a weird success when I add the android platform
I run the command cordova platform add android, it goes through doing its thing and right before it tells me Project successfully created it has Access is denied.
Any ideas? is this an issue?
full cli log including commands:
http://pastebin.com/RBcSgyAJ
Looks quite similar to the issue stated here. Most likely an Antivirus problem, try to disable it temporarily and execute the cordova platform add android command again.
Also, I noticed that your drive volume is J:, is this a network drive? That could also lead to problems.
I am building a Sencha Touch application that I then build using PhoneGap. When I installel the application on my android device for testing I got a strange prompt box asking me to provide a gap_bridge_mode?! What is this and how do I get rid of it (the prompt).
In my current situation I just click the Ok button without providing any value and all works fine. However I cannot release the application with this thing "welcoming" the user.
Please, help!
I think I found what the problem was. In my phonegap config file I indicated the use of phonegap 2.0.0 - the latest available version on the build server - while in the index.html I was loading the 2.1.0 - the latest version available for download.
After I changed index.html to point to version 2.0.0 I don't get this message anymore.
Thanks for the help.