the launch navigator plugin works fine on huawei phone but when I test it on samsung it doesn’t respond. no error or anything.
constructor(
private launchNavigator: LaunchNavigator,
) { }
getNavigation() {
this.launchnavigator
.navigate(
${this.trip.origin.vicinity}+to:${this.trip.firstStop.vicinity}+to:${this.trip.secondStop.vicinity}+to:${this.trip.destination.vicinity}
)
.then(
success => alert(‘Launched navigator’+success),
error => alert(‘Error launching navigator’+ error)
)
.then(
() => this.popoverController.dismiss()
)
.catch((error) => {
alert(error)
})
}
I even tried to use isAppAvailable() method.
this.launchnavigator.isAppAvailable(launchnavigator.APP.GOOGLE_MAPS).then((isAvailable) => {
if(isAvailable){
this.app = launchnavigator.APP.GOOGLE_MAPS;
}else{
console.warn(“Google Maps not available - falling back to user selection”);
this.app = launchnavigator.APP.USER_SELECT;
}
})
this.launchnavigator
.navigate(
${this.trip.origin.vicinity}+to:${this.trip.firstStop.vicinity}+to:${this.trip.secondStop.vicinity}+to:${this.trip.destination.vicinity}
,{app: this.app}
)