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

Ionic 2: tried accessing the FileTransfer plugin but it's not installed

We are developing an app which uses Native File Transfer plugin. But due to a weird issue we can not create the Test Flight / Release Build for iOS. Issue: Even after successful installation of the 'File Transfer' plugin we see the following error…
0
votes
1 answer

@ionic-native/printer is not working

I have used @ionic-native/printer plugin to implement printing option for bill report. I have installed plugin using this command line: npm install --save @ionic-native/printer Then in the viewbill.html I put a line to active the printer : …
Shreyas Pednekar
  • 1,285
  • 5
  • 31
  • 53
0
votes
0 answers

ngFor counting without any array or object, and how to use ngFor again within a ngFor?

I want to show count from 0 to user -> term. How can I add this count digits into a dropdown https://stackblitz.com/edit/ionic-djze7u Please check this editorial link Home.html
Somnath
  • 368
  • 2
  • 9
  • 22
0
votes
2 answers

Ionic Native Google Maps plugin - set app background color

I'm having trouble with Ionic 3, specifically setting the app background color when using the native Google Maps plugin. The map is a native element "under" the browser, and having background color set for the Ionic app covers the map and prevents…
mkkekkonen
  • 1,704
  • 2
  • 18
  • 35
0
votes
1 answer

faild to install cordova plugin google map

I use ionic2 for developing a hybrid app and want to use googleAPI of ionic-native in my app... now given that My PC OS is Windows10! can i use native ionic APIs which are for ios??? this question comes to head when i ran this command: ionic…
0
votes
1 answer

How to pair with another BLE device using Ionic?

so in this question I asked how would I identify a bluetooth device after doing an scan. It seems that only those devices I have connected to show their name, all other devices are shown as unnamed. So my question is, how do I pair all the unnamed…
Multitut
  • 2,089
  • 7
  • 39
  • 63
0
votes
1 answer

setting [src] in base64 format for in ionic2/angular2 not working

I am trying to set image src with base64 image dynamically but it doesn't work in ionic2/angular 2 for an android emulator. I retrieved the image from externalrootdirectory in ionic2 in base64 format. Please find below code snippet: Here, imageSrc…
deepak
  • 11
  • 5
0
votes
2 answers

IONIC 3 and jsPDF , using FILE Transfer to download pdf not working

i want to use jsPDF library with IONIC3 to download PDF , i have created a simple document and when i try to download it with the default function from jsPDF doc.Save() it work in my browser , but in a real device won't work. So i decided to use…
0
votes
0 answers

createReadStream() in Ionic

I am trying to upload a photo from my app to Facebook. I have tried the following to get the image stream using Node JS for POC, which works fine. let imageData = require('fs').createReadStream(path); I want to achieve the same in my Ionic 3 app…
Kashif Nazar
  • 20,775
  • 5
  • 29
  • 46
0
votes
1 answer

Step counter plugin gives error when the stop() method called after first time

I have an issue in doing a step counter in ionic v3.x, This is the code import { Stepcounter } from '@ionic-native/stepcounter'; startPedometer() { if (this.buttonIcon === 'md-walk') { this.buttonIcon = "md-man"; this.startbuttonDisabled =…
0
votes
2 answers

Ionic MARKER_DRAG_END event not working

I need to print dragged when the marker is dragged is stopped in the map i added a GoogleMapEvent.MARKERS_END it doesn't get triggerd this.map.addMarker({ title: 'Current Location', icon: 'red', animation: 'DROP', …
0
votes
1 answer

Native IONIC Geolocation not working on Android devices.

I am using Ionic together with the native Geolocation plugin to retrieve user position and sort a list of position by closest to the user. The Geolocation plugin works perfectly using ionic serve or ionic lab as well as iOS devices but it does not…
0
votes
1 answer

AdMob best practice : Should i request a Ad banner of AdMob on each page or only on first page of my mobile application

In my mobile application, i request a Ad banner of AdMob on first page only. Now this Ad banner is sticked for all pages. Is this a good practice or should i request a new banner on every page to increase the number of Impressions and…
0
votes
1 answer

How to set rootPage conditionally in Ionic3

I am trying to set a tutorial page for the first timers in the app and login page for others. I am setting key value in localstorage if user has been gone through the tutorial page. export class MyApp { rootPage: any =…
Shubham
  • 497
  • 10
  • 23
0
votes
1 answer

Axios post request is not working in Ionic 2

I'm trying to get oauth token from my laravel app to my ionic 2 app.But it got error. How to solve it ? It work fine in browser but when i emulate it it doesn't work. Login.ts (ionic) getLogin(event) { oauth_credentials.username =…
Hashemi Rafsan
  • 301
  • 1
  • 5
  • 14