Versions Compared

Key

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

...

  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

    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.



    3. Perform any one of the following steps:

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


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

    4. Ensure that the FCM server key for your app is specified within the systempreferences.properties file.


      Sample key:

      Code Block
      languagebash
      # This property will define the FCM Server Key
      fcm.server.key=AAAA8vRqo9E:APA91bGAH_mayzwS8fHU2FmHdOMk_hUc0Yi3GxMcS72VN18sPBIJCKs7Wv7uauKnLScTTVH7gFWy_fKhGq20m-0fNuEhStlBarz4BCzIR


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

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


Refer the following pages: