cordova

NetworkStatus0 = TypeError: 'undefined' is not a function

牧云@^-^@ 提交于 2020-02-08 04:16:11
问题 I'm using cordova-1.6.1 on Mac Lion with Xcode 4.3.1. I'm getting following error CordovaApp[322:13403] [INFO] Error in success callback: NetworkStatus0 = TypeError: 'undefined' is not a function when following line is executed. navigator.network.isReachable("phonegap.com", reachableCallback, {}); A function is defined as follows function reachableCallback(reachability) { var networkState = reachability.code; alert('Connection type: ' + networkState + ' - ' + reachability.message); } I'm

Cordova plugin: danwilson/google-analytics-plugin not working on android device

こ雲淡風輕ζ 提交于 2020-02-08 02:49:30
问题 I'm trying to use the google analytics on Cordova app, I've followed the instruction on the the repository , and all works well on the chrome android emulator . I see live activity on google analytics site. but when i log into the app from the device , it seems the analytics is not recognizing the the app. in my config.xml I have : < access origin="*" > In the android manifest I have the permissions : android.permission.INTERNET android.permission.ACCESS_NETWORK_STATE When running in debug

Execute Phonegap function from Android Java

跟風遠走 提交于 2020-02-07 05:05:06
问题 I'm developing an Android App with Phonegap 2.9.0 and I would like to implement a special function but I don't know how to do it. I want to use an Android Status Notifications and if I execute a function in the Java Code, I want that Phonegap executes a special function. But I don't find any method how to do this. I just found how to send data from Phonegap to the Java, but I'm looking for the other way around. I hope you can help me. Thanks! 回答1: From inside your Activity extending

Firebase Simple Login Issue with Phonegap

非 Y 不嫁゛ 提交于 2020-02-07 05:00:20
问题 I am trying to use "password" authentication with Firebase Simple Login in Phonegap but getting this error: Web Console(857): FirebaseSimpleLogin(): Due to browser security restrictions, loading applications via `file://*` URLs will prevent popup-based authentication providers from working properly. When testing locally, you'll need to run a barebones webserver on your machine rather than loading your test files via `file://*`. The easiest way to run a barebones server on your local machine

Android phonegap app : unable to retrieve an image taken by the camera using my own code (not phonegap's)

醉酒当歌 提交于 2020-02-07 03:20:26
问题 Note- even though im using phonegap, the question is not about some issue in that. Hi, im developing a android app. my app is using phonegap 1.3. mi problem... Im using phonegap apis to take a picture and display it in my app. But whats happening is due to some reason the os kills my app after the camera is launched, so that after the photo is clicked, my app is relaunched and it doesnt get the info abt the taken picture. As a workaround to this problem (the problem), i designed a phonegap

Cordova / Phonegap downloading a lot of images, best possible solution

谁说我不能喝 提交于 2020-02-06 04:42:31
问题 I need some advice. I have Phonegap / Cordova content app created using Ionic Framework. This app is supose to work both offline and online. So far I managed to implement offline database (SQLite), but I have some trouble with images. The first strategy I chose was to "install" all the images at the beginning of first start of app (in meanwhile Progress Bar was visible) It works, but I think that first start of app is simply too slow (it's over 800 images) It takes more than 7 minutes, which

why does netbeans 8 want to install unused cordova plugins

跟風遠走 提交于 2020-02-05 04:20:09
问题 I'm trying to emulate a Cordova project in Netbeans 8. I'm getting an error while it tries to clone plugins for the project. I would also like to resolve that issue, but moreso don't understand why it needs these plugins. I am not using features that need the camera, file-transfer, or many others. I can use npm to run cordova plugin add xxx , but when i rerun, netbeans just tries to git clone the next plugin that i don't need. Why and how do i tell netbeans to skip them? ant -f C:\\DATA\

How to set tile_data from .mbtiles file as tiles for leaflet?

烈酒焚心 提交于 2020-02-05 04:09:09
问题 I'm developing a hybrid mobile app using meteorjs and cordova. App needs to have offline map support. I exported a .mbtiles file using Maperitive, of area that can be viewed offline and copied the file to my app so I can access it when loading tiles with Leaflet. For that i used cordova plugins for file system (to copy .mbtiles to the right place) and cordova sqlite plugin (for accessing .mbtiles data) and that part works, I can successfully load tile_data when leaflet requests tiles whit z,

$_files is empty in image upload in Phonegap/Cordova [closed]

孤街醉人 提交于 2020-02-05 03:56:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Now its almost 6 days and I am trying to fix image upload issue in cordova-php but not able to fix it. I tried multiple solutions from Google and Stack Overflow. But none of them is working for me. I am using the below code as front end. <div> <h3>Server URL for upload.php:</h3> <input id="serverUrl" type="text"

“unfortunately API demo has stopped” - PhoneGap unaltered HelloWorld app does not run

我怕爱的太早我们不能终老 提交于 2020-02-05 03:29:10
问题 Note: I am a total Cordova/PhoneGap newbie (former ActionScript programmer) Hello. I am trying to run this 101 tutorial: http://docs.phonegap.com/en/3.5.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide It works fine until the Deploy to Emulator section, where I run this line: $ cordova emulate android My emulator opens, but just displays the following message: Unfortunately, API demo has stopped I have read all the posts here with "unfortunately API demo has stopped" in them