cordova-3

Angular.js dependency injection in global function

删除回忆录丶 提交于 2019-12-07 21:31:00
问题 I am writing a cordova application with angular.js. When I use the PushPlugin to send push notifications to the user. I have register the user phone like this: var pushNotification = window.plugins.pushNotification; pushNotification.register(successHandler, errorHandler, { "senderID": [gmc_project_number], "ecb": "app.onNotificationGCM" }); The last parameter that I pass is app.onNotificationGCM this is a function that is called when I receive a notification. This is the implementation of

cordova build has erased my files - can they be found

对着背影说爱祢 提交于 2019-12-07 19:27:01
问题 Damn! I ran cordova build from the CLI for an existing Android app with Eclipse, because another post said to do that if you've got problems with the splashscreen plugin. Of course, cordova has reset my project to the start and has deleted all my files. Thankfully I've got a copy of the index.html file, but I had a large database initialization file which is now gone. Is it gone gone? Or has cordova moved it somewhere where it can be retrieved? (cordova 3.3.0) 回答1: I would be surprised if

Offline and online events not getting Called in cordova 3.5.0

独自空忆成欢 提交于 2019-12-07 18:43:39
问题 I am using cordova 3.5.0 to develop my phonegap application . In that i want to check internet connectivity before web service calls . So i added network status plugin by using the command cordova plugin add org.apache.cordova.network-information . Plugin installed successfully in my application . After Adding the plugins i added 2 EventListener's one for online and another for offline. var app = { // Application Constructor initialize: function() { console.log('App initializing...'); this

Log message “_cordovaNative is missing” on Android newer than 3.2

六月ゝ 毕业季﹏ 提交于 2019-12-07 13:40:20
问题 On a Samsung Galaxy Tab 2.0 (Android 4.0.4) and a on Samsung Galaxy S2 (Android 4.12), any Cordova application logs the following message, read through command "adb logcat" D/CordovaLog(21525): file:///android_asset/www/cordova.js: Line 966 : Falling back on PROMPT mode since _cordovaNative is missing. Expected for Android 3.2 and lower only. Does this message indicates that the performance of the app may not be optimal because of the missing "_cordovaNative"? I am using Ubuntu 13.10 and

Jquery Mobile 1.4 external panel do not open after navigating to other page

雨燕双飞 提交于 2019-12-07 08:42:33
问题 We are developing an mobile application using jquery mobile and apache cordova. After migrating to jquery mobile 1.4.0 we switched to external panel but there is a problem with the panel. There is a simple example of the problem in http://jsfiddle.net/Q58MZ/3/ To reproduce the problem you must: 1 click on page1 from the menu link 2 click on page2 from the menu link 3 click on page1 from the menu link 4 click on page2 from the menu link 5 click on "GO TO PAGE 1" link in the content Then the

How to find SHA1 in Cordova project

我是研究僧i 提交于 2019-12-07 05:47:42
问题 So... I need to get a SHA1 key. I'm not a Java fan, so I'm creating my app in Cordova but I need the SHA1 to register it in Google's Developer Console. Does someone know where it is? I tried importing the project in Android studio but still couldn't find anything... 回答1: For Windows you have to create it using command prompt.First go to your java bin directory via the cmd like C:\Program Files\Java\jdk1.7.0_71\bin,then type keytool -list -v -keystore c:\users\your_user_name\.android\debug

Netbeans create/import cordova project from existing source

有些话、适合烂在心里 提交于 2019-12-07 04:59:04
问题 Netbeans create/import cordova project from existing source? I have netbeans 8.0, And created Cordova project from commandline, now i want to open this project in Netbeans, But i don't see any option to import existing source code and create cordova project from source. 回答1: New Project -> HTML5 -> HTML5 Application with Existing Sources 来源: https://stackoverflow.com/questions/23913022/netbeans-create-import-cordova-project-from-existing-source

Phonegap Error: “An error occurred while listing Android targets” while installing Phonegap on Ubuntu

杀马特。学长 韩版系。学妹 提交于 2019-12-07 03:56:58
问题 http://cordova.apache.org/docs/en/3.3.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide As metioned in the above doc, I have already installed the required software for Phonegap as I have getting versions: For Java: $ java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) For ANT $ ant -version Apache Ant(TM) version 1.8.2 compiled on December 3 2011 For Node.JS $ npm -version

[WebCoreSharedBufferData getBytes:range:]: range {0, 8} exceeds data length 0'

余生长醉 提交于 2019-12-07 02:50:34
问题 I'm updating my application for iOs 7.I'd developed this application for cordova(phone gap). while i run this app, i got error: FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175] <Error>: ImageIO: PNG Not a PNG file FirstDemo[175:500b] *** Terminating app due to uncaught

Problems using phonegap / cordova file plugin part 2 - synchronicity

老子叫甜甜 提交于 2019-12-07 02:37:33
I want to add some simple logging capabilities to my cordova app. So I added the file plugin, implemented a super simple log method and tested. My configuration: $ cordova --version 3.5.0-0.2.7 $ cordova plugins org.apache.cordova.file 1.3.0 "File" The test device is a Huawei u8850, running Android 2.3.5 The Logger: window.MyLog = { log: function(line){ window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(FS) { FS.root.getFile('the_log3.txt', {"create":true, "exclusive":false}, function(fileEntry) { fileEntry.createWriter( function(writer) { console.log(line); writer.seek(writer