cordova-plugins

Ionic 2 application to print via Sunmi V1

≯℡__Kan透↙ 提交于 2019-12-03 21:52:06
For an ionic 2 app to print using Sunmi V1, added native plugin for printer by executing cordova plugin add cordova-plugin-printer First I checked whether the printer is available by checkPrinter() { this.printer.check().then(function () { alert("Printer available"); }, function () { alert("Printer not available"); }); } It alerts "Printer available" But the below method doesn't prompt any message printData() { this.printer.isAvailable().then(function () { this.printer.print("Test Data").then(function () { alert("Printed"); }, function () { alert("Printing error"); }); }, function () { alert(

UPI deep link issue with android app integration

被刻印的时光 ゝ 提交于 2019-12-03 21:50:38
I am using native code for upi deep linking. When intent invoke on bhim app payment details page in not showing while other psp app redirecting to payment page When I click a url from mobile browser like this upi://pay?pa=98955012345@upi&pn=abc&am=1 it opens BHIM app with pre-filled page of payee details. However when I use my merchant app, to link it through intent deep-linking, it opens BHIM but does not redirect to pre-filled page. It really works for the BHIM application also. Use this Code it works like a charm for every PSP enabled applications. Note: Instead of using the "%" better to

Failed to install cordova-plugin-whitelist using forcedroid for creating android app from salesforce

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 21:39:46
I am trying to create a forcedroid hybrid android app. After i enter forcedroid create command i get the below log C:\Git>forcedroid create Enter your application type (native, hybrid_remote, or hybrid_local): hybrid_local Enter your application name: test Enter the target directory of your app: ibeaconapp Enter the package name for your app (com.mycompany.my_app): com.yameen.test Creating a new cordova project. C:\Git\ibeaconapp\test C:\Git Adding android project... Creating Cordova project for the Android platform: Path: platforms\android Package: com.yameen.test Name: test Android target:

Android: phonegap/cordova: switch full screen mode while app is running

无人久伴 提交于 2019-12-03 20:27:39
I want to switch between full screen mode and normal mode while my app is running. is there any phonegap plugin to do this for me (Android) ? if no, Please tell me how can I switch between full screen and normal in java, called in javascript. It's possible to do using this plugin: https://github.com/mesmotronic/cordova-plugin-fullscreen it has functions AndroidFullScreen.showSystemUI, AndroidFullScreen.leanMode, AndroidFullScreen.immersiveMode to do the switch. Try the following method. It displays full screen. Set Fullscreen as following method. call this method before "super.LoadURL("....");

Can't start an activity from a cordova plugin using .aar files

扶醉桌前 提交于 2019-12-03 20:26:10
I am trying to write a simple cordova-plugin for android, but I am stuck into a crash that I don't know how to resolve. I basically followed these steps to create simple plugin and it worked fine. http://www.mat-d.com/site/tutorial-creating-a-cordova-phonegap-plugin-for-android-app/ Yet, my plugin must call an activity that is packaged as an .aar file. Basically I have a full blown application with java/layouts that needs to be triggered by the plugin. I followed these steps to add my .aar file to the android build of cordova. Cordova plugin development - adding aar It also worked. Now, I have

Ionic 3 error install native plugin after Ionic 4 release

大城市里の小女人 提交于 2019-12-03 20:25:38
问题 I get a problem using native plugin ionic 3 when install Native Store is success, but when I try to add in app module, the text editor show a red line and when I try to run I found an error like below. Here I install Native-store (https://ionicframework.com/docs/v3/native/native-storage/) Red line in text editor, successful install but when add in app module show red line. This is error in console when run 'ionic cordova run android'. [14:40:05] ionic-app-scripts 3.1.8 [14:40:05] build dev

GIF File in splash screen Ionic

℡╲_俬逩灬. 提交于 2019-12-03 16:32:19
问题 I am developing a hybrid application with ionic-framework and Cordova plugins. They asked me the splash screen on both operating systems (iOS and Android) has a small animation. I imagine a GIF but not if you can load a GIF as splash screen. Or if there is a plugin for this. 回答1: You can do it this way without using plugins. More information is available here. HTML <body> <div id="custom-overlay"><img src="http://cdn.osxdaily.com/wp-content/uploads/2013/07/dancing-banana.gif"></div> <!-- Here

Two cordova plugins modifying “*-Info.plist” CFBundleURLTypes

依然范特西╮ 提交于 2019-12-03 16:27:18
I have 2 cordova plugins that are modifying CFBundleURLTypes: The first one: <config-file target="*-Info.plist" parent="CFBundleURLTypes"> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>$URL_SCHEME</string> </array> </dict> </array> </config-file> The second one: <config-file target="*-Info.plist" parent="CFBundleURLTypes"> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>fb$APP_ID</string> </array> </dict> </array> </config-file> Only the first plugin that is added is modifying the "*-Info.plist". Is there a way to make both plugins to be appending -Info.plist file?

Restrict uploaded image size Camera plugin cordova ionic

爱⌒轻易说出口 提交于 2019-12-03 15:31:13
I have fetched the image using Camera plugin in my ionic app. I want to restrict the user on the size of the image which user is choosing, lets say 200kb. I have added Camera as File plugin. I have used below code: /*Function to get image from gallery*/ $scope.getImageFromGallery = function(){ var options = { quality: 100, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM, popoverOptions: CameraPopoverOptions, saveToPhotoAlbum: false, targetWidth: 450, targetHeight: 450, encodingType: Camera.EncodingType.JPEG, }; navigator.camera.getPicture

How to bundle CocoaPods dependencies with Cordova Plugin?

心不动则不痛 提交于 2019-12-03 14:37:56
问题 I'm developing a Cordova plugin, and for the iOS platform, I'd like to incorporate a few existing (non-cordova-specific) Cocoapods. I haven't been able to find any info or examples on how to get this working, and I would've expected this to be a fairly common use-case. Note that I am not trying to use Cordova as a Cocoapod, for which there is a decent amount of information out there, but rather use Cocoapods from within the iOS platform of a Cordova plugin that I'm developing. Cordova's