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
0 answers

Get Phone Number of real device

I need some help. I need take phoneNumber of device . Iam using cordova-plugin-sim. Heres my code this.sim.getSimInfo().then( (info) => browser.on(“loadstop”) .subscribe( () => { console.log(info.phoneNumber); alert(info.phoneNumber+’…
ItsMyLife
  • 458
  • 7
  • 21
0
votes
2 answers

Ionic 2 calendar does not pick ion-datetime from html

I am trying to creat event in native/device calendar. I have created html form which allows to enter start and end date. Now, Ionic create event only understands start and end date as date type. What do I do? How do I convert string to datetime ot…
JBhatt
  • 53
  • 2
  • 11
0
votes
1 answer

Ionic 3 application not working on physical android device

Ionic 3 applications not running on physical device for testing. After downloading the default application, using `ionic start app_name sidemenu` I plugged in my physical Android device for debugging. When i executing the command…
mass
  • 73
  • 7
0
votes
1 answer

Camera and Photo Library together Ionic 2

I use the native plugin http://ionicframework.com/docs/native/camera/ to access the Camera or Photo Gallery. I need a solution to access the camera and switch to the photo gallery if necessary. Is there such a plug-in or not?
wstudiokiwi
  • 880
  • 1
  • 15
  • 33
0
votes
1 answer

How to create an In app media storage using Ionic on iOS?

How to create an In app media storage using Ionic on iOS? Just like whatsapp does. When we download media files on whatsapp on iOS, it creates its own space for storing files. Is it possible to create such storage using Ionic on iOS?
user3767923
0
votes
0 answers

Ionic-native: Always same page title in Google Analytics

I'm trying to track my Ionic app with Google Analytics by using the @ionic-native/google-analytics package, but whenever I try to track a page view with this code: constructor( //Constructor of each Page component ... public platform:…
kikus
  • 31
  • 3
0
votes
1 answer

How do I use ionic 2 datepicker plugin with ion-input? Any other alternative?

I am trying to use ionic native datepicker plugin. I am trying to use it with ion-input. upon click it should be able to select date and show the value in the input field. Unfortunately, when I use type ="date", it does pick and enter value from pop…
JBhatt
  • 53
  • 2
  • 11
0
votes
1 answer

ionic 3 detecting when user is back from inAppBrowser

i have an angular ionic 3 app and using inAppBrowser plugin to launch a link from the ion-button in my app. i want to change the title of the button but only once the user retrun back to the app. the current code is like: HTML:
Vik
  • 8,721
  • 27
  • 83
  • 168
0
votes
1 answer

How to open webview not by chrome browser but by ionic

My code is as below. I want to open google.com not on Chrome or basic browser but open on Ionic native I changed the second parameter to _self, _blank, _system and Ionic Cordova ran the Android to check on my device, but whenever I came to the…
Pd.Jung
  • 113
  • 1
  • 3
  • 13
0
votes
1 answer

ionic 2 - Native Geocoder forwardResult and reserveResult not working

Trying to generated markers on the map based on the postcode of the users from a database, but already stuck at the beginning. I am following the example from: GitHub Tried the method from the ionic documentation but it does not seem to work as…
aaa
  • 857
  • 4
  • 25
  • 46
0
votes
1 answer

Ionic InAppBrowser unable to close programmatically because loadstart event not firing sometimes

I want to programmatically close my InAppBrowser when it is redirecting to a certain page. this.ref = this.iab.create(newPath, '_blank'); this.ref.on("loadstart").subscribe((event: InAppBrowserEvent) => { this.ref.close(); }); This code works…
mkto
  • 4,584
  • 5
  • 41
  • 65
0
votes
0 answers

How to fix app.bundle.js Failed to load resource in Ionic 3

I am using below configurations for my ionic app: Ionic CLI v1.2.1 Cordova 7.0.1 node v6.10.3 npm 3.10.10 On executing ionic serve, the web page opens blank with below error on console: app.bundle.js Failed to load resource: the server responded…
0
votes
0 answers

Rotate map with one finger (using PAN gesture)

i am using cordova-plugin-googlemaps(1.4.1) in ionic(3.4.0) and i am looking for a way to rotate the map with one finger.The plugin's documentation doesn't have any events for drag. I found some custom code for android here How can I rotate on…
Cristi Milea
  • 91
  • 1
  • 2
  • 7
0
votes
1 answer

Background Geolocation Plugin: Track location and update database every 5 minutes

I'm currently developing a mobile app using AngularJS / Ionic 3. I need to track at all time, if my users are within a radius of 100m of a certain geolocation (let's call it "Home Location". I need to know at all time which user is at his home…
Jane Dawson
  • 693
  • 2
  • 7
  • 19
0
votes
0 answers

Caesar Cipher using Ionic

I have tried countless ways to implement encryption and decryption of Caesar cipher using ionic but to no avail. Take a look at my work. Below is my UI. and here is my code Caesar Cipher …