phonegap-plugins

Setting up a CMS for a Phonegap / Cordova iphone app

时光毁灭记忆、已成空白 提交于 2019-12-13 20:10:01
问题 When making a iphone app with Phonegap / Cordova is it possible to attach a web based CMS to it, to pull the data down from, so that a non technical user could update the app ? Usualy you'd just build them using html, css, jquery/js but i wandered if there was an easier way to update them ? 回答1: You could use a normal cms on a server like a webpage so normal joomla wordpress etc. Then you add the url to the phonegap whitelist and load it like the normal phonegap html url. 回答2: Rather than a

How to include and use cordova plugins

蓝咒 提交于 2019-12-13 19:36:19
问题 I'm struggling with cordova plugins in my ionic app. Been googling whole day, no big win yet. here's what I'm trying to do - open a web page inside my app with navbar present. I found that cordova-themeable might work that out ...however... I installed it $ cordova plugin add cordova-plugin-themeablebrowser ok, it's present $ cordova plugin list cordova-plugin-camera 2.2.0 "Camera" cordova-plugin-compat 1.0.0 "Compat" cordova-plugin-console 1.0.3 "Console" cordova-plugin-device 1.1.2 "Device"

Reference Error: Can't find variable: ChildBrowser, Cordova 1.7.0, jQueryMobile 1.0.1, iOS 5.1

本小妞迷上赌 提交于 2019-12-13 17:43:49
问题 I'm working on my first PhoneGap/Cordova app and using jQueryMobile as well. I'm trying to get the ChildBrowser plugin working but getting the error in the title when trying to call ChildBrowser.install() Its in my onDeviceReady function which is being called correctly and I've even verified that the ChildBrowser.js file is being called by adding an alert and wrapping the anonymous function that file in a try/catch and it does not seem to be throwing any errors during its execution. However

Phonegap Android Facebook plugin publish_stream permission request throws “Error calling method on NPObject”

本秂侑毒 提交于 2019-12-13 17:23:03
问题 I'm using Phonegap for Android and I have just integrated Facebook plugin(https://github.com/phonegap/phonegap-facebook-plugin) to my project. I need to get an AccessToken that could be sent to server so that server could post on user's behalf. When I at first called FB.login(callback, {scope:'email,user_birthday,user_location'}) everything works fine and dandy. But if I add 'publish_stream' permission to the scope I get an error: "Uncaught Error: Error calling method on NPObject". Error is

How to configure plugin “cordova-plugin-screen-orientation” in config.xml

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 16:24:14
问题 cordova plugin add cordova-plugin-screen-orientation After I fetched the plugin cordova-plugin-screen-orientation with the line above I looked inside the config.xml and I couldn't find a similar line like below for the plugin. <gap:plugin name="org.apache.cordova.media-capture" /> I already tried guessing the plugin id/name (PhoneGap Build kept saying the plugin is unsupported): <gap:plugin name="org.apache.cordova.screen-orientation" /> <gap:plugin name="cordova-plugin-screen-orientation" />

exit button event in phonegap for iOS?

梦想的初衷 提交于 2019-12-13 15:04:52
问题 is there any event Listener that calls when we press on iPhone close button in phonegap? so that we can do final task when application close. i have found that onunload method will call when webpage redirect but it want work here. please help me. 回答1: Under the PhoneGapDelegate.m class, you have the applicationDidEnterBackground method, replacing from iOS 4+ the applicationWillTerminate method for applications supporting background execution. 回答2: You can listen to Phonegap's "pause" event:

phonegap build and Facebook Plugin

有些话、适合烂在心里 提交于 2019-12-13 14:51:35
问题 Maybe it's a stupid question, but I can not solve it! I'm working on Phonegap Build, and want to add a facebook login for the app. but plugin seems not to work ! here is the error I receive : "Cordova Facebook Connect plugin fail on init!" for more information my phonegap version is : 3.1.0 and I use Hydration (Maybe gives you an idea) and here is the simple code I use: <html> <head> </head> <body> <button onclick="login()">Login</button> <button onclick="me()">Me</button> <!--<button onclick

Push notifications delivered to apple apns server but device received nothing

旧时模样 提交于 2019-12-13 12:27:22
问题 Development environment: iOS 9.3.2 (iPh6ne 6+) ... but it works on iOS 8.x Phonegap 6.2.7 Phonegap-plugin-push v1.7.2 PHP7 (server side)- contentpush - ref My situation: the token was delivered to my server automatically message sent to ssl://gateway.push.apple.com 2195 successfully nothing received in device even alert("") push.on('notification', function(data) { console.log(data.message); alert(""); alert(data.title+" Message: " +data.message); }); 回答1: Apple doesn't give any guarantee on

Remove White Flicker after splashscreen phonegap 3.3

北城以北 提交于 2019-12-13 12:05:39
问题 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:

Alternate to IMEI

偶尔善良 提交于 2019-12-13 11:28:54
问题 I am going to imei the one who has logged into my application. And I'll give it a special code for security. It just has to be that code and IMEI that can not enter from another phone. What I will do with iOS.They will deal with this code. But, it is no longer possible to get IMEI in iOS. What I will do with iOS. Also, it is no longer possible to mac address in İOS, right? 回答1: There are a few alternatives to the IMEI or MAC address that Apple now provide. One such is [[UIDevice currentDevice