Trigger Push Notifications
This action let's your app send native iOS and Android push notifications to users.
Adalo natively supports sending Push Notifications for both iOS apps and Android native apps. You can trigger a notification from a PWA but those will only be received in Native Apps.
Please note that this functionality requires you to have built a native app on Android or iOS. Notifications can only be triggered to another logged-in user, on another device. You cannot trigger a notification to the same user and device with this Trigger.
- 1.Select the component that should trigger the notification, then in the left panel select 'Add Action'
- 2.Scroll to the bottom of the options, and click Trigger Notification
- 3.Select the Recipients of the Notification. You can specify one or multiple users.
- 4.Set the title and body text for the Notification message.
- 5.Finally, select which screen in your app the user should be taken to when the tap on the notification.

Generate your App's API key. Keep this stored safe for future use.
For example, let's look at an app where users can plan trips with their friends. If one of the members in a group sends a message within the group, all of the members are notified.
.gif?alt=media&token=242850db-d0e3-4e99-aae6-12e7c5bc5761)
Note: For Sending Push Notifications on iOS, Apple requires that your app request permission from the user in order to send push notifications to their device. You can do this with an Action called Request permission. We recommend you add this as a screen action to the home screen of your app. The first time your users go to your app's home screen, they will be automatically prompted to grant your app permission to send them Push Notifications. They will not see this prompt any subsequent times they visit your app's home screen. Recently created apps will have this action on their home screen by default.
Please be aware that in Android 12 and below the Notifications are automatically allowed once the app is downloaded.

Please be aware that you cannot send notifications to the Logged in User, so if you are willing to send notifications to all of your users you will have to set it up this way:

Reminder Note
Notifications will only be received if;
1) The user is logged in or has had activity in the app in the last 2 weeks to be considered active
2) The user has permissions allowed
3) The user is not the user triggering the notification
4) The user has the app installed on their device
If notifications are failing in iOS Native but not in Android, please delete your notifications Key in your Apple Developer account and push a new build.
Last modified 1mo ago