Push Notifications Firebase Message Format

Hi, I was able to successfully get a proof of concept working for sending push notifications to Android via Firebase thanks to your docs (https://www.fusetools.com/docs/fuse/pushnotifications/push). However, I can’t seem to figure out where you got the format from for sending the notification to the Google’s Cloud Messaging. It’s this format here:

        {
            registration_ids: [regID],
            data: {
                notification: {
                    alert: {
                        title: 'Well would ya look at that!',
                        body: 'Hello from some other app'
                    }
                },
                payload: 'anything you like'
            }
        }

In the Google documentation (https://firebase.google.com/docs/cloud-messaging/concept-options), all I can seem to find is the one below, which doesn’t seem to work for me - I get an error back from the Google server. However, the format above from the Fuse docs seems to work fine. Here is the message format shown in the Google documentation:

{
  "message": {
    "token":"bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...",
    "data":{
      "Nick" : "Mario",
      "body" : "great match!",
      "Room" : "PortugalVSDenmark"
    }
  }
}

The push notifications package that ships with fuse is not firebase but instead GCM & APNS. The format is an unfortunate thing really, you can see some details here: https://www.fusetools.com/community/forums/general/push_notifications_body_json_structure?page=1&highlight=f4bc0a9d-a06a-43e7-b6ed-cde0d7d7f6e2#post-f4bc0a9d-a06a-43e7-b6ed-cde0d7d7f6e2

I would advise looking at https://github.com/fuse-compound/Fuse.APNS & https://github.com/fuse-compound/Fuse.Firebase which can be used together as shown in https://github.com/fuse-compound/FuseExample_Using_APNS_and_Firebase_Together

I hope this helps a little