cordova-plugins

Cordova notification plugin failed installation (Cordova 3.6)

北城以北 提交于 2019-12-06 10:57:44
问题 I've updated a project from Cordova 3.4 to 3.6.3 and everything has fallen apart (as usual). But specifically, here, the org.apache.cordova.dialogs plugin is not working in runtime on ios. Cordova says the plugin is installed: $ cordova plugins ls org.apache.cordova.dialogs 0.2.9 "Notification" org.apache.cordova.vibration 0.3.10 "Vibration" In config.xml (the one outside of the platforms directory) I have added: <feature name="Notification"> <param name="ios-package" value="CDVNotification"

Error to compile Ionic 3 with Cordova: cordova\node_modules\cordova-common\src\superspawn.js:169:23

陌路散爱 提交于 2019-12-06 10:50:49
问题 In Ionic 3 with Cordova when I give the command: ionic cordova run android --emulate It gives the following message: BUILD FAILED in 3s at ChildProcess.whenDone (C:\wellfitapp\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) (node:9040) UnhandledPromiseRejectionWarning:

How to take pictures and crop them using ionic framework and cordovaCamera-plugin?

纵饮孤独 提交于 2019-12-06 10:16:26
Currently I'm developing an ionic-framework-mobile-application and I have the problem to correctly make profile-pictures. I am using the cordovaCamera-plugin and I have to take pictures with the camera or to use pictures from the library. After getting a picture the user should be able to crop the picture to just upload the part, he wants to. My javascript- / angular-code to take a picture using the camera looks like this: $scope.takePicture = function () { var options = { quality: 100, destinationType: Camera.DestinationType.DATA_URL, sourceType: Camera.PictureSourceType.CAMERA, allowEdit:

3rd Party Library “cordova-plugin-ms-azure-mobile-apps” not getting recognized in my Ionic 2 app

自闭症网瘾萝莉.ら 提交于 2019-12-06 09:51:54
After looking everywhere (and going through the past forum topics on all sorts of websites) for the last 2 days and no solution, I am posting here as a last resort. I understand everybody is busy but this is killing me. I have tried everything possible from creating the app from scratch multiple times to adding one library at a time then run and make sure it's working then add another library and then run the app... Everything is good until I add " cordova-plugin-ms-azure-mobile-apps " in my app. I am using the following command: ionic plugin add cordova-plugin-ms-azure-mobile-apps --save This

cordova contacts plugin contact data is duplicating instead of overwriting contact data

三世轮回 提交于 2019-12-06 09:47:59
I have feature in my app that checks users contacts using cordova contacts plugin with an online database of users. If the any of the contacts in the users device have accounts the data from the account is updated on the device. The function works with things like name and date of birth but emails and phone numbers don't overwrite the existing contact data it instead creates new entry for these. This particular user should only have 1 email address and 1 phone number. JSON reponse and save var contacts = json.contacts; for(var x = 0; x < contacts.length; x++){ var user = contacts[x]; //console

How to implement phonegap/cordova in android webview?

十年热恋 提交于 2019-12-06 09:42:04
问题 I need just a few minutes for someone to tell me if these steps are correct for implementing cordova in a android webview: EDIT: Ok I finally got it working these are the right steps: 1) I create project: cordova create hello com.example.hello HelloWorld and enter the folder 2) cordova platform add android , cordova run android (cordova.jar is created) => the app is launched => device is ready is shown 3) I create a cordova_layout.xml in "/res/layout" with this code: <?xml version="1.0"

Ionic2, how to import custom plugin (appsee or uxcam) into Ionic App

牧云@^-^@ 提交于 2019-12-06 09:00:49
I am trying to use Appsee or UXcam I tried import like below, but no luck // import { Appsee } from '@ionic-native/appsee'; Else where i saw that you have to declare the variable in question for typescript to recognize the variable, I did that like below declare var cordova:any; // import { Appsee } from '@ionic-native/appsee'; declare var cordova:any; @Component({ templateUrl: 'app.html' }) export class MyApp { rootPage:any = LoginPage; // FOR TESTING constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) { platform.ready().then(() => { cordova.plugins.Appsee.start(

Unable to install plugins in cordova project

对着背影说爱祢 提交于 2019-12-06 08:22:23
问题 Am facing a big issue : Unable to install the phonegap plugins in my cordova project.Actually it was working fine still yesterday. Now whenever I try adding any cordova plugin using CLI in my cordova project. I get the following error; D:\Projects\test cordova>cordova plugin add org.apache.cordova.network-information Fetching plugin "org.apache.cordova.network-information" via plugin registry npm http GET http://registry.cordova.io/org.apache.cordova.network-information npm http 502 http:/

External Storage Path (SD card) for Android 5.1.1 and later with Cordova

纵饮孤独 提交于 2019-12-06 08:18:53
问题 I am working to develop an android APP with cordova,I wanted to create an folder everyday and store a txt file in it. everything I tried is working for the internal memory of each android but not for the External SD card, have a look and help me out, if(sDeviceVersion=='4.0' || sDeviceVersion=='4.0.4'){ var sPath = 'file:///storage/extSdCard/'; }else if(sDeviceVersion=='4.1' || sDeviceVersion=='4.1.2' ||sDeviceVersion=='4.3.1'){ var sPath = 'file:///storage/extSdCard/'; }else if

Offline and online events not getting Called in cordova 3.5.0

梦想的初衷 提交于 2019-12-06 07:47:34
I am using cordova 3.5.0 to develop my phonegap application . In that i want to check internet connectivity before web service calls . So i added network status plugin by using the command cordova plugin add org.apache.cordova.network-information . Plugin installed successfully in my application . After Adding the plugins i added 2 EventListener's one for online and another for offline. var app = { // Application Constructor initialize: function() { console.log('App initializing...'); this.bindEvents(); }, // Bind Event Listeners // // Bind any events that are required on startup. Common