Please Wait

Loading..

Push Notification

Get User's attention on your App by sending Push Notification on smart phones

Realtime messaging with Push Notification for your App

Push Notification

For send push notification on Android and IOS Phone you have to configured following steps in your dashboard.

  1. Enable Mobile push notification from your dashboard

    Javascript Security
  2. Fill FCM Key for Android Device and APNS Environment,PEM cert and PEM Private Key for IOS Device.

    Javascript Security
  3. To send IOS push notification you have registered devicetoken using IOS sdk from your app. For more information please refer the sdk documentation

  4. To send FCM based push notification you have to registered deviceToken and topic on FCM server. Topic must be like "clientKey_channel"


JSON format to send Mobile Push Notification

Following JOSN format must be required to send push notification because yalgaar server identify the key and according to that send the notification to Android and IOS devices.

{"notification":
    {"apns":
        {"aps":
            {   
                "alert": "Hi from Yalgaar",
                "badge": 2,
                "sound": "melody"
            }
        },
        "fcm":
        {
            "body" : "Hi from Yalgaar"
        }
    },
"message":"Hi from Yalgaar"
}

  • notification
    • Notification identify to send Mobile Push Notification.
  • apns
    • apns key must contain for send APNS associated devices and it must begin with aps. In alert you can write the text which you want to send as notification.
  • fcm
    • fcm key must contain for send FCM associated devices. In fcm body you can write the text which you want to send as notification.
  • message
    • message key contain a text message which will send to subscribe channel.

Try another tutorials