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
1 answer

Class member variable got undefined

I need to read all the files recursively from a directory. I used the code snippet: import { Component } from '@angular/core'; import { File } from '@ionic-native/file' @Component({ selector: 'page-files', templateUrl: 'files.html', }) export…
Anil8753
  • 2,663
  • 4
  • 29
  • 40
0
votes
1 answer

ionic 2 navControl push issue

i am using ionic 2 for my android application. For page routing i am using this.nav.push(LoginPage); When i push from one page to another it's showing previous page some sections in current page. Because of this my pages are not showing as…
Sarath
  • 1,459
  • 3
  • 22
  • 38
0
votes
1 answer

Command failed with exit code 1 Error output: FAILURE: Build failed with an exception

I'm trying to run the command ionic build android --release to build the apk but i am getting this error BUILD FAILED Total time: 2.623 secs Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. What…
0
votes
1 answer

Running an ionic app inside ionic app

Is there any way to develop the main app with logins using ionic and develop subparts of that app as individual apps and use the main app to access the sub-apps and pass the login info to sub apps. Draw.io Flow Diagram For Better idea 1
0
votes
1 answer

Ionic / Cordova: How to install ionic native plugins

How do I install an additional Cordova plugin into an existing Ionic/Cordova project? I need the Cordova Battery-Status Plugin. If I try: ionic cordova plugin add cordova-plugin-battery-status I'm getting this: Error: Failed to fetch plugin…
jbra95
  • 881
  • 2
  • 11
  • 30
0
votes
0 answers

install the CameraPreview plugin, CameraPreview plugin is not installed

I'm making an app using ionic and cordova. I add CameraPreview Plugin to use it, but when i deploy to ios and test on iphone, it says [Warning] Native: tried calling CameraPreview.startCamera, but the CameraPreview plugin is not installed.…
HB.K
  • 167
  • 2
  • 12
0
votes
1 answer

Ionic3 w/dynamic content won't show selected CSS class

I'm using Angular 4 Reactive Forms, with "Ionic(3) native" UI components, and techniques from various "nested reactive forms" blogs/tutorials to create a dynamic, multi-section data entry app. I wanted a reusable segmented control component that…
mc01
  • 3,750
  • 19
  • 24
0
votes
2 answers

Ask user to activate Geolocation in an IONIC 3 application

I'm using the Ionic 3 native Geolocation plugin to get the user position using the function "getCurrentPosition()". But when the geolocation is not activated on my device I get the last saved position... How can I ask users to activate their…
adilmrk
  • 27
  • 9
0
votes
0 answers

Uploading file from angular to node.js

I am new to this thing, can anyone explain me that, if i am hitting an API endpoint from angular to send a image/video. How should i write my route.post route in express.js to get the incoming image/video. I am using the FileTransfer Ionic native…
Fkhan
  • 286
  • 1
  • 11
0
votes
2 answers

Get Intent from intent-filter with WebIntent Native Plugin

I’m working with Ionic Native Plugin Web Intent, and I want to get an android Intent and use a media file or your local url in my app. My AndroidManifest.xml it’s ok, and i can see myApp as an option for share or pick an image.
jpcolling
  • 21
  • 1
  • 4
0
votes
3 answers

ionic cordova build android --prod

i got a new error with ionic when we create a build for production using command ionic cordova build --prod it always gives an error at the point of ngc started Running app-scripts build: --prod [15:00:23] build prod started ... [15:00:23] …
Pravesh Negi
  • 225
  • 3
  • 16
0
votes
1 answer

Ionic native file opener 2 error class not found

I receive error when trying to open a file Class not found .ts open(){ this.platform.ready().then(() => { this.fileOpener.open(this.entry.nativeURL, this.attachment.mime).then(() => { console.log('file opened') }, err => { …
Yasir
  • 1,391
  • 2
  • 23
  • 44
0
votes
0 answers

Ionic 2 Native plugins does not work on device

I'am using some Cordova plugins in my Ionic 2 application (camera, Geolocation, Facebook), but when i try to use them i have a message : "Native: tried calling Camera.getPicture, but the Camera plugin is not installed." but all my plugins are…
Nacim Idjakirene
  • 1,882
  • 8
  • 26
  • 45
0
votes
2 answers

CameraPreview is not showing when toBack is true

In my Ionic app, I have a modal view. I want its background to be a CameraPreview block but it's not working when I set the toBack property to true. Here are my cameraOptions: public cameraPreviewOpts: CameraPreviewOptions = { x: 0, y: 0, width:…
0
votes
0 answers

Android Permissions not work

I install Android Permissions plugin from this page https://ionicframework.com/docs/native/android-permissions/ . But when i add to constructor constructor(private androidPermissions: AndroidPermissions) { } my app doesnt start and in adv logcat i…
ItsMyLife
  • 458
  • 7
  • 21