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

ionic native fcm plugin issue

I want to implement firebase push notification in my ionic 3 application. I've added ionic natice fcm plugin. But when i build application using following command ionic cordova build android but it gives me an error as below: ionic cordova build…
Nirav Parsana
  • 155
  • 1
  • 17
0
votes
1 answer

Chaining promises fails in ionic2 native sqlite

Am implemenmting chained promises but one function fails to be executed Basically i have the following functions which return promises 1. open database 2. add record // incase record exists remove it 3. remove record called from no 2 This is the…
Geoff
  • 6,277
  • 23
  • 87
  • 197
0
votes
2 answers

Gradient color to the Android status bar - Ionic 3

I have gradient value like this: linear-gradient(to right, #0072FF,#00C6FF).Can you tell me how to apply this to the Android status bar? I have tried as shown below.But it is not working. this.statusBar.backgroundColorByHexString('linear-gradient(to…
Sampath
  • 63,341
  • 64
  • 307
  • 441
0
votes
0 answers

Wrapper of cordova plugins in Ionic3

I want to use cordova-plugin-wechat in ionic 3. But I'm not sure how to use it. There is @ionic-native/alipay for cordova-alipay-base. I tried to make @ionic-native/wechat by following @ionic-native/alipay, but couldn't. It's sure that @ionic-native…
ahadortiz
  • 916
  • 1
  • 9
  • 20
0
votes
1 answer

Ionic native Transfer plugin's `file.dataDirectory` shows error

I'm going to use the Ionic native Transfer plugin as shown below. Problem is here this.file.dataDirectory.It shows error like [ts] Property 'dataDirectory' does not exist on type 'File'..Can you tell me what is the solution for this? download() { …
Sampath
  • 63,341
  • 64
  • 307
  • 441
0
votes
0 answers

InAppBrowser and FileTransfer in ionic2

my ionic info of my project is global packages: @ionic/cli-utils : 1.3.0 Cordova CLI : 7.0.1 Ionic CLI : 3.3.0 local packages: @ionic/app-scripts : 1.1.4 @ionic/cli-plugin-cordova : 1.3.0 …
Mohan Gopi
  • 7,606
  • 17
  • 66
  • 117
0
votes
1 answer

Getting error in setup of Existing Ionic 2 project on other Computer

I am getting error while 'npm install' on other computer. npm ERR! node v6.10.3 npm ERR! npm v2.7.3 npm ERR! code EPEERINVALID npm ERR! peerinvalid The package @ionic-native/core does not satisfy its siblings' peerDependencies requirements! npm…
Jayesh
  • 7
  • 3
0
votes
1 answer

ionic 3 File plugin - how to write accelerometer data to file

I am working on an Ionic project that uses the accelerometer at 100hz. I need to save the accelerometer readings to a file, and I am using ionic native file plugin. My problem - the writing time to the file is longer than the accelerometer sample…
Ziv
  • 538
  • 1
  • 4
  • 7
0
votes
1 answer

Trying to get base64 representation of a file with cordova file plugin and ionic-native

I´am trying to get a base64 representation of a file with the cordova-file-plugin and ionic-native. But I´am getting a security_error. The file is picked with the cordova-filechooser. this.fileChooser.open().then((uri) => { const splitUri:…
kimwanglee
  • 21
  • 1
0
votes
0 answers

Ionic-Native Media Capture videos of length greater than 60 secs

Using ionic-native media capture to open camera and record videos I'd like the length of the videos to be a max of 120 seconds. Below are the pieces of code I'm using, I put a maxLength =120 but the camera will always record 60 seconds only and…
John R
  • 247
  • 1
  • 4
  • 15
0
votes
1 answer

How To Read A File As Stream In Ionic 2

Ok so am currently working on this project for an android app and I'm using ionic, but my problem is, I need to read a file as a stream and i was wondering how this could be done using the ionic native file plugin or any other means.
marvin ralph
  • 1,100
  • 3
  • 23
  • 43
0
votes
0 answers

How to convert a file to stream using just the file path in javascript on the browser

been trying to convert a file to a stream in the browser. Am working on some ionic2 project and i don't seem to find a way to do so. Ionic's file plugin can return either a binary string or an array buffer and i don't seem to know how to convert…
marvin ralph
  • 1,100
  • 3
  • 23
  • 43
0
votes
1 answer

Can't add any corodova plugin to my app

I am facing a problem. I am working on ionic 2 app mobile. I am trying to add cordova plugin to my mobile app. At the console it show me this error: [18:13:06] typescript: ...s/users/mypath/node_modules/@ionic-native/in-app-browser/index.d.ts,…
Hamdy
  • 430
  • 1
  • 6
  • 19
0
votes
1 answer

Move Camera to current position in ionic maps

I am working on google maps in ionic using google maps plugin and geolocation plugin. And getting my current location using watchposition function of geolocation that updates lat long after position changed. Every thing is fine but the problem that…
0
votes
1 answer

Android display notification without displaying it on status bar

I am writing an ionic2 app and I want my app to be visible in notification area. I found an ionic native plugin to work with notification area local-notifications. Using following peace of code constructor( private localNotifications:…
Krzysiek
  • 328
  • 2
  • 10