cordova-3

Cordova 3.5 deviceready event not fired after 5 seconds

一世执手 提交于 2019-12-04 10:24:32
I recently upgraded my cordova app from cordova v2.9 to v3.5.0. After adding plugins from command-line, I imported my app to eclipse so that I can test on an android device. But, when I run the app, I see below logcat message: 07-08 11:24:03.359: I/Web Console(1500): deviceready has not fired after 5 seconds. at file:///android_asset/www/cordova/cordova.js:1154 07-08 11:24:03.359: D/CordovaLog(1500): file:///android_asset/www/cordova/cordova.js: Line 1147 : Channel not fired: onFileSystemPathsReady 07-08 11:24:03.359: I/Web Console(1500): Channel not fired: onFileSystemPathsReady at file://

Apache cordova on android where are scrollbars?

て烟熏妆下的殇ゞ 提交于 2019-12-04 10:00:50
I try to build a simple app with cordova which target android I just want to have a scrollable div but if the content is smaller than the div's height, the scrollbar is always visible if the content is bigger than the div's height, the scrollbar never appear, even if I scroll : the scroll is possible but no scrollbar position indication My layout is simple : <body> <div id='views'> <div class='view'> Lorem ipsum ... </div> </div> </body> Css is simple too : #views { position : absolute; top:0; right:0; bottom:0; left:0; } .view { position : absolute; top:0; right:0; bottom:0; left:0; overflow

Remove Title Bar Phonegap

浪子不回头ぞ 提交于 2019-12-04 08:01:34
How to remove the title bar that is showing for a second or so at the start of the application in phonegap build? I tried fullscreen as showed in Phonegap remove title bar at start and its working, the app is full screen but the title bar stil shows up for a second or so at the start of the app. When buildin locally I can remove the title bar form manifest.xml with the command android:theme="@android:style/Theme.NoTitleBar"> How can I completely remove the title bar from phonegap build? I solved it by adding these lines to the config.xml <gap:config-file platform="android" parent="/manifest">

Cordova Plugin for Launch App from Browser using URL Schemas

故事扮演 提交于 2019-12-04 07:55:50
We can launch apps from browser in iOS and Android both.. And it is implemented using URL schemas. Wnat to know is there any Cordova Plugin to handle above scenario..? Have you tried LaunchMyApp-PhoneGap-Plugin ? (url : https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin ) It is pretty straight forward and is based on defining custom schema. I am using cordova build so the only thing I had to do was add <gap:plugin name="nl.x-services.plugins.launchmyapp"> <param name="URL_SCHEME" value="MagicButtonApp" /> </gap:plugin> and then open a browser and type in MagicButtonApp:// to launch

Remove White Flicker after splashscreen phonegap 3.3

冷暖自知 提交于 2019-12-04 05:11:20
How is it possible to create an app, add the splashscreen plugin, the splashscreen should disappear when the device is ready and no WHITE FLICKER to appear?? This happends on Adobe build and also on cli build on android plaform! These are the simple steps I used over and over again for about a week to figure this thing out: I created an app: phonegap create app I added the plugin: phonegap local plugin add org.apache.cordova.splashscreen I added this to the config.xml file from www folder: <feature name="SplashScreen"> <param name="android-package" value="org.apache.cordova.splashscreen" /> <!

Cordova Facebook plugin : missing variables APP_ID, APP_NAME

空扰寡人 提交于 2019-12-04 03:15:46
问题 When I do : cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git I get the error : Error: Variable(s) missing: APP_ID, APP_NAME Where do I have to configure these variables ? 回答1: Look at the bottom of the README.md file on that github repository. You'll see it gives you instructions for installing the plugin and including the variables: plugman install --platform [PLATFORM] --project [TARGET-PATH] --plugin [PLUGIN-PATH] --variable APP_ID="[APP_ID]" --variable APP_NAME=

Upgrading from Cordova 2.5 to Cordova 3.0 , facing issue while using CordovaInterface

余生颓废 提交于 2019-12-04 02:15:37
问题 I am migrating my project to Cordova 3 from Cordova 2.5. Followed the migration process mentioned in http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.html But, unfortunately getting the following error Preparing android project [Error: No Java files found which extend CordovaActivity.] In our app, we have a class which extends activity and implements CordovaInterface. And moreover this class is in the location mentioned in config.xml. Yet, I am facing the following error. Is it

How to add resources file to my phonegap project

我的未来我决定 提交于 2019-12-03 20:13:31
I'am using Cordova LocalNotification-Plugin to show some notification to user . Now what I want to do is to have a specific sound on notification . They said to add this window.plugin.notification.local.add({ sound: 'android.resource://' + package_name +/raw/beep}); Note: Local sound files must be placed into the res-folder and not into the assets-folder. I don't know in which res folder should I put my mp3. And if I try to put it into main res folder where I have : drawable; drawable-hdpi; drawable-ldpi;drawable-mdpi;drawable-xhdpi;values;xml folders when I build the project I get this error:

Cordova Build - ignore files

一曲冷凌霜 提交于 2019-12-03 17:17:37
问题 When compiling a cordova application every single file in my /www folder gets copied to the assets/www folder(android) but I'd like to customize what files are copied. I use several pseudo languages like CoffeeScript, Jade or Stylus which are auto-compiled by my IDE and they shouldn't be shipped into the final application. 回答1: With the help of this article, I found that you can create/edit the platform/android/ant.properties , and add the following line to it: aapt.ignore.assets=!*.map:

Phonegap 3.3 Eclipse: -CordovaLib project missing Android properties

大兔子大兔子 提交于 2019-12-03 15:55:07
Trying to import new PhoneGap 3.3 project into Eclipse 4.3.1 - after initial phonegap CLI build I import 2 projects (HelloWorld and HelloWorld-CordovaLib). I get "The import org.apache.cordova cannot be resolved" error as CordovaLib seems not to be linked as library to the HelloWorld project. However, I am not able to flag the CordovaLib project in its Android properties as "Is library" (as per this post) because there is no Android section in its properties (the project seems not to behave as Android one). The Android properties of my HelloWorld shows CordovaLib in Library section but is has