From 4576512d00227959e447a022e425b79114c80786 Mon Sep 17 00:00:00 2001 From: Simon MacDonald Date: Tue, 5 Dec 2017 12:46:52 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Issue=20#2087:=20Sending=20one?= =?UTF-8?q?=20unique=20push=20for=20iOS=20and=20Android?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index d8c132a04..89613809d 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,17 @@ FCM. If you are using version 1.x please reference the docs in the This plugin offers support to receive and handle native push notifications with a **single unified API**. +This does not mean you will be able to send a single push message and have it +arrive on devices running different operating systems. By default Android uses +FCM and iOS uses APNS and their payloads are significantly different. Even if +you are using FCM for both Android and iOS there are differences in the payload +required for the plugin to work correctly. For Android **always** put your push +payload in the `data` section of the push notification. For more information on +why that is the case read +[Notification vs Data Payload](https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#notification-vs-data-payloads). +For iOS follow the regular +[FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref). + Starting with version `2.0.0`, this plugin will support `CocoaPods` installation of the `Firebase Cloud Messaging` library. More details are available in the [Installation](docs/INSTALLATION.md#cocoapods) documentation.