Shared Device Overview (Multiple User Mode)¶
Multiple user mode is designed for the enterprise scenario where, for example, an employee gets a shared device in the morning, goes out to the field (and may be offline during that time), and then returns the device when the shift ends. The next morning, the employee may get a different device and the device that they used yesterday may be assigned to another user (thus, “multiple user mode”). What multiple user mode provides in the offline scenario is the means whereby the initial user’s data, contained in the offline data store, is synced to the server prior to the second user’s log in, thus preserving the previous user’s changes to the data. In the online scenario, each user’s data changes are made to their own secure data store. Challenges raised by this scenario include:
- How to safely manage different users' credential stores on a single device so that one user cannot compromise another user's data.
- How to allow users to easily onboard and re-onboard without impacting other users.
- How to allow users to easily choose their username and passcode to log in to the app.
- If the offline store is used, how to prevent users from losing their work if they forget to upload their work at the end of the shift and the device is picked up by another colleague the next day.
- How to prevent the scenario where one user registers the push token during the day and the next day messages for that user are incorrectly delivered to the device they used yesterday.
SAP Mobile Services, SAP BTP SDK for Android, SAP BTP SDK for iOS, and Mobile Development Kit work together to solve these problems.
Procedure¶
Enabling the Option on Mobile Services¶
- Go to Mobile Settings Exchange.
- Enable Shared Devices -> “Allow Upload of Pending Changes from Previous User (Enable Multiple User Mode)”.
Device Application Development¶
Refer to Creating Shared Device Apps With The Wizard for details on implementing multi-user mode, including best practices. For detail API usage, please refer to sub-section.
For a summary of best practice for shared devices running offline applications, refer to Setting Up an Application - SAP Mobile Services Documentation -> Multiuser
Considerations