cancel
Showing results for 
Search instead for 
Did you mean: 

SAP WebIDE HAT add-on for cloud - Cordova Facade

former_member253880
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member253880
Participant
0 Kudos

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