Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Before configuring the push notifications, perform the following steps:

  1. Make sure that you have configured device management for your app. The device management enables you to control your apps and push notifications across multiple platforms and devices. Refer Canvas Technology - Device Management for  for detailed information.
  2. Make sure that the following steps are performed to enable push notification service via Firebase Cloud Messaging (FCM):

    Note

...

  1. Android or iOS build must be taken only after completing these steps.


    1. Create a FCM account and a project for your app.
    2. Create independent apps for Android and iOS within the project. And, specify the app details such as app ID, bundle ID, etc. along with the 'SHA Certificate Finger Print' for Android and 'APNs Certificates' or 'APNs Authentication Key' for iOS.

...


    1. Image Added

    2. Perform any one of the following steps:

      For Android, download : Download the google-services.json file from FCM and place it within the parent folder of your Android app package.

Image Removed
Android - 'google-services.json' file download link in FCM

...


    1. Image Added
      For iOS: Download the GoogleService-Info.plist file from FCM and place it within iOS app package > Resources folder.

Image Removed
iOS - 'GoogleService-Info.plist' file download link in FCM


    1. Image Added
    2. Ensure that the FCM server key for your app is specified within the systempreferences.properties file.

...


    1. Image Added
      Sample key:

      Code Block
      language

...

    1. bash
      # This property will define the FCM Server Key

...

    1. 
      fcm.server.key=AAAA8vRqo9E:APA91bGAH_mayzwS8fHU2FmHdOMk_hUc0Yi3GxMcS72VN18sPBIJCKs7Wv7uauKnLScTTVH7gFWy_fKhGq20m-0fNuEhStlBarz4BCzIR


    2. For iOS, enable the following app properties in your local project:
      1. Go to App properties > Capabilities > Push Notifications and enable it.

        Image Modified
      2. Go to App properties > Capabilities > Background Modes and enable Remote Notifications option.

        Image Modified


Refer the following pages: