Have you read Martin's recent blog on the new features of HANA Cloud Platform mobile services? In that list Staging is one of the notable feature. Staging helps the developers to give their application to the users for testing, after the completion of the tests it could be moved immediately to the end users from admin cockpit itself.
In this blog I am explaining how to put your application in a test state and then move it to the production.
Note: Backend URL - http://services.odata.org/V2/OData/OData.svc
The following steps will create a simple Kapsel app with an AppUpdate plugin.
cordova -d create C:\Kapsel_Projects\StagingDemo com.sap.staging StagingDemo "{\"plugin_search_path\":\"C:/SAP/MobileSDK3/KapselSDK/plugins/\"}"
cd C:\Kapsel_Projects\StagingDemo
cordova -d platform add android
cordova -d create ~/Documents/Kapsel_Projects/StagingDemo com.sap.staging StagingDemo "{\"plugin_search_path\":\"/Users/i12345/SAP/MobileSDK3/KapselSDK/plugins/\"}"
cd ~/Documents/Kapsel_Projects/StagingDemo
cordova -d platform add ios
cordova -d plugin add com.sap.mp.cordova.plugins.appupdate
cordova -d plugin add com.sap.mp.cordova.plugins.logon
cordova build
cordova emulate android
cordova emulate ios
In this step we are going to upload a new version of the Kapsel application to HCPms for testing (Stage state).
cordova build
C:\SAP\MobileSDK3\KapselSDK\cli
~/SAP/MobileSDK3/KapselSDK/cli
npm install -g
For Mac:
sudo npm -g install
kapsel package
Now you could find a zipped file created inside your project folder.
Now, when we close and reopen the app the AppUpdate plugin identifies that there is an updated app in the server. It gives a pop up for relaunching the app to download the changed files from server.
After testing the application, from admin cockpit choose the application under Stage state, then click on Deploy, which will make the application available for users in production.
Regards,Midhun
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
11 | |
7 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |