Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic App Availability plugin getting Error Object (...) is not a function

I am trying to implement App Availability Feature in ionic. I have an app installed in my device and trying to check if that app exists from another app. But facing an issue in the same, getting the below error

enter image description here

like image 232
Sajeed Shaikh Avatar asked May 24 '26 13:05

Sajeed Shaikh


1 Answers

Possibly you are facing mismatch of ionic version of app and the plugin version you installed in your app. In Ionic V3 you no need to import from '../ngx';

Ionic V3 and V4 have Different plugin url

Ionic v3 plugins

Ionic v4 plugins.

For Ionic v3 App availability

 ionic cordova plugin add cordova-plugin-appavailability
 npm install --save @ionic-native/app-availability@4

And for Ionic V4 App availability

ionic cordova plugin add cordova-plugin-appavailability
npm install @ionic-native/app-availability

npm install cmd is different for both version

Try this steps

  1. remove plugin
  2. Add plugin for ionic V3 compatible from here
  3. Try to build now
like image 194
Sahil Avatar answered May 27 '26 03:05

Sahil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!