SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

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

🎓 advanced 35 min. Mobile Development Kit ClientAdvancedIosAndroidMobileSAP Business Technology PlatformSAP Mobile ServicesSAP Build CodeSAP BuildSAP Business Application Studio

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 June 14, 2026
Created by July 4, 2023
Contributors

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.

MDK
MDK

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.

    MDK
    MDK

  2. Click the Application tile and choose Next.

    MDK
    MDK

  3. Select the Mobile category and choose Next.

    MDK
    MDK

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

    MDK
    MDK

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

    MDK
    MDK

    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.

    MDK
    MDK

  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.

    MDK
    MDK

  8. The project opens in SAP Business Application Studio.

    MDK
    MDK

    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.

    MDK
    MDK

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

Learn more →