Is AppAvailiability plugin not working now?


#1

I’m using AppAvailiability plugin well on android version.
but not working on ios…
It goes to error and error logs plugin_not_installed.
why is it happened?
I did
ionic cordova plugin add cordova-plugin-appavailability
npm install --save @ionic-native/app-availability

both of them.

cordova-plugin-add-swift-support 1.6.0 "AddSwiftSupport"
cordova-plugin-appavailability 0.4.2 "AppAvailability"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-customurlscheme 4.3.0 "Custom URL scheme"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-dialogs 1.3.3 "Notification"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-googleplus 5.1.1 "Google SignIn"
cordova-plugin-iamport-kcp 1.1.3 "CordovaPluginIamportKcp"
cordova-plugin-inappbrowser-url-scheme 1.0.0 "InAppBrowserScheme"
cordova-plugin-nativegeocoder 1.0.2 "NativeGeocoder"
cordova-plugin-naver 1.0.0 "Naver"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-uniquedeviceid 1.3.2 "UniqueDeviceID"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-x-toast 2.6.0 "Toast"
iamport-cordova-interface 1.0.0 "IamportCordovaInterface"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.1.2 “OneSignal Push Notifications”

ionic info

cli packages: (/Users/jpd/express_user_ios/node_modules)

@ionic/cli-utils  : 1.15.2
ionic (Ionic CLI) : 3.15.2

global packages:

cordova (Cordova CLI) : 7.0.1 

local packages:

@ionic/app-scripts : 2.0.0
Cordova Platforms  : android 6.2.3 ios 4.4.0
Ionic Framework    : ionic-angular 3.5.0

System:

ios-deploy : 1.9.1 
Node       : v8.4.0
npm        : 5.5.1 
OS         : macOS High Sierra
Xcode      : Xcode 9.0.1 Build version 9A1004 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : legacy

code is as follows.

let app: string;
    if (this.platform.is("ios")) {
      app = "daummaps://";
    } else if (this.platform.is('android')) {

      app = "net.daum.android.map";
    } else {
      return;
    }
    AppAvailability.check(
      'daummaps://', // URI Scheme
     
  ).then(()=>{
    alert("success")
    window.open("daummaps://look?p=37.537229,127.005515","_system")
    
  }).catch((e)=>{
    alert("error+"+e)
    window.open("https://itunes.apple.com/app/id304608425","_system")
    
  });

#2

Try to uninstall/reinstall the plugin. While upgrading ionic versions and dependencies I somehow ended up with plugins missing from the platform even though they were never explicitly uninstalled and still listed in the package.json/config.xml


#3

Thank you! it works…
but goes to error and logged it and it says just false…
maybe url scheme is wrong?