ohh2ahh / AppAvailability

This Cordova / PhoneGap plugin allows you to check if an app is installed.
229 stars 116 forks source link

[Help] appAvailability plugin is not installed #41

Open lampofdrog opened 7 years ago

lampofdrog commented 7 years ago

Hi,

I can't use this plugin with ionic 2, the twitter app is already installed in the device

this is the error or warning message screen shot 2017-07-27 at 18 06 25

here is my development environment screen shot 2017-07-27 at 18 12 59 screen shot 2017-07-27 at 18 13 35

kotran88 commented 7 years ago

I'm having same ploblem in iOS 11.

JefferyLiang commented 6 years ago

same here

JefferyLiang commented 6 years ago

@lampofdrog

I miss this problem same you, and I resolve it.

if you use the ionic, you must check when the platform ready.

this.platform.ready().then(() => {
    this.appAvailability.check('twitter://')
        .then(() => {
            (yes: boolean) => { // do something },
            (no: boolean) => { // do something }
        })
})