phonegap-plugins

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

早过忘川 提交于 2019-12-06 11:56:26
问题 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

PhoneGap 1.5 ChildBrowser can't show local file

泪湿孤枕 提交于 2019-12-06 11:52:59
问题 I'm building a PhoneGap 1.5 (Cordova) application for iOS and want to use the ChildBrowser plugin to show PDF files. I've been able to get it set up and it works very well when I'm viewing external PDF files (http, https). The app has limited offline capabilities. I'm using the file system and file transfer API to download PDF files and save them to the local file system. When I try to view these documents using the ChildBrowser plugin, they never load. I've done some troubleshooting by

PhoneGap File Transfer Error 1, where to write FileTransfers?

空扰寡人 提交于 2019-12-06 11:33:05
Related to: https://stackoverflow.com/questions/21044197/download-file-and-store-them-locally-in-sdcard-using-phonegapbuild but that questions has never been answered. About this app, I'm writing a little app that displays a bunch of pdf's, it's written using jquerymobile + phonegap and it's being build with the phonegap build service. I realize that this function cannot work, since the root-Directory is not a valid place to write anything. But, I was unable to get the working directory of my application, nor was I able to figure out what exactly Error Code 1 meant using the documentation.

phonegap facebook plugin

烂漫一生 提交于 2019-12-06 10:36:40
I'm doing a project using phonegap 2.4 and the latest facebook plugin https://github.com/phonegap/phonegap-facebook-plugin my problem is with posting to the user wall feed, I'm able to authenticate the user, get all the proper events for that, etc. but when I'm try to post to a feed (I'm doing the ask for read first then write permissions sequence due a new api inside ios6 and have the publish permission for the user and also I have setup my facebook account on settings, ah and also I I'm using facebook sdk 3.1) the console just trough and error ***** Terminating app due to uncaught exception

Phonegap Android Contact Picker Plugin (updating a plugin)

走远了吗. 提交于 2019-12-06 10:21:19
In my PhoneGap app, I am trying to get the native Android contact picker to launch so I can fetch some phone numbers. I researched online and couldn't find much until I saw the ContactView plugin: https://github.com/phonegap/phonegap-plugins/tree/master/Android/ContactView When I set up the plugin according to the instructions, I encountered errors everywhere in its ContactView.java file. It seems that it is using a very old version of the plugin structure with ctx and other deprecated commands (e.g. startActivityForResult). So I tried to convert it into a modern plugin by going through it

Intel XDK can't install debug module

ⅰ亾dé卋堺 提交于 2019-12-06 10:20:02
问题 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

Cordova: Create socket server

为君一笑 提交于 2019-12-06 09:50:52
I want to make a chat mobile app with corodva, I want to transmit messages from phone to another phone directly without a server in the middle . So I'm thinking about a socket communication throught a socket server on one of the phones and exchanging messages directly. Is there a way to create a socket server with cordova like in Java ServerSocket ? Yes, there is a way, use the chrome socket plugin: cordova-plugin-chrome-apps-socket The point is, the documentation is not very easy, but the plugin is working very well. I'm using it for a private app Rezepte . Sorry, the site is not finished. 来源

PhoneGap iOS LocalNotifications Daylight Savings

☆樱花仙子☆ 提交于 2019-12-06 09:20:19
I'm using (the infamous) Drew Dahlman's Phonegap Local Notifications in iOS . And it seems to work. I have never written a line of objective-c and would prefer not to (which is probably why I'm having trouble now!) but I think the plugin is not working quite right and would like to fix it if possible. When I set a notification for today at 13:00 it fires correctly. However when daylight savings is in play the notification fires at 14:00, an hour late. Is this because timezones are not being taken into account? Drew mentions that the timezone being set to +0000 is not a problem, but is this mis

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

拜拜、爱过 提交于 2019-12-06 09:12:39
问题 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

Phonegap: “processMessage failed” unable to send javascript function (Cordova 2.5.0)

自作多情 提交于 2019-12-06 08:40:29
I am trying to make GCM push notifications work in my app and therefore I am using this project ( https://github.com/marknutter/GCM-Cordova ) as an example. When I run the example code everything works fine, but when I transfer all the required files and edit my code to let it work in my own app it does not work anymore. I also tried the following plugin ( https://github.com/phonegap-build/PushPlugin ) and after installing it automatically it gives exactly the same error. The app does not crash, but when I call the register function my callback function "onNotificationGCM" does not receive any