/PushNotificationDemo

FCM PushNotificationDemo Application

Primary LanguageKotlinApache License 2.0Apache-2.0

Kotlin Version Gradle API Target SDK License Android Studio

PushNotificationDemo video

Push.notification.mp4



How to use

Get the Token from the mobile application and use it in the payload of PostMan request and get the push notification. Smile :)

PostMan Request and Payload

Request

https://fcm.googleapis.com/fcm/send

Body Raw JSON

{
    "to": "INSERT_TOKEN_HERE",
    "data": {
        "body": "check_is_online",
        "title": "check_is_online",
        "key_1": "Value for key_1",
        "key_2": "Value for key_2"
    },
    "android": {
        "priority": "high"
    },
    "priority": 10
}

Author:





License:

Copyright 2024 Abdul Rehman Nazar

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.