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
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
  • 6,905
  • 5
  • 48
  • 88
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
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,053
  • 4
  • 23
  • 35
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
  • 525
  • 2
  • 6
  • 23
5
votes
1 answer

How to preload all ionic module only on device?

How to use preload all strategy on device and nopreload on browser? we can load all module like this: imports: [ CommonModule, RouterModule.forRoot(appRoutes, { preloadingStrategy: PreloadAllModules }), ... ], This will preload all module in any…
5
votes
4 answers

unable to display image from FILE URI, Ionic framework

I am trying to display image taken from camera and displaying it to the view. I have searched for this answer on many websites but nothing worked. I have tried DomSanitizer, Base64 and even photo-library but the image returned from them is not…
Muhammad Faizan
  • 293
  • 3
  • 15
5
votes
3 answers

Displaying a FILE_URI image taken by Native Camera in Ionic 3

How do you display a FILE_URI image taken by the user using @ionic-native/camera in Ionic 3? I can use Ionic Native's Camera to get a FILE_URI image URL, with a result like this:…
caitlin
  • 2,652
  • 4
  • 23
  • 55
5
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
  • 347
  • 1
  • 12
5
votes
1 answer

how to create, read and write file in ionic native

I am looking for file operation like create, read and write text or logs in to file, i have a lot research but i haven't find any proper example to do so. this link gives the examples but when i use that in typescript file i got errors like [ts]…
gaurang
  • 1,996
  • 18
  • 41
5
votes
4 answers

Ionic Statusbar White on White

Has anyone experienced a white statusbar since this new XCode update? Before the update this code was working... statusBar.styleBlackTranslucent(); ...now I just get get a white bar with white text. (see screenshot) For relevant debug info: …
5
votes
1 answer

How to customize the "BarcodeScanner" in ionic 3

I am facing an issue in customizing the design for (QR code scan screen) in ionic 3 which exists in ionic BarcodeScanner library. I need help in customizing this screen, add header, footer, and buttons. In the attachment, there is a screen shot for…
Osama khodrog
  • 1,046
  • 2
  • 21
  • 28
5
votes
1 answer

Record Video With Overlay Image in Ionic

I am developing an hybrid app with ionic 3. I require to record video with overlay image on top like snapchat, instagram etc. There's a plugin for it Here But in documentation it adds overlay only for iOS currently(i want for both iOS and Android)…
Asad35Waheed
  • 113
  • 11
5
votes
2 answers

Ionic checkFile(path,filename) NOT_FOUND_ERR

File Path - file:///data/data/io.ionic.starter/data.json I wish to check if 'data.json' exists in the mentioned path. But I recieve an error - {"code":1,"message":"NOT_FOUND_ERR"} Currently the file isn't present in the path so I am expecting the…
sanedroid
  • 996
  • 4
  • 15
  • 26
1 2
3
75 76