How-to use Storage Service from SAP Cloud Platform Mobile Services with SAP Cloud Platform SDK for iOS
Do you develop native iOS applications with the SAP Cloud Platform SDK for iOS and do you want to store device-specific configuration data without the need to enhance your backend?
SAP Cloud Platform Mobile Services offers a storage service. This service stores flexible data structure and supports application-level, user-level, and device-level storage. SAP Cloud Platform Mobile Services offers authorization and authentication schemes that secure the data.
In this article, I will help you to understand how to use the Storage Service of SAP Cloud Platform Mobile Services with the SAP Cloud Platform SDK for iOS.
The SAPFoundation framework offers SAPcpmsSettings as API to read, store and delete settings that are centrally maintained on SAP Cloud Platform Mobile Services.
The use is simply .. once you know it 🙂
This is very useful information.
As I understood, using SAPcpmsSettings in iOS Application we can store/retrieve device specific data.
But we have some different requirement in our application i.e we want to store device specific information in Mobile platform. So that we can get information regarding our customer usage i.e which user is using which device/configuration.
Let me know if you have some detail information regarding the same.
please have a look at this blog post on how to collect such analytical information.
Nice example. Is there a way to store a plist there for app config? By that I mean - could I load the plist from my Mac to SCP to change the app config?
the configuration is stored as JSON in SAP Cloud Platform Mobile Services to be platform agnostic.
SAP Cloud Platform Mobile Services on NEO allows you to edit configuration as JSON via a JSON Editor.
SAP Cloud Platform Mobile Services on Cloud Foundry does not have that capability as you can only export the configuration as JSON 🙁
I recommend either use the REST APIs for Storage Service or use the SDK to communicate with Storage Service. The latter looks more convenient for me as a Swift developer 🙂
To sum it up: no but you can create a plist, deserialize it in Swift and then use the SDK to store configuration in SAP Cloud Platform Mobile Services
P.S.: You can store configuration on application, user, or device level.
ok, thanks! I'm developing an enterprise app that will be used by serveral customers on different SCP instances, and the app config will be slightly different for the different customers. I think then the best approach is to store the config in z-tables in S/4 backend and load that from SCP via Odata.