Closed ikishanoza closed 6 years ago
That build failure has nothing to do with this plugin: it occurred because cordova was unable to remove the Android build directory:
* What went wrong:
Execution failed for task ':clean'.
> Unable to delete directory: C:\Users\pcq38\Desktop\chat\platforms\android\build\outputs\apk
look this 👍
[16:16:11] typescript: C:/Users/pcq38/Desktop/chat/src/pages/maps/maps.ts, line: 35
Property 'APPS' does not exist on type 'typeof LaunchNavigator'.
L34: app: LaunchNavigator.APPS.UBER
L35: };
any idea ??
this is my ys file :
options: LaunchNavigatorOptions = {
start: 'London, ON',
app: LaunchNavigator.APPS.UBER
};
constructor(public navCtrl: NavController,private geolocation: Geolocation,private launchNavigator: LaunchNavigator) {
this.launchNavigator.navigate('Toronto, ON', this.options)
.then(
success => console.log('Launched navigator'),
error => console.log('Error launching navigator', error)
);
}
That JS variable is defined in the TS definition of this plugin, however if you're using the Ionic Native warpper , you'll need to follow their documentation or report the issue to them (as it's not part of this plugin).