on 07-09-2018 1:59 PM
Hi,
I'm using SAP WebIDE HAT add-on for cloud. I like to use the cordova facade mock data for geolocation.
I activated the cordova plugin: "cordova-plugin-geolocation" in my mobile SAPUI5 app.
But when I run the SAPUI5 app (in test mode in the browser) I can see in debug mode that "cordova-plugins" object only contains "barcodescanner" and "printer" plugin.
Do you know how to get the geolocation plugin available?
Thanks in advance!
Kind regards
Axel
Hi,
I guess I found the answer by my self 🙂
I have to use
/* eslint-disable sap-no-navigator */
navigator.geolocation.getCurrentPosition(this.success, this.error);
/* eslint-enable sap-no-navigator */
Instead off:
cordova.plugins.geolocation.getCurrentPosition(that.success, that.error);
At least now I receive the data from the geolocation mock.
Thanks,
Axel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.