cordova-plugins

$localStorage data already there after I uninstalled and installed the ionic v1 app in Android device

混江龙づ霸主 提交于 2019-12-23 04:41:20
问题 I am developing an ionic v1 mobile application. When I uninstalled the app from Android device, the data saved in $localstorage are already persist there after I installed the app again. I am also using cordova-plugin-crosswalk-webview version 2.2.0 Other information: Cordova CLI: 6.3.1 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 1.1.1 Ionic CLI Version: 2.1.1 Ionic App Lib Version: 2.1.1 Node Version: v4.4.1 I would gladly appreciate any kind of

Cordova katzer plugin background mode not working on iOS-9

白昼怎懂夜的黑 提交于 2019-12-23 03:48:08
问题 in my ionic/angularjs application I use https://github.com/katzer/cordova-plugin-background-mode/ for backgrounding my application. It's working quiet well on iOS-8 but with the new iOS-9 its not working any more. I did a few tests and it looks like the app is really working in the background but the user gets no information about it. On iOS-8 I get a message like "YourApp is using your location" or something like that on top of the display. On iOS-9 this message is missing. Did someone the

Using branch.io with Meteor

痴心易碎 提交于 2019-12-23 03:29:12
问题 We've been trying to integrate branch.io into our Meteor app, but so far, we are stuck on step 1. Trying to follow https://start.branch.io/#/integrate-sdk/steps , under "Cordova", we've been unable to install the Cordova plugin successfully. We've tried various commands, including: meteor add cordova:branch-cordova-sdk@2.0.2 meteor add cordova:io.branch.sdk@https://github.com/BranchMetrics/tarball/a30665d8b12896d1aad9ee0beb42c516e5fc1f6c meteor add cordova:io.branch.sdk@https://github.com

Is it possible to manually edit settings.gradle file?

谁都会走 提交于 2019-12-23 03:28:07
问题 In a Cordova project, I have a file settings.gradle which looks like: // GENERATED FILE - DO NOT EDIT include ":" include ":CordovaLib" However, manually I want to edit the file and to make it look something like: // GENERATED FILE - DO NOT EDIT include ":" include ":CordovaLib" include 'manager-A' project(':manager-A').projectDir = new File('libs/Manager-A') include 'manager-B' project(':manager-B').projectDir = new File('libs/Manager-B') The above script looks good and it can be built

how use plugin jquery in framework7

拜拜、爱过 提交于 2019-12-23 03:15:16
问题 I am trying to build a mobile application with Cordova and I have chosen the framework named "framework7". In the application I have HTML page have textboxes time, when the user clicks on the textbox clock picker will be display (clockpicker jquery plugin) Now the main issue is that the framework7 doesn't allow the jquery plugins to work with it can anyone help me 回答1: ofcourse jquery works with cordova i used jquery for all my app that i wrote with cordova .dowload jquery and add your

Cordova Plugin include Android Library (Gradle)

↘锁芯ラ 提交于 2019-12-23 03:12:43
问题 I would like to include this Android library in a Cordova Plugin. The library itself is managed by Gradle, as can be seen in the Github link. The developers of the library only provide guide how to use it in a Android Studio project, but I would like to create Cordova Plugin wrapper for this library, so I want to include it with the plugin. My plugin has following structure: -root -plugin.xml -lib -fliclib-android (this is a cloned library from the github link) -src -android -MyPlugin.java

Cordova PushPlugin onNotification ecb not fired

五迷三道 提交于 2019-12-23 03:12:24
问题 myApp.services.factory('GCMHelper', ($q)-> pushNotification = {} _init = ()-> defer = $q.defer() ionic.Platform.ready(()-> pushNotification = window.plugins.pushNotification; window.onNotification = (res)-> console.log('onNotification', res) defer.resolve() ) return defer.promise return { register: ()-> _init().then(()-> pushNotification.register( (res)-> console.log('gcm register success', res) (err)-> console.log('gcm register err', err) { "senderID": "*********", "ecb": "onNotification" }

Gallery does not show the image after download?

不羁的心 提交于 2019-12-23 02:49:21
问题 I have following code to save image from url to Download folder var filename = url.replace(/^.*[\\\/]/, ''); var filePath = cordova.file.externalRootDirectory + 'Download/' + filename; $cordovaFile.downloadFile(url, filePath, true, {}) .then(function(result) { // Success! $cordovaToast.showShortCenter('This picture has been saved!'); }, function(err) { $ionicPopup.alert({ title: 'Error!', template: angular.toJson(err) }); }); It saves the image successfully. I can explore the file in the SD

Splash screen is not display after build on phonegap version cli 5.2.0

不问归期 提交于 2019-12-23 01:52:55
问题 I have made splash screen for phonegap application but after upgrade my splash screen is not display i have written code in cofig file is as below and also i have added screen as per phonegap splash screen documentation. and also i have added default screen image in project. <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.abc.mobileapp" version="1.0.0" versionCode = "10"> <name>abc</name> <description></description> <author email="admin@abc.com">abc

Cordova: Getting a file Uri from a content Uri

最后都变了- 提交于 2019-12-22 17:49:21
问题 I implemented an app with Apache Cordova and I used $cordovaCamera plugin. When the source type of $cordovaCamera is Camera.PictureSourceType.PHOTOLIBRARY the output is something like "content://com.android.providers.media.documents/document/image" and, when I use Camera.PictureSourceType.CAMERA I get "file:///storage/emulated/0/Android/data/com.ionic.viewapp/cache/image.jpg". In my case the format "file://.." is more useful. It is possible get the file URI from the content URI? I found many