I need some help!
In my app users can create an account and save preferences on information they want to receive via push notification (onesignal). The information of each individual user is saved to firebase with a corresponding RealtimeDB listener.
Firebase is linked to a script that I deployed, which updates information in firebase, based on each user’s preferences. Every time the information changes in firebase (“When RealtimeDB Data changed, do …” - block) I want to send the user push notifications.
The problem is: The “When RealtimeDB Data changed, do … - block” only activates when the app is opened.
Any ideas on how my app can realize that information is changed in the DB even when it’s closed - And then send push notifications?
- I already tried to use cloud variables, but diddnt find a solution there.