phonegap-build

Phonegap: local notification repeat every Sunday of the week?

为君一笑 提交于 2019-12-06 02:40:16
I'm trying to implement the Phonegap local notification in my project. I'm using this plugin: de.appplant.cordova.plugin.local-notification-custom I have installed the plugin and tested it and it works fine. I tested it with this code and it works fine: cordova.plugins.notification.local.schedule({ id : 1, title : 'I will bother you every minute', text : '.. until you cancel all notifications', sound : null, every : 'minute', autoClear : false, at : new Date(new Date().getTime() + 10*1000) }); The above notification will run every minute and work fine. Now, I need to set a local notification

Is there a way to test phonegap build apps on different platforms

最后都变了- 提交于 2019-12-06 01:47:17
So I developed a phonegap app using Android development sdk. And I used Phonegap build to build my project for Simbian, WebOS, Windows, iOS, and Blackberry. But I don't have devices for those platforms to test my app on. And I really don't want the headache of setting up those development environments, I mean, that's why they have Phonegap Build right? I have had complaints from WebOS, Simbian, and Windows that my app doesn't work. And haven't gotten the license gen working on Blackberry (no linux support) or iOS (working on xcode via virtualbox ...). So is there an easier way? I was thinking

PhoneGap iOS can't play video using HTML 5

好久不见. 提交于 2019-12-06 01:44:38
I'm building phonegap app and I need to play video in it. I know in order to play video on Android, I need to use one of the plugins available, but to play video on iOS, I can use HTML 5 video tag. I have these lines of code: <div id="video"> <video id="video01" width="300" height="300" controls> <source src="images/test2.mp4" type="video/mp4" /> </video> </div> I can see "video box", but I cannot play video for some reason. In console I don't see any errors. Video I'm using is from this page: http://www.quirksmode.org/html5/tests/video.html And in iPhone Safari I can load MP4 version from

Cordova check if file in url exists

混江龙づ霸主 提交于 2019-12-06 00:09:41
问题 I am using cordova / phonegap and need to know if a file exists Here's the code with the path and filename: storeUrl = cordova.file.dataDirectory+'myfolder/myfile.mp3'; How can I check if this file exists? 回答1: Try code from this link: https://cordovablogsblogs.wordpress.com/2015/06/10/how-to-check-a-files-existence-in-phone-directory-with-phonegap/. Code: function checkIfFileExists(path){ window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem){ fileSystem.root.getFile

iOS 6 iPhone 5 App NOT fullscreen in Phonegap Build?

↘锁芯ラ 提交于 2019-12-05 23:49:38
Hey all i am running my app and it seems to be fullscreen on my android device but it has the black bars on top/bottom on the iPhone 5.... What settings do i need to set for those to work? The way my app looks on my android is this: And the way it looks on my iPhone 5 is this: For your app add the default image for the iphone 5, Default-568h@2x.png . That automatically gets rid of the bars. to give a bit more detail, add this line, and the corresponding image to your config.xml file: <gap:splash src="images/Default-568h@2x.png" gap:platform="ios" width="640" height="1136" /> It happens also

Phonegap Build facebook Connect Plugin (android)

百般思念 提交于 2019-12-05 23:21:46
I have a strange problem using the facebook plugin with phonegap build. It sounds like a certificate problem but I can't figure it out. I tried the sample code found here : github.com/amirudin/pgb-fbconnect I followed instructions in the readme.md file. When I first start the android app and when I click on "login" button, everything works fine and I can connect myself to the facebook app. Now, I hit the logout button. Ok again, it works. But if I hit the login button again, I have a facebook error message : "invalid android_key_parameter. The key xxxxxxxxxxxxxx does not match any allowed key.

PhoneGap Build version 2.7.0 ignoring fullscreen preference in config.xml on Android

别等时光非礼了梦想. 提交于 2019-12-05 20:53:28
I have followed the very clear instructions on this page: https://build.phonegap.com/docs/config-xml I have included the following line in my config.xml file (which is indeed located at the top level of my app): <preference name="fullscreen" value="true" /> And yet the status bar at the top of the screen remains. Here is my full config.xml file if it helps.. <?xml version="1.0" encoding="UTF-8" ?> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" id = "com.universeprojects.voidspace" versionCode="10" version = "0.1.2b"> <!-- versionCode is optional and

Landscape and portrait images for phonegap BUILD splash screen?

你。 提交于 2019-12-05 16:44:41
I wondered if it was possible to have 2 seperate images in a phonegap build app for the splash screen? One for potrait and one for landscape. At the moment, when I open the app, it displays the splash screen and if i change orientation, it pixelates :-( I've got this in the config.xml file at the moment... <gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi" width="320" height="480"/> <gap:splash src="splash/android/mdpi.png" gap:platform="android" gap:density="mdpi" width="960" height="640"/> <gap:splash src="splash/android/hdpi.png" gap:platform="android" gap

crosswalk-project error ' Building ABI 'armeabi-v7a' failed'

六眼飞鱼酱① 提交于 2019-12-05 16:21:05
I'm using ubuntu 16.04 and crosswalk-project with Phonegap/Cordova to make my hybrid app. I'm compiling the exemple: https://crosswalk-project.org/documentation/android/build_an_application.html And i got this error: I 'googled' about this error and I founded nothing to solve me. What it says? You should check the build logs. In my case everything was pretty simple. I forgot to put icon.png that was specified in manifest.json. Maybe you did't install latest sdk. I think it pick for default build the latest sdk. So you can see additional options using: crosswalk-pkg help and build with optional

Phonegap and WebWorkers

冷暖自知 提交于 2019-12-05 15:34:22
问题 I am trying to write a PhoneGap/Cordova app. I am trying to do some of the more long running background stuff in Web Workers. However I am finding that some of the functionality is not available from within the Web Workers. navigator.connection is available from within the main script but is undefined from within the web worker, same goes for navigator.geolocation . I would also like to access an sql-lite database from within a web worker too. Any ideas of how to do background operations like