cordova-plugins

Generating iOS and Android icons in Cordova / PhoneGap

只愿长相守 提交于 2019-11-27 07:26:02
I have a freshly created Cordova project with the following config.xml setup (used the instructions from http://docs.phonegap.com/en/edge/config_ref_images.md.html ). I also added 2 platforms (iOS and Android). When I run either cordova run ios or cordova run android , the project still has the default Cordova icons. My understanding from the documentation is that Corodva is supposed to create the icons automatically based in the icon.png I supplied in the config.xml . config.xml : <?xml version='1.0' encoding='utf-8'?> <widget id="com.testapp" version="1.1.2" xmlns="http://www.w3.org/ns

Using katzer local notification in IBM Worklight

时光毁灭记忆、已成空白 提交于 2019-11-27 05:40:57
I want to use this cordova plugin at https://github.com/katzer/cordova-plugin-local-notifications How to go about integrating this plugin with my existing IBM Worklight project? I have trying various methods to integrate it without any result. I am getting this error currently from the logcat: 02-24 11:15:03.035: D/CordovaLog(2439): file:///data/data/com.iCareApp/files/www/default/index.html: Line 17 : Uncaught TypeError: Cannot read property 'notification' of undefined Or is there any other easier alternatives to get this done? Basically i want to be able to schedule local notification on the

Adding google plus login to ionic app

柔情痞子 提交于 2019-11-27 05:33:31
I am trying to add google plus login to my ionic app . Following this link gives me an error. https://ionicthemes.com/tutorials/about/google-plus-login-with-ionic-framework Error is : cannot read property googleplus of undefined. Here is my app.js : .run(function($ionicPlatform) { $ionicPlatform.ready(function() { if (window.cordova && window.cordova.plugins.Keyboard) { cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); cordova.plugins.Keyboard.disableScroll(true); } if (window.StatusBar) { // org.apache.cordova.statusbar required StatusBar.styleDefault(); } }); }) MPMP Steps to

How to get documents in an android directory that PhoneGap will see

ⅰ亾dé卋堺 提交于 2019-11-27 04:55:40
I'd like to be able to copy some files into my PhoneGap / Cordova's Documents directory, so that they show up when I use the cordova-plugin-file API to list that directory. Unfortunately, there seems to be some disconnect between the file API and what's actually laid out on the tablet's storage. Here's what the File plugin spec says the system directory structure should look like: Android File System Layout file:///android_asset/ | cordova.file.applicationDirectory file:///android_asset/data/data/<app-id>/ | cordova.file.applicationStorageDirectory file:///android_asset/data/data/<app-id>

Cordova application using Angular 2

本秂侑毒 提交于 2019-11-27 04:47:53
问题 Instead of ionic I would like to use cordova framework. So far, Step 1: I have created an angular 2 application. Step 2: I have created an cordova application and integrated angular 2 application in it. Its running successfully. Step 3: Next step is to load cordova.js file on load Step 4: Add cordova plugin(like camera , device ext) in my project. Step 1 and 2 completed. Please help me out to complete step 3 and step 4 . When I call plugin its throws an error as follows, 回答1: Got an output

Cordova geolocation accuracy gets capped at 10 meters

你离开我真会死。 提交于 2019-11-27 02:37:28
问题 Update: it is a Google Play Service issue, reported internally here and it will be fixed from version 13.4.0 We use the cordova gelocation plugin and the method navigator.geolocation.watchPosition() with the option enableHighAccuracy: true to track the user location and get the most accurate results. Our app has been around for more than 1 year and we used to have no problems with any device getting a very good location accuracy, 4/6 meters when outside and the sky is clear. Lately, many of

Add android:name=“something” to AndroidManifest.xml “application” tag from Cordova plugin.xml

余生颓废 提交于 2019-11-27 01:35:28
问题 I decided to open new question because none of those that are already posted, has a good answer. I need to update AndroidManifest.xml "from plugin.xml" , so that the <application> tag has the following property, alongside those it already has: android:name="mypackage" How can do that? Thank you 回答1: I had the same issue, and I used a Cordova hook to do the work. First, edit your config.xml file to add the hook: <platform name="android"> <hook type="after_prepare" src="scripts/android_app_name

How to get access to phonegap API from a remote page

不羁岁月 提交于 2019-11-27 01:05:50
问题 I have to following situation: I have a already existing remote webpage and i want to develope an app which uses this page. So far, so good. When I start the app the local index.html is loaded and it redirects ( window.open target: _self ) to the external website. This website is opened in the phonegap webview. On the external website I added the cordova.js in order to get access to the native phonegap API. But it doesn't work correctly. The deviceReady event is triggered correctly, but I

cordova run with ios error .. Error code 65 for command: xcodebuild with args:

﹥>﹥吖頭↗ 提交于 2019-11-27 00:41:07
问题 This error occur only when I try to cordova run ios --device Even after cordova build ios command executed, non error is reported. Whats I do wrong? And how to debug cordova projects on my iPhone (need this because need to test a Camera feature) WITH CONFIGURATION Debug === Check dependencies Code Sign error: No provisioning profiles found: No non–expired provisioning profiles were found. ** BUILD FAILED ** The following build commands failed: Check dependencies (1 failure) Error code 65 for

Add entry to iOS .plist file via Cordova config.xml

微笑、不失礼 提交于 2019-11-27 00:01:38
I am new to the Cordova CLI. I need to perform the following steps programmatically via Cordova. In the project .plist add a new row Enter the following values in the new row: Key : GDLibraryMode Type :String (default) Value :GDEnterpriseSimulation I think I need to do this in the config.xml file in my project's root (or maybe the one in the "platforms" folder). Can someone explain to me how to add the entry via the config.xml so that the above entry is added at compile-time? I am using Cordova 3.3.1-0.42 (I know it is not the latest). I have already made my project and all is fine, I just