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

Upgrade Ionic 5.0 to 5.3 Commands

What is the proper set of npm commands to update Ionic from v5.0 to v5.3.1 (latest release), as well as, bump the version of Capacitor, Ionic Native, and the dev dependencies appropriately? I can't find an update guide with commands in the Ionic…
mtpultz
  • 17,267
  • 22
  • 122
  • 201
6
votes
2 answers

Capacitor compiled Ionic app: How to debug in Android Studio?

I used the command ngx cap open android to open my Ionic 5 project in Android Studio like described here. This works fine. In my app, i`m connecting to server which returns json data needed by my app. This connection does not seem to work, I only…
user1383029
  • 1,685
  • 2
  • 19
  • 37
6
votes
1 answer

SSL Pinning Issue with Ionic + Capacitor

As mentioned in the official docs [1], I have been trying to implement SSL Pinning in an Ionic + Angular + Capacitor Project using the Cordova Advanced HTTP plugin [2]. However, each time I open the iOS app with Xcode, it logs an error [3] saying…
6
votes
1 answer

capacitor ionic android - can't make GET requests to my server - requests are served "from-disk-cache"

When running capacitor for android, GET requests to my API aren't working, and I am getting weird headers (Client-Via:shouldInterceptRequest) as well as the fact that the request is served from disk cache. also the request is having incorrect…
BarakD
  • 538
  • 8
  • 18
6
votes
3 answers

ion-button Click not firing up function in ionic 4

I have a button and a function in my ionic 4 Code. Ideally on the click of the button, the function should fire up but that's not happening. MY HTML

Profile

Kumar Priyansh
  • 115
  • 1
  • 3
  • 10
6
votes
2 answers

TypeScript Cannot find name 'ClassName' even-though exported Ionic 3

I have to use certain plugins in my Ionic 3 Application but it gives Cannot find name error. I imported import { AndroidPermissions } from '@ionic-native/android-permissions'; and on on declaring in constructor (public androidPermissions:…
Joseph
  • 1,060
  • 3
  • 22
  • 53
6
votes
2 answers

ionic 4 google-maps 5 beta "TypeError: Cannot read property 'BaseClass' of null"

im trying to use ionic 4 google-maps@5.0.0-beta.20 i am following these slides: https://docs.google.com/presentation/d/1zlkmoSY4AzDJc_P4IqWLnzct41IqHyzGkLeyhlAxMDE/edit#slide=id.g282d0a7bfd_0_140 I get this error: "TypeError: Cannot read property…
rami bin tahin
  • 1,897
  • 2
  • 10
  • 16
6
votes
4 answers

Jest/Ionic 4 beta - import { Platform } from '@ionic/angular'; gets SyntaxError: Unexpected token export in Jest testing, not Ionic

When running Jest against the base package, I get an error in Jest in running the test, which does not appear when simply running ionic serve. Jest gets an error on import { Platform } from '@ionic/angular'; which is: export { IonicModule } from…
Steven Scott
  • 10,234
  • 9
  • 69
  • 117
6
votes
1 answer

Ionic3 ionic native google maps doesn't show map but only google logo (display grey blank map )

Update Thanks for the answer of wf9a5m75. I had a concept misunderststand on the API Keys. The Android and IOS API Key are generated from Google Cloud Platform Console (https://cloud.google.com/maps-platform/). I was using…
6
votes
0 answers

geolocation + ionic native Not working with few android devices

please help me out from this issue, geolocation plugin not working with some android devices. it tested on different Android phones to identify current location on map issues, find below results: ============ I have tested these couple of devices…
Spanchal
  • 465
  • 4
  • 16
6
votes
2 answers

Fabs With Labels In Ionic 3

I am using the Ionic 3 Framework and want to insert the following type of fab menu in my Ionic 3 App. Special Fab Menu:
jitesh bondre
  • 61
  • 1
  • 3
6
votes
2 answers

Ionic Android Internal Shared Memory

I'm using Ionic v1 with $cordovaFile and cordova email plugin to create a file and then attach it to a new email. I have a working solution for iOS on any device, but I've come across a weird issue with Android. When attempting to attach a file…
Matt Goodrich
  • 4,875
  • 5
  • 25
  • 38
6
votes
2 answers

Ionic 3 - Screen Orientation Lock not working

My requirement is to have the app fixed only to portrait mode on phones and only to landscape mode on tabs, starting with the splashscreen. Tried with the Screen Orientation plugin available on ionic native but did not work for me. Things I have…
6
votes
1 answer

Angular 2, Ionic. Can't resolve all parameter for HomePage

What am I missing in the following? I'm trying to use cordova-camera-plugins and ionic native, with Ionic 2 but I receive the following Runtime Error after ionic serve: "Can't resolve all parameters for HomePage: ([object Object], [object Object],…
J.Rem
  • 545
  • 2
  • 6
  • 24
5
votes
3 answers

The keyboard covers the input field in ios - Ionic 5

I've been with this same problem for months and I still can't find a solution. I have an application where there are several forms, when focusing on an input field the keyboard covers this input field and the user cannot see anything. This only…
Angel Guillen
  • 531
  • 4
  • 11
1 2
3
80 81