For the complete documentation index, see llms.txt. This page is also available as Markdown.

▪️Push configurations

Follow the instruction to get details for the Push notifications from Firebase console

  1. Log in and navigate to the console

  2. Create a new project

4. In the new project navigate to “Project settings”

5. In the General tab, create a new Web App and copy the content of the "Config" section

6. Navigate to “Service accounts” and generate a new private key

7. Download the file with the private key

8. Provide the Config file content from step 5 and the private key from step 7 to Smartico support personnel. You can also place them yourself in the Label settings in Smartico BackOffice; there are 2 settings to place (in JSON format):

a) Firebase cloud messaging configuration for push notifications - configuration from step 5

b) Firebase server configurations for push notifications - confirmation from step 7.

The "server configuration" has the following form:

There are additional keys that you can place in the configuration to control parameters of the push messages; an example of the structure:

apns_default_sound

true

Plays the system default alert sound when the notification is received on iOS. When set to false, the notification appears without sound.

ttl

86400

When a web push notification is sent, it remains in the user's notification tray for a certain period. If a TTL of 86400 seconds is configured (one day), the notification would automatically expire and disappear after a day.

Last updated

Was this helpful?