phonegap-plugins

Cordova app is saving DOM loaded data using AJAX on Android app's Data space

我是研究僧i 提交于 2019-12-08 06:05:41
问题 My Cordova+JQM application has multiple templates (across sub-pages and multiple HTML documents) which are filled with data requested using AJAX. My issue is, my application's size increases each time I load the data in my template, doesn't matter if I have opened it before. And the app's details do not show an increase in Cache , but in Data . The cache is minimum, like a few kbs, but Data goes in MBs. I have not enabled data-dom-cache of JQM. I even tried to call a function to empty the DOM

How to keep the screen on an iPhone with Phonegap 2.7

风格不统一 提交于 2019-12-08 06:01:55
问题 I do an ios application (ios6) with cordova 2.7 which use the GPS and I need that the screen of the Iphone is always on. I want to avoid the phone from sleep. I tried to install this plugin https://github.com/phonegap/phonegap-plugins/tree/master/iOS/PowerManagement but apparently it is too old. How do that? 回答1: If you're willing to get your hands dirty, this can be quite easy to fix, by making a Cordova Plugin. If you haven't made a Cordova plugin, it is definitely a skill that you should

Cordova/phonegap activity lifecycle

喜欢而已 提交于 2019-12-08 05:44:37
问题 I'm working on a map plugin for android in a cordova application (let's forget for a second that there is already more than one in the wild, and consider this an academical question), the documentation for MapView states: Users of this class must forward all the life cycle methods from the Activity or Fragment containing this view to the corresponding ones in this class. [...] That is, I need to appropriately call on my map at least the onResume() onPause() onDestroy() onLowMemory() methods.

Why do you need 2 Javascript files for cross-platform Cordova plugin?

醉酒当歌 提交于 2019-12-08 05:42:16
问题 In this article here, I quote: Catch about different Platforms Before it comes as a surprise to you, let me clarify some things. Say you are developing a Phonegap plugin for 2 platforms: iOS and Android. One might assume that we need to churn out: a single JavaScript file that will be used on both iOS and Android; one Java file for Android One .h and One .m for iOS However, in reality you will need to churn out: one Javascript file for Android, along with a Java file for Android; a different

Problems using phonegap / cordova file plugin part 2 - synchronicity

有些话、适合烂在心里 提交于 2019-12-08 05:08:33
问题 I want to add some simple logging capabilities to my cordova app. So I added the file plugin, implemented a super simple log method and tested. My configuration: $ cordova --version 3.5.0-0.2.7 $ cordova plugins org.apache.cordova.file 1.3.0 "File" The test device is a Huawei u8850, running Android 2.3.5 The Logger: window.MyLog = { log: function(line){ window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(FS) { FS.root.getFile('the_log3.txt', {"create":true, "exclusive":false},

Cordova: Scan for iBeacons / BLE in background mode (iOS and Android)

陌路散爱 提交于 2019-12-08 04:58:40
问题 I have implemented an cordova/ionic app (hybrid for iOS/Android) that scans for iBeacons in background mode and notifies the user, if a beacon is found. I am using following plugins: iBeacon Scanning: cordova-plugin-ibeacon by petermetz Background Mode: cordova-plugin-background-mode by katzer Notification: cordova-plugin-local-notifications by katzer This works good so far (on both iOS and Android). The problem here is, that Apple would reject my App form publishing to the App Store (see

phonegap local notification - daily

无人久伴 提交于 2019-12-08 04:52:44
问题 In the phonegap plugin developed by https://github.com/katzer/cordova-plugin-local-notifications if I want to schedule a daily notification at 14:00, how should set for the paras? What should I put for date? window.plugin.notification.local.add({ id: String, // A unique id of the notifiction date: Date, // This expects a date object message: String, // The message that is displayed title: String, // The title of the message repeat: String, // Either 'secondly', 'minutely', 'hourly', 'daily',

iOS statusbar overlay phonegap

戏子无情 提交于 2019-12-08 04:27:28
I'm developing iOS app with PhoneGap (Cordova) and my problem is that status bar is overlaying my webview/application: I've added preferences in my config.xml file but these are not working: <preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarBackgroundColor" value="#0ff000" /> <preference name="StatusBarStyle" value="default" /> How can i solve that? Installation Command for Status bar Plugin cordova plugin add cordova-plugin-statusbar StatusBarOverlaysWebView (boolean, defaults to true). On iOS 7, make the statusbar overlay or not overlay the WebView at

PushPlugin not found, or is not a CDVPlugin

大憨熊 提交于 2019-12-08 04:15:58
问题 I am developing an app using Cordova, Angular and Ionic. I have a problem with the phonegap push plugin and I've searched a lot but no solutions found. I use cordova 5.4.1 and phonegap-plugin-push 1.5.3. When I run the app on iPad or emulator from Xcode, logs throws this error: ERROR: Plugin 'PushPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. [CDVCommandQueue executePending] [Line 159] FAILED pluginJSON = [ "PushPlugin938856013", "PushPlugin", "register", [

Facebook plugin: init not called with valid version

随声附和 提交于 2019-12-08 04:11:33
问题 I use phonegap build to create debug version for android. I want to use facebook plugin. In Config.xml I have <gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.4.0"> <param name="APP_ID" value="509210995889450" /> <param name="APP_NAME" value="Food share" /> </gap:plugin> I use the file facebookConnectPlugin.js which is from the official plugin Github for facebook. calling: facebookConnectPlugin.login([], success, fail); I get: Error: init not called with valid version Error