
Moderator







2 years, 8 months ago
#35095
::
Hi Radostin,
There is no automatic way of saving a session in Simplifier. But you can implement it using URL query parameters:
- Before leaving the Simplifier app, store all relevant data in a database, add a key as identifier (can be an autogenerated session key)
- When reopening the Simplifier app: append the session key to the URL as a query parameter
- With the autofield ‘URL’ – ‘query parameter’, you can read the value of the URL query parameter
- If the query parameter with the session key is not empty, navigate to the screen that you were showing when you left the app, and load the relevant data from the database with the session key
- If the query parameter with the session key is not given or invalid, open the application in the usual way (starting with the login screen)
You can find an example of using the query parameter autofield to control application logic in our Intermediate course, module 8, lesson 4: https://community.simplifier.io/207-4/