cordova-plugins

Ionic: Launching external app

南楼画角 提交于 2019-12-12 02:32:33
问题 I'm trying to launch an external app from within my Ionic app. For example, Instagram. I'm attempting this with Lampaa's Startapp plug in, and have followed a few previous examples with no success. Here's the code inside the controller, called on an ng-click="" . I've tried to explain in comments what each step is attempting. I'd also like to add an app.availability to check if the app is installed, but couldn't work out how to do this either. Thanks! $scope.onInstagramClick = function () { /

phonegap build error plugin is not on npm: Device

荒凉一梦 提交于 2019-12-12 02:24:02
问题 I am using phonegap-version cli-5.2.0 i could not build apk. error is here below Error - The following plugin, plugin version or a dependancy of this plugin is not on npm: Device my config.xml this is my config file my plugins are given below org.apache.cordova.core.geolocation,Device,Logger,Compass,NetworkStatus,Debug Console,Geolocation,SplashScreen,Battery,Globalization <?xml version="1.1" encoding="utf-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0

Generate doc file in ionic

大城市里の小女人 提交于 2019-12-12 02:09:22
问题 I need to generate doc file in ionic but there is no such plugin available. Is it possible to generate doc file in cordova app? I have searched for that but only found file opener plugin . I am using jspdf to generate Pdf but client wants to edit that report. Please suggest me. 回答1: I searched and there is no such plugin available currenly. 来源: https://stackoverflow.com/questions/42086773/generate-doc-file-in-ionic

ionic2: network connectivity check during splash screen

拜拜、爱过 提交于 2019-12-12 02:08:15
问题 I've been trying hard to figure out how to check for network connectivity while the splashscreen is being displayed.I've searched for the code in many places but most of those articles are outdated. I followed the tutorial that's mentioned here:https://www.thepolyglotdeveloper.com/2016/01/determine-network-availability-in-an-ionic-2-mobile-app/ But then I found out that Network.connection is deprecated and has been replaced by Network.type on the ionic2 website. So I've replaced the word

APN and GCM Push Notifications opening a url in cordova app

妖精的绣舞 提交于 2019-12-12 02:03:43
问题 Using Cordova PushPlugin and AngularJS I want to receive a push notification and read a URL in the payload and then navigate to that page when the notification is swiped open. How is this accomplished? I tried this, but this is inside of a global function that is outside of angular so I wouldn't suspect the $location to work. It doesn't throw any errors though, but it also does not navigate to the url from the payload. function onNotificationAPN(event) { $location.path(event.custom.url) });

Only get android contacts that are saved to the phone or sim

风格不统一 提交于 2019-12-12 01:39:53
问题 I am trying to retrieve contacts on an android device that are explicitly saved (i.e. not the ones returned by gmail or Facebook and other apps that save contact-like information). I have been playing around with this code block from the PhoneGap contacts plugin: Cursor idCursor = mApp.getActivity().getContentResolver().query(ContactsContract.Data.CONTENT_URI, new String[] { ContactsContract.Data.CONTACT_ID }, whereOptions.getWhere(), whereOptions.getWhereArgs(), ContactsContract.Data.CONTACT

Installing plugman … Error Code : INTERNAL_ERROR jdeveloper

南笙酒味 提交于 2019-12-12 01:36:21
问题 I have just started developing with Oracle MAF and created a mobile app project as per the tutorial. When I tried to deploy it to device, get the following issue and it fails. Any directions, resolutions & help, appreciated. [11:29:51 AM] ---- Deployment started. ---- [11:29:51 AM] Target platform is (Android). [11:29:51 AM] Beginning deployment of MAF application "Application1" to Android using profile "Android1". [11:29:57 AM] Checking state of Android Debug Bridge server... [11:30:02 AM]

change phone orientation but scope variable doesn't refresh

无人久伴 提交于 2019-12-12 01:27:03
问题 I am using cordova plugin to handle orientation. I want to change to a different view if orientation changes. So I try to define a variable in $scope and do related changes on UI. here is my code window.addEventListener("orientationchange", function() { $scope.orientation = screen.orientation; }); this code snippet I referred from cordova plugin orientation homepage. but the UI doesn't have any change when orientation changes. I even got $scope.orientation undefined(I tested by ng-show) How

Getting PhoneGap plugins working

流过昼夜 提交于 2019-12-11 23:13:55
问题 I've created my first phonegap app yesterday following the tutorials and using the PhoneGap Developer App. Now I'm trying to get plugins working, I'm not sure if I'm missing a step somewhere or doing it completely wrong. On OSX, I installed nodejs using brew install nodejs followed by sudo npm install -g phonegap . After phonegap was installed, I created a sample project phonegap create sample-app followed by cd sample-app and phonegap serve . I can now see the sample app inside the phonegap

Cordova 3.4.0-0.1.3 adding android platform Error

ぃ、小莉子 提交于 2019-12-11 19:46:37
问题 When i add platform i am getting this error how to resolve : C:\Users\SCube\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:126 throw e; ^ Error: ERROR : executing command 'ant', make sure you have ant installed and add ed to your path. at C:\Users\SCube\.cordova\lib\android\cordova\3.4.0\bin\lib\check_reqs.js:4 7:27 at ChildProcess.exithandler (child_process.js:641:7) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:743:16) at Process