phonegap-plugins

Intel XDK can't install debug module

北战南征 提交于 2019-12-04 17:54:48
Recently I was building a Cordova app in Intel XDK. Everything worked fine, but I've decided to remove one of the plugins (for caching images locally) and I did it (it appears on the list that it is removed from project but not updated yet in debug module). After that I can't generate debug module - I receive an error: Could not generate debug module: Debug module Erorr: Request expired. Try again. Of course I've tried this couple times, restarted Intel XDK, reinstalled it with removing whole ~/Library/Application\ Support/XDK/ folder and reinstalling App preview application on mobile phone

cordova phonegap: handling links from within inappbrowser (need external links to open new browser or open in system browser)

亡梦爱人 提交于 2019-12-04 17:27:16
I made a phonegap/cordova application that just skins a mobile friendly website. I'm loading the website via the InAppBrowser plugin fullscreen (no address bar or 'next' buttons) This works fine and dandy, but when you click on an external link from the website, it changes the location on the current browser and there is no way to return :( I am trying to use the executeScript function to send a script to the InAppBrowser to catch links that I want to load in a new browser, but the window.open call just changes the url of the existing full screen one and doesn't open a new one. Another option

Cordova/Phonegap-facebook-plugin Android: facebookConnectPlugin is not defined

Deadly 提交于 2019-12-04 16:56:35
For Android, I keep getting this error, for this phonegap-facebook-plugin https://github.com/Wizcorp/phonegap-facebook-plugin/issues/758 ReferenceError: facebookConnectPlugin is not defined I've tried removing all platforms, removing all platforms, and adding just this plugin. I currently have only these only plugins installed: RoverMR:ionic_git_android rover$ cordova plugin com.phonegap.plugins.PushPlugin 2.3.1 "PushPlugin" com.phonegap.plugins.facebookconnect 0.8.1 "Facebook Connect" org.apache.cordova.device 0.2.12 "Device" RoverMR:ionic_git_android rover$ In my config.xml: <feature name=

Adding Cordova (Phonegap) Plugins manually to existing android projects

自作多情 提交于 2019-12-04 15:00:44
I'm trying to add additional Phonegap plugins (namely, the File plugin) to an existing android application that uses Phonegap. I've tried navigating to my project directory (in my workspace) and then run the command cordova plugin add https://theurlwhichworks.org/ It says the plugin is installing, and when I go to look in my workspace on my computer, there is a folder titled plugins, and inside, a directory called org.apache.cordova.file which means that the plugin (apparently) downloaded correctly, but doesn't seem to have been added to my project. Is there any way to manually add this plugin

Android Volume Key Event Capture

随声附和 提交于 2019-12-04 14:15:48
问题 I am currently developing an app for android .. how i can capture the volume key event when user press in android phone i am using phone gap ... 回答1: Use the below code to get the key event Use this code in your existing java class @Override public boolean onKeyDown(int keyCode, KeyEvent event) { //If volume down key if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) { this.loadUrl("javascript:cordova.fireDocumentEvent('volumedownbutton');"); return true; } else if (keyCode == KeyEvent.KEYCODE

Status bar notification for web app with PhoneGap / Cordova

时光怂恿深爱的人放手 提交于 2019-12-04 14:04:46
I am developping a web app for iOS and Android, using the last version of PhoneGap. I want to send Notifications to the users on their phone's status bar, and I cannot figure out how to do that. It seems that there was a Cordova plugin (StatusBarNotification) that once existed, but all the links I find are dead. If anyone knows a way to send notif to the statusbar, I would be grateful. Thanks Quentin EDIT : I should have been more specific : I am trying to understand how to use the status area on phones ( http://developer.android.com/guide/topics/ui/notifiers/notifications.html ), and for that

Cordova fullscreen splash screen on Android still shows title bar

故事扮演 提交于 2019-12-04 13:55:27
问题 I am creating a fullscreen app using latest cordova. I have added the splash screen images and the plugin for it. And also in the config.xml, the preference to launch the app in fullscreen <preference name="Fullscreen" value="true" /> <preference name="Orientation" value="landscape" /> <preference name="SplashScreenDelay" value="1000" /> When running the app, the splash screen shows up, but the problem is that the app still shows the title bar on top, until the app finishes showing the splash

Pubnub Push Notification not working for cross platform mobile app

守給你的承諾、 提交于 2019-12-04 12:59:17
We are developing a cordova based android application which has chat capability. We are sending test chat messages from a server and we received the messages just fine when the app is in foreground. We would like to get a notification about chat message when app is in background. However we are not getting any Push Notification about chat message. The steps we followed are mentioned below. Kindly let us know the mistake we're making. We have referred this link to get notification on device when app is in background. We use cordova PushPlugin to register device for push notification. And

Calling web service using phonegap(ios)

微笑、不失礼 提交于 2019-12-04 12:41:07
I want to call web services in phonegap application. I am using demo code given at http://wiki.phonegap.com/w/page/32513809/Simple-Web-Service-Consumption-with-PhoneGap-and-XUI i have created xui.js from link http://xuijs.com/downloads/xui-2.3.2.js and tried both putting xui.js, index.html in www/assets and in www folder. But it is not working for me.Can any one help me please..... Try adding * to the ExternalHosts option in the PhoneGap.plist This may be the case if your app could not connect to the internet/make xhr calls Try this Example: Use js to write this code and include in index.html

Android/PhoneGap: Using third-party libraries in plugin-development

扶醉桌前 提交于 2019-12-04 12:17:13
问题 I'm working on a PhoneGap/Cordova plugin that's supposed to provide a socket for sending and receiving OSC messages (Open Sound Control). For that purpose I'd like to use JavaOSC but I'm uncertain about how to include the library into my project. I'm using Android Studio and I've basically followed this tutorial to set up my project. First I placed the raw JavaOSC class-files in the same directory as my OSCPlugin.class and placed the import declarations at the to of my OSCPlugin.class: import