Questions tagged [ionic-native]

The tag specific for ionic-native, a replacement for using ngCordova and supports ionic 1, 2, 3 and 4, and since ngCordova tag is existing this tag must exist as well, the ngCordova is such a different tag and not related to ionic-native, so it is helpful to avoid any conflict between these two tags.

Ionic Native is a curated set of ES5/ES6/TypeScript wrappers for Cordova/PhoneGap plugins that make adding any native functionality you need to your Ionic, Cordova, or Web View mobile app easy.

Ionic Native wraps plugin callbacks in a Promise or an Observable, providing a common interface for all plugins and ensuring that native events trigger change detection in Angular 2.

For Ionic v1 (AngularJS, Angular 1.x) support, please use version 2 of Ionic Native. See the 2.x README for usage information.

1203 questions
5
votes
2 answers

no devices/emulators found when trying to use ionic cordova run android --device

The Connected Device: It is running Developer Options with USB debugging enabled It is using MTP as the Device file manager Drivers have been installed to the laptop with no issues and I can browse the files fine When I run: ionic cordova run…
Jaquarh
  • 6,493
  • 7
  • 34
  • 86
5
votes
2 answers

how to do prod build in ionic capacitor

In ionic 4, how to do a release aka prod build? The angular part can be build in prod mode by ionic build --prod Now how to copy this build to android? If I do ionic capacitor run android it will do normal build first and then copy assets to…
5
votes
1 answer

Ionic angular Preload all module only on device

How to use preload all strategy on device and nopreload on browser? we can load all module like this: imports: [ CommonModule, RouterModule.forRoot(appRoutes, { preloadingStrategy: PreloadAllModules }), ... ], This will preload all module in any…
Mohammad Reza Mrg
  • 1,552
  • 15
  • 30
5
votes
3 answers

How to launch external app from an ionic4 app

My app is under Ionic 4 for android and I have to open/run/launch external app (for exemple com.google.android.youtube or com.sygic.truck) -> for instance, any installed app. I tested many options without any success : InAppBrowserModule (using…
Lucas
  • 169
  • 2
  • 8
5
votes
5 answers

unable to display image from FILE URI, Ionic framework

I am trying to display image taken from camera and displaying it to the view. I have searched for this answer on many websites but nothing worked. I have tried DomSanitizer, Base64 and even photo-library but the image returned from them is not…
Muhammad Faizan
  • 353
  • 4
  • 15
5
votes
1 answer

Ionic FabButton not properly working on iPhone

I'm using Ionic FabButton for a floating button over the content in a fixed position. My code is:-
Ankur
  • 177
  • 3
  • 15
5
votes
2 answers

How to Open Whatsapp app from other app with a specific contact in ionic 3?

I've developed an ionic 3 app. I am unable to open whatsapp from my app with a specific contact in ionic 3. i don't want to send or share any thing but only wants to open whatsapp in android & iOS from my app with a specific contact. Is there any…
Priyank
  • 3,778
  • 3
  • 29
  • 48
5
votes
1 answer

Difference between "ionic cordova plugin add" and "npm install @ionic-native/plugin --save"

I have been trying to use the ionic-native plugins provided by Ionic 3. When I read the install instructions, there are always 2 command lines instead of one. ionic cordova plugin add cordova-plugin-camera npm install --save @ionic-native/camera If…
S.C.
  • 900
  • 1
  • 13
  • 39
5
votes
3 answers

Displaying a FILE_URI image taken by Native Camera in Ionic 3

How do you display a FILE_URI image taken by the user using @ionic-native/camera in Ionic 3? I can use Ionic Native's Camera to get a FILE_URI image URL, with a result like this:…
caitlin
  • 2,769
  • 4
  • 29
  • 65
5
votes
5 answers

Change ion-backdrop opacity?

I'm trying to change the opacity of my ion-backdrop from 0.08 to 0.33. I've tried: ion-backdrop { opacity: 0.33 !important; } and setting $popover-ios-background: rgba(0, 0, 0, 0.33);. Setting the value on ion-backdrop does work but since it's…
Joe Scotto
  • 10,936
  • 14
  • 66
  • 136
5
votes
1 answer

Ionic 3 local notification in background app

How to create local notification in background app for Ionic 3? I have try tutorial in here https://ionicframework.com/docs/native/local-notifications/ but it just for foreground app Thank's in advance..
Brian Yudhanto
  • 137
  • 2
  • 11
5
votes
1 answer

how to create, read and write file in ionic native

I am looking for file operation like create, read and write text or logs in to file, i have a lot research but i haven't find any proper example to do so. this link gives the examples but when i use that in typescript file i got errors like [ts]…
gaurang
  • 2,217
  • 2
  • 22
  • 44
5
votes
3 answers

Ionic secure storage - Ask the user to set a lock screen

I'm trying to initialize the secure storage plugin. When this fails it means the user does not have a secure lockscreen set. Using the github page i'm trying to recreate the sample provided: var ss; var _init = function () { ss = new…
Juxture
  • 253
  • 3
  • 15
5
votes
4 answers

Ionic Statusbar White on White

Has anyone experienced a white statusbar since this new XCode update? Before the update this code was working... statusBar.styleBlackTranslucent(); ...now I just get get a white bar with white text. (see screenshot) For relevant debug info: …
5
votes
1 answer

How to customize the "BarcodeScanner" in ionic 3

I am facing an issue in customizing the design for (QR code scan screen) in ionic 3 which exists in ionic BarcodeScanner library. I need help in customizing this screen, add header, footer, and buttons. In the attachment, there is a screen shot for…
Osama khodroj
  • 1,230
  • 2
  • 23
  • 29