Offline Action Queue for Bubble Mobile
What this plugin does
This plugin lets your mobile app save work when the phone is offline, then run that work later when the phone is online. A common use case is a form: the user taps Save, the app stores the form values locally, and the workflow runs when the connection is available.
Basic setup
1. Add the Offline Action Queue element to the mobile view that should handle syncing.
2. Leave Queue name as default unless you need more than one separate queue.
3. Keep Run saved actions automatically set to yes for normal apps.
4. Use Test as offline only while testing.
Simple example: save a form offline
When the user taps your Save button, run the action Save action for later. Set Action type to something simple, such as save_form. Add Saved values such as name, note, amount, or any other form fields your workflow needs.
Required workflow: When a saved action is ready
Create a workflow for the event A saved action is ready. In that workflow, read Current action name and Current saved values from the element. Use Current action name to decide what the workflow should do.
How to read saved form values
Saved values are exposed as key=value rows. For example, if you saved name = John, filter Current saved values for the row that starts with name=. Then remove the name= part to get John. Advanced builders can also use Current saved data or Current saved values JSON.
How to finish the workflow
At the end of a successful workflow, run Mark current action as sent. If the workflow cannot finish, run Mark current action as failed and add an error message. The plugin does not guess whether your workflow succeeded; your workflow must mark the result.
Testing offline mode
Turn Test as offline on, save an action, and confirm Pending actions increases. Turn Test as offline off or reconnect the phone. When the phone is online, the plugin should run A saved action is ready.
Important limits
The queue runs only while the view with this element is mounted. Background sync is not guaranteed when the app is killed or suspended. Do not save passwords, API keys, tokens, payment data, or other secrets in queued values.
Demo Editor:
https://bubble.io/page?id=testpluginsnativo&test_plugin=1781584368210x514854407002390500_current&tab=Design&name=Offline+Actions&type=page&elements=bTHFFWe created a custom GPT specialized in providing support for the implementation and use of this plugin.
https://chatgpt.com/g/g-6a31bc280e688191b99fd44a0bd36efe-offline-bubble-support