How to send push notification to all app users

Hi @NoCodeJedi ,
The business use case is to send push notifications to all users regardless of their actions in the app. You can use this as a way to send the same message to everybody such as a product announcement, a new app version, or simply get them back to the app. This is what I did.

Main app (Dear Cloud), this is the app my users use.
Admin app (Dear Cloud Admin), this is where I manage my push notification campaigns and send them. Since the Admin app shares the same DB than the regular app, it can send notifications to my users.

This is how it is done in the Admin app.

1- I added a “Campaigns” tab where I draft the notifications I want to use to all my users.

2- Once a new campaign is created and I am comfortable with its text, I click on “Send” to send it to all my users. This is where the magic happens.

In this modal screen, I have a “hidden” list on my Users tables. Since the Admin app points to the shared DB, these Users are my actual customers I want to reach out to.

In this same group, I also put a countdown component.

Once its time is up (I put 5 seconds), a couple of actions are triggered:
First, since I am on a list of Users, I simply use the out-of-the-box Push Notification action on the current User (email) and add the current campaign text as its body.

For cosmetics (optional), I also update the current Campaign’s total send (send = send + 1) so that the progress bar follows along.

As someone mentioned earlier during the conversation, this solution won’t probably scale to 10k+ users but in my case (I don’t have a lot of users right now), it is a great band-aid solution before we get Adalo fully on Firebase.

Hope this helps

6 Likes

Brilliant, thanks for the great advice!!! :raised_hands: :raised_hands: :raised_hands:

Thanks for taking time out of your busy life/schedule to explain this hack!!!, All advice you gave goes a long way to helping future users who come searching months/years later :wink: … but for me, this is immediately useful right away!!! I tried to do something similar a few weeks ago, but it was getting tricky and now your info helps put things into better context! Many thanks :blush:

1 Like

Thanks @Repackaged I had not realized you were sending emails as the campaign :slight_smile: your solution makes perfect sense as a email campaign solution. I thought you had figured how to send in app notifications from an different app sharing the same DB :slight_smile: but thank you for the thorough and clear explanation! This is how all responses should be :wink:

Have you done it or do you work at indigitall?..

Hi @NoCodeJedi
The solution I outlined depicts a mobile push notification campaign use case and not an email one. I think referencing the “email” field may have confused you a bit. When using the out of the box “push notification”, we need to select either an email or username to reference users. In my case I chose email but the result is the same as a mobile push message will get sent.

Also, yes the solution outlined sends mobile push notifications from a different app and referencing a shared DB.

If you’re referring to an in-app push (which is different from a simple push), then Adalo doesn’t support it.

Hope this clarifies

Hi @Repackaged,

Maybe I’m getting confused with terminology, but when I am referring to a push notification, I am referring to a notification that (depending on how users have it setup on their phone) they will get a notification with a message on their screen regardless of whether or not they are on the app, that when clicked on will take them to a screen on the app.

Is this what you are achieving with that setup?

Regards

That’s correct. What you’re describing is a “mobile push notification” and the solution I outlined explains how to do it from a different app sharing a common DB.

An “In-app notification” refers to when users are already in an app and they experience a pop-up screen with a message. This use case is not supported by Adalo today

1 Like

Thanks @Repackaged let me try as per your description then

How to integrate iOS app into firebase

I have managed to make in-app notifications utilizing modal, countdown clock and boolean’s.

First I create a new property for users called “has seen modal” (true/false)

When a user logs in, I have set a modal to appear after three seconds, and only if “has seen modal is false” When the user hit the “ok” button at the bottom of the modal, the property changes to true, and will not be shown again.

Are there any extra steps I need to take to set this up? I have published my app to android and IOS, but when my Firebase campaigns are not sent to users. Do I need to add Firebase In-App messaging SDK to my project, or was that already included in the Adalo build?
https://firebase.google.com/docs/in-app-messaging/get-started?authuser=0&platform=ios

Hey there! Any update on your method, but sending it to ALL users???

Hi everyone,

Sending push notifications to all users can be quite a hassle, combining custom lists and count down timers is extremely annoying, laggy, and unreliable.
I hear you, and I have created a tool that will enable you to send bulk push notifications to your users, not just that, but also filter your users using filters that are created to fit your data structure.

First step

enter your app data (reach out if you need help with that)
second, click “Retrieve All Users”, you’re currently limited to 100 users, please reach out if you need more.

Then filter your users by create and/or update date, as well as a comprehensive list of filters that’s created based on your data structure in the sidebar, please keep in mind that the number of selected users will remain 0 until you edit your filters, sending to all users without filtering is a paid feature, so please reach out if you need it.

The last step is for you to enter the title and body of your push notification and click “Send Notification”.

And that was it, enjoy.

https://share.streamlit.io/tareefroustom/nothing/main/Adalo_Notification_Engine.py