Questions tagged [ionic-plugins]

26 questions
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
5
votes
2 answers

How to create a simple webview using ionic for my website

I am trying to make a simple webview app for my website using ionic. What I did is npm install -g cordova version->9.0.0 npm install -g ionic version->5.0.3 ionic start myApp blank cd myApp ionic cordova plugin add…
user11078680
5
votes
2 answers

How to Open Whatsapp app from other app with a specific contact in ionic 3?

I've developed an ionic 3 app. I am unable to open whatsapp from my app with a specific contact in ionic 3. i don't want to send or share any thing but only wants to open whatsapp in android & iOS from my app with a specific contact. Is there any…
Priyank
  • 3,778
  • 3
  • 29
  • 48
3
votes
1 answer

How to fix problem due to providing '@ionic-native/AppVersion' or '.../ngx' and having exception when calling any methods of AppVersion?

I've added the AppVersion Ionic native plugin (https://ionicframework.com/docs/native/app-version#usage). After try to provide it into my app.module.ts i've an error at compilation like "No provider exists for AppVersion" ... I thinking that maybe…
3
votes
1 answer

Ionic: GoogleAnalytics plugin Error: ts: Cannot find name 'GoogleAnalytics'

I am trying to use Google Analytics plugin on Ionic, the documentation code is not applicable as when I use: constructor(private ga: GoogleAnalytics) the editor says "ts: Cannot find name 'GoogleAnalytics'" however it can see some Object…
Mosta
  • 868
  • 10
  • 23
2
votes
2 answers

How to add and use non native cordova plugin in ionic 5

I am trying to use this plugin in my Ionic 5 app: https://www.npmjs.com/package/cordova-plugin-k-nfc-acr122u I installed plugin using cordova plugin add cordova-plugin-k-nfc-acr122u and i i dont now like use it. Plugin declares : enter image…
2
votes
0 answers

Can I use ML Kit in ionic project?

The case is that, I want my app to extract barcode data from the provided input image. My project is based on Ionic 3 framework and angular. I was searching for a plugin of MLKit for my project, but didn't get any. Can anyone suggest me some plugins…
2
votes
1 answer

Property 'iOSExternalAccessory' does not exist on type 'CordovaPlugins'

I have created a new Ionic 4 menu template app and then I have installed the following plugin with deps. using the CLI command ionic cordova add https://github.com/stevef51/cordova-ios-external-accessories However when I try ionic cordova prepare…
Lindsay
  • 91
  • 9
2
votes
0 answers

How to add ionic devApp support in a cordova plugin

I have a cordova plugin which supports Android, iOS and browser platforms. But when adding the plugin in an ionic app that is being developed/built using ionic serve or ionic devApp, the error comes as 'plugin is not defined'. Is there a way to add…
2
votes
1 answer

Ionic App crash after Open native camera - Error 20

I'm using the cordova camera plugin on ionic 4 to capture some image. takePicture() { console.log(' camera takePicture '); const options: CameraOptions = { quality: 100, destinationType: this.camera.DestinationType.DATA_URL, …
1
vote
0 answers

certificate pinning ssl dont works with network security configuration

I have an app with ionic and cordova. the network_security_config.xml file as follows:
1
vote
2 answers

How to update all ionic cordova plugin at one command in Ionic-V4

I am using ionic 4 and I have 7 plugins installed in the project. And I want to update all plugin at once using a single command. I try to use the ionic state reset but got this error. E:\project\demo>ionic state reset [ERROR] ionic state has been…
user9088454
  • 1,076
  • 1
  • 15
  • 45
1
vote
0 answers

Ionic native secure storage plugin fails silently (on Ionic View and Ionic Dev App on Android)

I have added Ionic Secure Storage plugin (to store authentication tokens) into my Ionic project, and it works properly locally when running cordova run browser (so that cordova is loaded as a plaform). However, when I open my project in Ionic DevApp…
mikhail-t
  • 4,103
  • 7
  • 36
  • 56
1
vote
2 answers

Ionic native device plugin @ionic-native/device returns all nulls

I need to do a device detection in my Ionic project so I've installed @ionic-native/device plugin per instructions here: https://ionicframework.com/docs/native/device/ However when I wire it in inside of a component, then run ionic serve to preview…
mikhail-t
  • 4,103
  • 7
  • 36
  • 56
0
votes
1 answer

Ionic One signal Plugin not installed in ionic 6 android platform 10.0.0 issue

I am using ionic 6 project and installed one signal plugin for notification. $ ionic cordova plugin add onesignal-cordova-plugin $ npm install @awesome-cordova-plugins/onesignal Plugin version in my package.json. "onesignal-cordova-plugin":…
1
2