hey all
i’m using AppAvailability for check if google maps is installed in ios or not this is my code
let GoogleMapApp;
if (this.platform.is('ios')) {
GoogleMapApp = 'comgooglemaps://';
} else if (this.platform.is('android')) {
GoogleMapApp = 'com.google.android.apps.maps';
}
this.appAvliable.check(GoogleMapApp).then(Yes => {
//ios
if (this.platform.is('ios')) {
console.log('ios');
window.open(GoogleMapApp + '?q=' + location.name + '&saddr=' + position.coords.latitude + ',' + position.coords.longitude + '&daddr=' + location.latitude + ',' + location.longitude, '_system');
};
//android
if (this.platform.is('android')) {
console.log('android');
window.open('geo://' + position.coords.latitude + ',' + position.coords.longitude + '?q=' + location.latitude + ',' + location.longitude + '(' + location.name + ')', '_system');
};
}).catch(no => {
console.log('app not found');
})
so in ios the AppAvailability is always failed even when i install Google Maps app for IOS