phonegap-plugins

Timer Task rung in background Javascript or Cordova App

为君一笑 提交于 2019-12-21 16:20:13
问题 I'm looking forward to implement reminder application using cordova. I'm looking for a posibility to implement background task using javascript. Even the application is not active it should run in background. Is this task possible with java script or Do I need to develop a plugin using Cordova (Android & IOs) 回答1: I believe it is not possible to do background work when the app (browser is not active) so I found a great library for cordova https://github.com/katzer/cordova-plugin-local

Cordova jar is missing in phonegap 3.5.0

﹥>﹥吖頭↗ 提交于 2019-12-21 12:42:16
问题 Before I am using phonegap 2.7.0. so for phonegap update, I have installed the phonegap version 3.5.0 using node.js, but in the phonegap folder there is no cordova jar file. If I create a project in ADT how can I add cordova.jar and cordova.js? I am unable to see any jar file in phonegap folder. Even If I create a project from command prompt I did not see any phonegap jar file and js file in my created project. Can any one help me how to create and run my first project using phonegap 3.5.0?

Cordova Change AndroidManifest using Config.xml file

老子叫甜甜 提交于 2019-12-21 06:59:33
问题 I am in need to add some tags to the AndroidManifest.xml file which is found under platforms\android\AndroidManifest.xml As I have read the AndroidManifest.xml file gets generated on the fly and it is not advisable to edit it. So is there a plugin that I can use that will modify the AndroidManifest.xml file for me with the values that I give it in the config.xml file? 回答1: Since the recent release of cordova@6.4.0 you can use the <edit-config> tag in config.xml to do this without requiring a

PhoneGap/Cordova calendar integration (Android)

蓝咒 提交于 2019-12-21 05:27:09
问题 I'm building an Android app using PhoneGap (aka Cordova), and am having trouble getting a calendar integration to work. Disclaimer: I'm a noob to both Android and PhoneGap, please bear with me. All I'm trying to do is add an event to the user's calendar. Following this tutorial, I've created a Plugin that attempts to launch a Calendar Intent. The code looks like this: public class CalendarPlugin extends Plugin { public static final String NATIVE_ACTION_STRING="addToCalendar"; public static

Create a Custom AdMob Plugin for Phonegap Build (for iOS and Android)

微笑、不失礼 提交于 2019-12-20 10:16:10
问题 Everything in my Phonegap Build app is working, including the Analytics and FacebookConnect plugins. However, now I would like to add AdMob ads. Phonegap Build does not provide a built-in plugin for AdMob, but according to the Phonegap Build Plugins page, you can now add your own custom plugins (see Contributing Plugins at the bottom of the page). PhoneGap Plugins can be made compatible with PhoneGap Build with the use of a plugin.xml file... The Phonegap Build Plugins page references the

FB.api('/me') always giving error code:2500 in phonegap android

我怕爱的太早我们不能终老 提交于 2019-12-20 06:05:50
问题 I am using facebook plugin to login and logout a user, which are working fine. The problem is when I request for the logged in user details using the function FB.api('/me'), it always gives the following error: {"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500} I used the debug mode to check PluginResult(pr) and JSONObject of the response. JSONObject contains the user information, which I required, I dont get

Cordova build android error Execution failed for task ':processDebugResources'

戏子无情 提交于 2019-12-20 03:10:04
问题 I am developing an hybrid mobile app for android and ios with cordova, angularjs and angularmaterial design. I use npm, bower and grund to manage and run build task. I could build ios but not android with error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/xxx/android-sdk/build-tools/23.0.3/aapt'' finished with non

Add an “exclude module” rule to an entry in plugin.xml for Cordova

南笙酒味 提交于 2019-12-20 02:28:33
问题 I'm stucking with this error trying to build my phonegap project As far I know this error because there is a library is set twice in the project. I check all my libraries and I found only one library causing this(found in one of my plugins) <framework src="com.android.support:design:23.4.0"/> The thing is, can I set an exclude module rule in the plugin.xml file? I think I need to exclude com.android.supportv4 回答1: Finally I resolved it, I had to create a build-extras.gradle file in my plugin

How to pause YouTube video on InAppBrowser when my Cordova app goes to background?

元气小坏坏 提交于 2019-12-20 01:46:04
问题 I am developing an Android app using Cordova and Ionic framework. I am playing a YouTube video with InAppBrowser using the code below: window.open('https://www.youtube.com/embed/rAiw2SXPS-4', '_self'); But when I press the home button on the device while playing the video, the video is not paused. Due to this issue, my app is rejected after submitting to Google Play with the reason below: Your submission has been rejected for enabling background playing of YouTube videos in violation of the

Google+ SignIn Button with PhoneGap

老子叫甜甜 提交于 2019-12-19 06:46:21
问题 How can we use the JS Google+ Signin button with Phonegap? Specifically for iOS? I have found this article on doing oauth with phonegap and the childbrowser plugin however I'm not sure that approach will work with the Google+ signin button. Any Ideas? 回答1: The Google+ Sign-In button won't work for you in PhoneGap because of how Phonegap serves content (basically its treated as file://) and that leads to a few problems that relate to either the button itself or to the API Console config. What