SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Add NativeScript Plugins in an MDK App

Build and run the mobile development kit client with a non-visual extension functionality for Android and iOS platforms.

Overview

You will learn

  • How to reference the NativeScript Geolocation plugin from a rule
  • How to add a NativeScript plugin to your branded MDK client
  • How to build a Mobile development kit client for iOS & Android and connect to SAP Mobile application
  • How to capture the device’s current location
Jitendra Kansal J Jitendra Kansal August 21, 2026
Created by August 11, 2023
Contributors

More from Jitendra Kansal

See all 34 tutorials by Jitendra Kansal →

Prerequisites

Steps

Intro

You may clone an existing metadata project from GitHub repository and start directly with step 4 in this tutorial.


To extend the functionality, or customize the look and feel, and behavior of your client app, you can use the existing NativeScript plugins like nativescript-geolocation, nativescript-nfc etc. , add this to the client and reference it from a rule.

In this tutorial, you will use the existing NativeScript plugin nativescript-geolocation to capture the device location: latitude & longitude.

Geolocation App Final Result
Geolocation App Final Result

Step 1 Create a New Project Using SAP Build

This step includes creating a mobile project in SAP Build Lobby.

  1. In the SAP Build Lobby, click Create > Create to start the creation process.

    SAP Build Lobby Create Button
    SAP Build Lobby Create Button

  2. Click the Application tile and choose Next.

    Application Tile Selection
    Application Tile Selection

  3. Select the Mobile category and choose Next.

    Mobile Category Selection
    Mobile Category Selection

  4. Select the Mobile Application to develop your mobile project in SAP Business Application Studio and choose Next.

    Mobile Application Option Selected
    Mobile Application Option Selected

  5. Enter the project name mdk_geolocation (used for this tutorial) , add a description (optional), and click Review.

    Project Name Entry Form
    Project Name Entry Form

    SAP Build recommends the dev space it deems most suitable, and it will automatically create a new one for you if you don’t already have one. If you have other dev spaces of the Mobile Application type, you can select between them. If you want to create a different dev space, go to the Dev Space Manager. See Working in the Dev Space Manager.

  6. Review the inputs under the Summary tab. If everything looks correct, click Create to proceed with creating your project.

    Project Summary Review Screen
    Project Summary Review Screen

  7. Your project is being created in the Project table of the lobby. The creation of the project may take a few moments. After the project has been created successfully, click the project to open it.

    Project Created In Lobby Table
    Project Created In Lobby Table

  8. The project opens in SAP Business Application Studio.

    SAP BAS Workspace Opened
    SAP BAS Workspace Opened

    When you open the SAP Business Application Studio for the first time, a consent window may appear asking for permission to track your usage. Please review and provide your consent accordingly before proceeding.

    BAS Usage Consent Window
    BAS Usage Consent Window

Step 2 Configure the Project Using Storyboard
+
Step 3 Display the coordinates on a page
+
Step 4 Enable the Loading Indicator on Sectioned Table in the Main page
+
Step 5 List the NPM modules as external reference
+
Step 6 Deploy the Project
+
Step 7 Add NativeScript plugin and External dependencies in your local .mdkproject
+
Step 8 Add googlePlayServicesVersion and Permission in App Resources Merge folder(Required only for Android client)
+
Step 9 Create & Run the MDK client
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 9
1. Create a New Project Using SAP Build 2. Configure the Project Using Storyboard 3. Display the coordinates on a page 4. Enable the Loading Indicator on Sectioned Table in the Main page 5. List the NPM modules as external reference 6. Deploy the Project 7. Add NativeScript plugin and External dependencies in your local .mdkproject 8. Add googlePlayServicesVersion and Permission in App Resources Merge folder(Required only for Android client) 9. Create & Run the MDK client
Next