We have moved to docs.pugpig.com! You can find this article here
Firebase Cloud Messaging helps engage push notification-registered users by sending them messages while outside of the app.
How to send a cloud message/push notification
Enter your Firebase project, selecting Cloud Messaging on the left menu and select "New notification".
Message content
Fill in your notification content on the interface as displayed below.
How to send cloud messaging tests to a device
As well as Firebase Cloud Messagings preview screen, you can also send test push notifications directly to devices which can be useful. Firstly, download the app onto a device and check in device settings that notifications for the app are turned on. Send yourself device logs (go into app > Settings > hold down "Powered by Pugpig" for 5 seconds). Then find the Firebase device ID within your device logs, it will look similar to the below:
2020-02-02 12:57:46 pm +0000: Firebase: refresh/updated token ckNpWnu4jGU:APA67bHF5NJZi9uwmMDbuUCKDBx1WCswOeDHshZpk_m7xtf0mjnHqaM5v4hPrcAl1EtM8Q2DEUaEzUXqbGLwOUTnNJpt_eai_I50BoRTYubVp6EqCsqK-TZcWeOIpFeQQf4g-w22Fb15
Click the blue "Send test message" button and then press test as seen below.
Targeting
Select the iOS and/or Android versions of your app.
Reasons you may prefer to send individual messages per platform include; if your app is named differently per platform; if it's a subscription related message and pricing is different; if you publish different content per platform.
Scheduling
Schedule your message and/or set your recurring details.
Conversion events
You can optionally choose a desired analytics event you'd like users to trigger as a result of your push, a common example would be "in_app_purchase". If this is configured you'll be able to measure the efficacy of each push in achieving the specified goal.
Additional options
You can add a URL into your push by adding "deepLink" into the Custom data Key field and your URL into the Value field. See example below.
Be aware the URL will not appear directly in the message, often it's recommended to include "swipe to" or "open now" into the message content for users.
A list of example links can be found here.
New edition push notifications
To send a Firebase Cloud message with a link directly through to an edition, find the URL by going into Distribution > Content Feed > click on the edition > then right hand click on the covers "Page Title" for the URL (if the edition is paywalled, make sure you don't click through to the cover and take the URL because this will take a different URL). See example below and use "preview html".
------
To understand which app build versions contain which Firebase Cloud Messaging features, please review the relevant release note documentation: Pugpig Bolt iOS; Pugpig Bolt Android; Pugpig Publish iOS; Pugpig Publish Android.
Comments
0 comments
Please sign in to leave a comment.