FCM basically supports two types of downstram messaging HTTP and XMPP :
This script facilitate Php implementation for FCM Downstream messaging using http.
This script requires five inputs:
- Server key
Click on the settings icon/cog wheel next to your project name at the top of the new Firebase Console
Click Project settings
Click on the Cloud Messaging tab
The key is right under Server Key. - Device Token
This one can through app only using getToken(). - Message
- Title
- Payload data
In script some default data is considered so asper your requirement plz update.
At the time of creation this script is working fine but this post is public expect some changes in future.
Thanks,
@Vishal VVR.