Hey, the issue with my code is that it doesn’t detect the application that is being installed on the android, it always returns false.
I am following the official documentation from here (App Availability - Cordova Plugin for iOS and Android Devices)
Here is my code:
import { AppAvailability } from '@awesome-cordova-plugins/app-availability/ngx';
import { Platform } from 'ionic-angular';
app:any;
constructor(
private appAvailability: AppAvailability,
private platform: Platform
) {
this.app = 'com.twitter.android';
this.platform.ready().then(() => {
this.appAvailability.check(this.app)
.then(
(yes: boolean) => console.log(this.app + ' is available'),
(no: boolean) => console.log(this.app + ' is NOT available')
);
}
}
And the output is always:
com.twitter.android is NOT available
Kindly suggest me what is wrong in this? Thankyou