Push notifications integration
A push notification is an out-of-app alert that appears on the user’s screen when an important update occurs. Push notifications are a valuable way to provide your users with time-sensitive and relevant content or to re-engage them with your app. This article covers implementing and testing push notifications on Flutter.
Braze does not support using the Flutter wrapper layer for sending push notifications or deep links. To use this feature with your Flutter app, you will need to configure push notifications for each native platform separately.
- Android: Follow the Android integration instructions.
- iOS: Follow the iOS integration instructions.
Test push notifications
Once you’ve configured push notifications in the native layer, follow these steps to test your push integration.
You can’t test push notification related app behavior on an iOS simulator because simulators don’t support the device tokens required to send and receive a push notification.
- Set an active user in the Flutter application. To do so, initialize your plugin by calling
braze.changeUser('your-user-id')
. - Head to Campaigns and create a new push notification campaign. Choose the platforms that you’d like to test.
- Compose your test notification and head over to the Test tab. Add the same
user-id
as the test user and click Send Test. - You should receive the notification on your device shortly. You may need to check in the Notification Center or update Settings if it doesn’t display.