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
4
votes
2 answers

Ionic native camera.getPicture(options) always returns a string

I am using the getPicture function from @ionic-native/camera to get the file URI of the image. I have the cordova camera plugin and all the packages are updated. According to the documentation the default destination type option is File_URI.…
Ghost
  • 76
  • 1
  • 6
4
votes
1 answer

Ionic Android ask permission plugin - not asking for permission

I'm calling the function below: this.androidPermissions.requestPermission("ACCESS_FINE_LOCATION") .then((data: any) { if(data.hasPermission) { console.log("have permission"); } }); But I do not get the permission popup. I have tried with the…
Noman
  • 887
  • 1
  • 15
  • 34
4
votes
0 answers

Unable to verify the first certificate - IONIC

I installed iconic and for that, I first did npm config set strict-SSL false and then when I created an ionic app using ionic start myApp tabs. This error showed up Error: unable to verify the first certificate at TLSSocket.onConnectSecure…
Mayank Mittal
  • 59
  • 3
  • 4
4
votes
0 answers

ionic ios app with in-app purchase - how to test in-app consumable product before first submission of the app and product

Building an ionic 3 app and want to add in-app purchases for iOS. But can't seem to be able to test the in-app purchase products. I integrated with both Native in app purchase plugins from the Ionic Native documentation website In App Purchase and…
undertakeror
  • 1,022
  • 7
  • 11
4
votes
0 answers

Download a file using HttpClient in Ionic 3

I need to download a file from server. I previously used FileTransfer plugin of Ionic and it worked fine. I can also get the download progress with size. this.fileTransfer.download(url, savePath, false, options).then((entry) => { …
Joseph
  • 1,060
  • 3
  • 22
  • 53
4
votes
1 answer

Ionic File Encryption

I'm trying to use Ionic Native File Encryption plugin which works with Cordova Safe plugin. However, after I add the plugin and try to run (even without using it in my code) it using ionic cordova run android, I get this error: BUILD FAILED in…
amitairos
  • 2,907
  • 11
  • 50
  • 84
4
votes
1 answer

Cordova File Plugin giving Security error on using readAsDataUrl

I am using FileChooser to choose a file from my internal storage of my phone and File plugin to convert it into base64 but this.file.readAsDataUrl is giving error "FileError{code:2, Message:SECURITY_ERR}" I have all required permissions still the…
4
votes
0 answers

Ionic Storage Issue for less memory space

I am using ionic storage in my app and It needs almost 1GB device space to launch the app. If device memory is not having at least 1GB of space app will not be launched. After clearing that memory I am able to launch. this the way, I am trying to…
4
votes
1 answer

Ionic 3 FCM open specific pages when notification tapped when app is in background/closed

I can get the push notification when my apps is on background/closed and I can get the data in the payload of the notifications when i tapped it and open "notification": { "title": "Chat Messages", "body": `You have received chat messages…
4
votes
0 answers

Multiple files choose option in FileChooser Ionic 3

I am trying to choose multiple files using FileChooser but I am unable to find any thing that can help. Is it even possible in Ionic 3? Thanks.
Salman Ullah Khan
  • 730
  • 10
  • 29
4
votes
3 answers

Hide footer on keyboard open Ionic3

I'm trying to hide the footer of my Ionic 3 app when the keyboard is open, i've followed the steps found on official documentation and also on this question's accepted answer: Hide tabs on keyboard open I've correctly installed the keyboard plugin…
4
votes
2 answers

Ionic 3 pause and resume events triggering multiple times in Android

I am facing strange issue in ionic 3 pause and resume events, whenever I paused the application, events are calling multiple times(once 2, once 3 etc). Here is the code this.platform.ready().then(() => { this.platform.pause.subscribe(() => { …
4
votes
1 answer

Can't resolve all parameters for File

I am trying to implement https://ionicframework.com/docs/native/file-transfer/ Therefor I need to install https://ionicframework.com/docs/native/file/ When I use "File" in my service I get the error: Can't resolve all parameters for File: (?, ?,…
Sytham
  • 824
  • 3
  • 11
  • 25
4
votes
2 answers

Ionic Android permission always returns false

I am using ionic 3.15 and trying to use the permissions plugin. Using the code in the docs as mentioned here. I have the code as shown in the docs but will mention it again…
krv
  • 2,830
  • 7
  • 40
  • 79
4
votes
0 answers

Open Android App from SMS

I am building an Ionic 2/3 application utilizing Ionic's deep linking plugin. The complete solution utilizes SMS to send an alert to the device. The SMS message contains a deep link url, like myapp://0123456789acrazylongid. The native Andorid SMS…