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.

1126 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…
36
votes
7 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
  • 21,660
  • 9
  • 71
  • 105
16
votes
9 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
  • 394
  • 1
  • 3
  • 12
15
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
  • 2,924
  • 2
  • 20
  • 29
11
votes
6 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…
11
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
  • 139
  • 1
  • 2
  • 8
10
votes
5 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
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…
user1557970
  • 283
  • 2
  • 16
10
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
  • 197
  • 2
  • 19
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
  • 448
  • 1
  • 6
  • 14
9
votes
8 answers

IONIC Android Apk File size Way Too Big ! how to decrease the size of app for android?

I have developed the app using ionic and now while generating the android APK file its size getting way too big. before the API integration The File Size Was 4.8MB once I Started API Integration I just Modified 10 Pages Then The APK File Size became…
9
votes
2 answers

Ionic 3 Android app's status bar Text color to Dark or Black

I need to change the Status bar text color to dark (or black).But it is not supported on Cordova plugin.But I have seen where there is a method on Android native device as shown below.Can we do the same on Ionic 3 app too? Refernce:
Sampath
  • 50,641
  • 40
  • 250
  • 357
8
votes
2 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
  • 124
  • 1
  • 4
8
votes
1 answer

ionic-native angular example code to vuejs

With the Ionic Native there is the possibility to use iBeacons via a native-plugin: https://ionicframework.com/docs/native/ibeacon The example code is written for people that use Ionic with AngularJS, but I'm using VueJS and I cannot figure out how…
user1469734
  • 1,601
  • 10
  • 37
  • 62
8
votes
2 answers

How to use angular 6 in ionic 3?

I have an Ionic 3 app on Angular 5.2. I am trying to update to angular 6. I followed the upgrade guide already for the HttpClientand NgModule. The problem I have now is with the ionic-native. I installed ionic-native V5 which is using rxjs v6…
Amr ElAdawy
  • 3,663
  • 5
  • 31
  • 48
1
2 3
75 76