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
55
votes
11 answers

Problem with play-services-measurement-base on ionic

I have a problem on an ionic project that it started happening yesterday without modifying any dependency. When I run ionic cordova run android I have this error: The library com.google.android.gms:play-services-measurement-base is being requested…
41
votes
8 answers

Ionic 5 with Angular 9 - Angular JIT compilation failed: '@angular/compiler' not loaded

Ionic 5 was announced a few hours ago (12th Feb 2020) and I upgraded my one of the small production app to Ionic 5 along with Angular 9: # To update to Ionic 5 npm install @ionic/angular@latest @ionic/angular-toolkit@latest --save-exact --save # To…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
20
votes
8 answers

Cannot find module '@schematics/angular/utility/project'

If I do ionic generate component xxx An unhandled exception occurred: Cannot find module '@schematics/angular/utility/project' Require…
user13057679
16
votes
4 answers

Capacitor/Ionic: Handling push notification in background or when app was killed

Goodmorning everyone, I haven't been able to find a solution for several hours now. I use the "PushNotifications" Capacitor plugin (https://capacitor.ionicframework.com/docs/apis/push-notifications/) to listen to push notifications that come to me…
Lorenzo Iovino
  • 204
  • 2
  • 5
16
votes
10 answers

ionic build android's Error : copyFileSync: could not write to dest file

When I use the command : ionic cordova build android here is what I get : cp: copyFileSync: could not write to dest file (code=ENOENT):/Users/mehdigriche/work/cam1/test/platforms/android/res/xml/config.xml Parsing …
mehdigriche
  • 444
  • 1
  • 4
  • 14
16
votes
4 answers

Ionic Pull to Refresh (Refresher) Inside an Element

Is it possible to implement Ionic's pull to refresh (aka "Refresher") inside of an element instead of on an entire page? This would be useful when designing an app that has a smaller scrollable section within a page. With the current behavior, the…
Tyler
  • 3,616
  • 3
  • 22
  • 34
15
votes
10 answers

How to run Ionic app on android-studio with capacitor on Ubuntu?

When I run the ionic capacitor run android command, to launch my application in Android Studio, I get the error saying: Unable to launch Android Studio." You must configure "linuxAndroidStudioPath" in your capacitor.config.json to point to the…
13
votes
4 answers

Ionic 4 - AlertController: Property 'present' does not exist - Angular?

I'm setting up a new alert in Ionic 4 - blank type:angular project. It's basic alert but I get an error occured running of my project. Error Property 'present' does not exist on type 'Promise'. Did you forget to use 'await'? My create the same…
Simon
  • 159
  • 2
  • 2
  • 8
11
votes
6 answers

How to download file from url in Ionic 5 without using FileTransfer

I'm currently developing Ionic app now and stuck at file download part. I saw many posts that FileTransfer cordova library is now deprecated in favor of XHR request. Even though I saw many posts that the library is deprecated, I can't find any…
Ioan Moldovan
  • 2,272
  • 2
  • 29
  • 54
11
votes
8 answers

How do I decrease the size of the Ionic Android APK file?

I created the app using Ionic and the Android APK file size is too big. Before the API integration The File Size was 4.8MB. When I integrated the API I modified just 10 Pages now the APK file size is 71 MB. Here are the Cordova Plugins I have…
10
votes
1 answer

Error: Can't resolve all parameters for setupPlatform: (?, [object Object], [object Object])

I updated my Angular to version 8, and I have run into a small problem. when I start the app with ionic serve Error: Can't resolve all parameters for setupPlatform: (?, [object Object], [object Object]). at syntaxError…
9
votes
3 answers

ionic : File C:\Users\Admin\AppData\Roaming\npm\ionic.ps1 cannot be loaded because running scripts is disabled on this system

ionic : File C:\Users\Admin\AppData\Roaming\npm\ionic.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1…
Free Fone
  • 101
  • 1
  • 1
  • 2
9
votes
4 answers

Could not find com.google.android.gms:strict-version-matcher-plugin:1.1.0

Could not resolve all files for configuration 'classpath'. Could not find com.google.android.gms:strict-version-matcher-plugin:1.1.0. Searched in the following locations:…
Satheeshkumar Somu
  • 496
  • 1
  • 7
  • 14
9
votes
4 answers

File not uploading in server ionic3

I have a scenario where I am uploading a image file from my local drive (type jpeg or png) to an API endpoint using ionic. Here is my code below : fileupload.html --> //---------------------------------------------------
Alex
  • 189
  • 4
  • 23
9
votes
7 answers

Ionic cordova-plugin-qrscanner has no camera preview

I run a simple demo to use cordova-plugin-qrscanner, it can scan qrcode but no camera preview. qrscannerDemo on Github Related code blow: import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import {…
Story5
  • 142
  • 1
  • 1
  • 9
1
2 3
80 81