I am using this way Trigger Push Notifications via API - Adalo Resources to send Push Notifications (not Trigger Notification), BUT I need to send some push notifications ONLY to 1 specific user of the app. I can send to logged in user, but this is not what I need in this case.
I have created the Custom Action, and:
as I try to put the email of the user in the receiver form, it is not working:
or, as I try to put a condition, to let the login user as target and filter by email, also, is not working:
Can anybody, please advise, share an opinion on this?
As an option - have a “Current User” available in a place from which you send Push notification. Like in a chat, when you’re sending a message - you can have “Trigger Notification” action, and there you add Current User as a recipient.
Thank you @Victor !
I need that for some actions on the app only the Admin role to receive a Push Notification, e.g. new sign up, new message, new purchase.
As other users may be logged in I wanted to filter the receivers.
Now I have filtered if Users All, with filter “if Current User Admin True”. But sometimes it is functional, sometimes not…
I tested several scenarios and I have the following situation: the web app sends push only if an admin is logged in and only to the admin who is not logged in. So if a user is not logged in and is not an admin, no push is sent as a result of the associated action.
That’s how it should be?
Only the admin can trigger the push from web app?
If I make an app only for the admin that will share to the same DB could it be a solution? Or the push is sent to all apps that have the same database?
This is a bit strange.
I’ve just finished small experiment with my Notifications Sample app. It consists of 2 apps: web-app for admin console and native app for users.
I’ve set up the following action for the admin console, but for non-admins. It is on “No Access” screen.
Thank you @Victor !
I will go again trough the process.
Please, let me know: who is making the action and is sending the push from web app? Are logged in users or guests?
Thank you!
I wonder if this behaviour is expected or not, but I don’t have an answer for that. I’ve asked some advice from Adalo, will keep you updated.
Reg. how to solve the issue - as an alternative, you can try to do it via custom action, or using smth like Integromat. The downside of such approach will be that you can’t send notification to more than 1 person.
My solution - for now - is to automatically register users (as e.g. guest1234@domain.com), when they intend an action for which I want notification.
Then if the user wants a registration action, I force him to actually make an update with his correct and real data to the randomly created user.
It may not be the best solution, but it works for the moment.