Setting Up Mobile Services for Mobile Development Kit¶
Setting Up Landscape¶
Set up your landscape to begin using Mobile Development Kit.
Begin by setting up the following:
| Set up | Description | Link |
|---|---|---|
| SAP Business Technology Platform Cockpit | Set up SAP Business Technology Platform cockpit to build, deploy, and manage your applications. | Getting a Global Account |
| SAP Mobile Services | Set up SAP mobile service cockpit to administer your applications. | Getting Started with SAP Mobile Services) |
Creating Apps on SAP Mobile Services¶
As an administrator, you can create Mobile Development Kit applications using the SAP mobile service cockpit, in both Cloud Foundry and Neo environment.
This interface enables you to manage your apps.
You can view information about the APIs, user registrations, and usage analytics of your Mobile Development Kit app type. You can also perform operations such as delete, export, and much more on your app though this interface.
- On the
Homescreen of the SAP mobile service cockpit, selectCreate New App. -
Depending on the environment perform the following step:
-
Cloud Foundry: In the
New Applicationwindow,-
Fill in the details like ID, Name, Description, Vendor, and License Type. For more information about these fields, check Defining Applications. Choose
Next. -
In the
XSUAA Settingsscreen, provide the necessary details, if applicable. ChooseNext. -
From the
Assign Features fordrop-down, selectMobile Development Kit Application. ChooseFinish.
-
-
Neo: In the
New Applicationwindow, selectMobile Development Kitfrom theConfig Templatesdrop-down. Fill in the details like ID, Name, Description, and Vendor. For more information about these fields, check Defining Applications. ChooseSave.
Once you have created your application, you see a list of features that are automatically assigned to the app.
-
-
To view a list of all your apps, select
Mobile Applications > Native/MDK. -
Click on the desired app to see the
Application Detailsscreen, which shows the ID, Name, Description, Vendor, and a list of features assigned to the app. -
To add features to your app, select the + button on the right side of your
Assigned Featureslist, choose or search for a desired feature and clickOK. Alternatively, you can select your desired feature from theFeaturesscreen and selectAdd to Application.
App Security¶
Mobile Development Kit Applications only support OAuth for client authentication. While creating a new app using the SAP mobile service cockpit, if you select Mobile Development Kit Application for the Assign Features For option in Cloud Foundry Environment or if you select the Mobile Development Kit for the Config Templates option, then OAuth is assigned as the default Security Configuration.
Managing Your App Life Cycle with App Update¶
App Update simplifies the app development life cycle allowing you to deliver updates to your application without the need to distribute a new binary version through the app store or MDM solution, reducing the time-to-user for those updates.
While creating a new app using the SAP mobile service cockpit, if you select Mobile Development Kit Application for the Assign Features For option in Cloud Foundry Environment then the Mobile App Update feature is enabled for the app by default or if you select the Mobile Development Kit for the Config Templates option in Neo Environment, then the App Update feature is enabled for the app by default.
You can view the Mobile Development Kit metadata uploaded bundle details by navigating via the Mobile App Update > Configuration tab in Cloud Foundry Environment or App Update > Configuration tab in Neo Environment.
- Current - the version that is currently being used by the users. New versions of the app appear in the configuration page if deployed directly from Mobile Development Kit editor. For details, check Deploying app metadata from SAP Business Application Studio or SAP Web IDE to mobile services.
- New - a version that has been uploaded to the cockpit, but not yet deployed to the users.
Upload and Deploy a New Version Manually to App Update¶
In order to upload and deploy a new metadata bundle version to the Mobile Services App Update, follow below steps:
- Select the
Uploadicon in the top-right corner. - Import the
.zipfile containing the app metadata for the new version of your app from your local system, and then clickUpload. The status of a newly uploaded app or a newer version of an app appears asNew Version. - To deploy the new app version to the
Currentstate, selectActions > Deploy.
Note
In order to download the .zip file,
-
In SAP Business Application Studio: Once the deployment is successful, you will find a new folder
.buildgenerated under your Mobile Development Kit project. Expand it and you will find the fileUploadBundle.zip. Download it to your machine by right-clicking on it. -
In SAP Web IDE: Export it via
MDK DeployandActivatecontext menu and checkDownload application bundle to local machineoption.
Note
To delete a new version of the app, select the Delete icon. You cannot delete an app in the Current state, you must instead deploy a new version to the Current state.
Configuring Offline Settings (Optional)¶
This is an optional configuration. Configure the offline settings only if your Mobile Development Kit app is intended to be used offline. The configuration settings are made in application configuration .ini file. For more information, check Defining Offline Settings For Applications.
Tutorial¶
Set Up Initial Configuration for a Mobile Development Kit App