Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abdulrehmannazar/pushnotificationdemo

FCM PushNotificationDemo Application
https://github.com/abdulrehmannazar/pushnotificationdemo

android android-application demo fcm fcm-messaging fcm-notifications notification-android push-notifications

Last synced: about 2 months ago
JSON representation

FCM PushNotificationDemo Application

Awesome Lists containing this project

README

        

[![Kotlin Version](https://img.shields.io/badge/Kotlin-1.9.23-blue.svg?style=flat-square)](http://kotlinlang.org/)
[![Gradle](https://img.shields.io/badge/Gradle-8.2.0-blue.svg?style=flat-square)](https://developer.android.com/build/releases/gradle-plugin)
[![API](https://img.shields.io/badge/Min%20SDK-24%20[Android%207.0]-blue.svg?style=flat-square)](https://github.com/AndroidSDKSources/android-sdk-sources-list)
[![Target SDK](https://img.shields.io/badge/Target%20SDK-34%20[Android%2014]-blue.svg?style=flat-square)](https://developer.android.com/about/versions/13)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](http://www.apache.org/licenses/LICENSE-2.0)
[![Android Studio](https://img.shields.io/badge/Android-Studio-Jellyfish)](https://developer.android.com/studio/preview)

# PushNotificationDemo video
https://github.com/AbdulRehmanNazar/PushNotificationDemo/assets/6792823/6db76af1-82b1-419f-a9b3-e677a8b54203






## 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.