cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

geolocation nativescript plugin does not work in sap business application studio.

0 Likes
1,859

applicationapp.pngfile-mdkproject.png

We currently have an MDK application built in sab business application studio, in the application we implemented a rule that returned the latitude and longitude of the mobile device, we used the nativescript-geolocation plugin and "tns-core-modules / ui / enums", the version prior to nativescript 8, and the schema version was 5, the migration to schema version 6 is carried out and at the same time the plugins for geo-location @ nativescript / geolocation and @ nativescript / core are updated following the tutorial https://developers.sap.com/tutorials/cp-mobile-dev-kit-nativescript-geolocation.html , once this is done, the application is built through the mdk_sdk version 6.0.1 client, the MDK.project.json file is updated with the @ nativescript / geolocation plugin, I execute the commands for the construction and it generates the apk file for me, I install the application on my device but when viewing the coordinates the rule does not return anything, it should be noted that the whole process was done following the tutorial in developers.sa p.com.

Attached to this document images with the project settings.

Accepted Solutions (1)

Accepted Solutions (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert

We found out that the reported issue has caused due to some breaking changes introduced in recent update to the nativescript-geolocation plugin.

I have update the tutorial (fixing JavaScript rule, permission & GooglePlayService version conflict), please follow it again.

0 Likes

I already made the changes with the update of the tutorial, now if it works thank you very much I close the question.

Answers (0)