Purple Apps support sending notifications to the user. Currently only simple text notification are supported through the Purple Manager. If you want to send more complex push notifications you may use an external service, e.g. Braze or Firebase.

You will still need to setup the app to be able to receive push notifications.

Configuration


Purple Manager

To enable push notifications for an App the  settings needs to be enabled for the platforms. Additionally platform-specific properties need to be configured:

Android

Push notifications on Android use the Firebase Cloud Messaging API. Please see the official documentation for more information on how to setup a Firebase project and how to acquire a google-services.json which is required for all Firebase related features.

For push notifications sent via Purple Manager the Google API Key property needs to be configured with the Server key from Firebase.

Custom push notification icons

STANDARD 7.3

The default icon for notifications in the systems notification drawer is a bell () icon.

It can be replaced with a custom icon via the Custom Push Notification Icon property. The custom icon can only have a alpha-channel (transparency).

iOS

app_push_register_on_start_enabled

This is not available for Android and Web.

New in version 3.8.0: (iOS)

Type: boolean

Default: true

This property specifies if the app will automatically trigger the push registration on app start.

Firebase Cloud Messaging

app_firebase_cloud_messaging_enabled

This is not available for Android and Web.

New in version 3.15.0: (iOS)

Type: boolean

Default: false

This property enables cloud messaging through firebase on iOS. Additionally a proper GoogleService-Info.plist is required for this feature to work. Please see the official documentation for more information on how to acquire such a file.

  • No labels