Notifications and Realtime Database

144 views
Skip to first unread message

Akhil Battula

unread,
Aug 21, 2016, 5:33:43 PM8/21/16
to Firebase Google Group
Greetings to Everyone...

I tried to combine FCM and Firebase Realtime Database...

I mean the string data i receive from notification will save into database and then it displays in a text view of my Activity.

Some how i succeeded...

But my Problem is, I want Customized data in Notification(Includes Line Breaks, New lines etc) and it have to display the data in textview in the same way...

But Firebase Cloud Messanging only allowa a singleline string...

Please, Anyone can give any solution... 

Joe White

unread,
Aug 21, 2016, 7:00:22 PM8/21/16
to Firebase Google Group
Have you read here: https://firebase.google.com/docs/cloud-messaging/concept-options#notifications_and_data_messages

There are two types of messages: display messages (which is what it sounds like you are using) and data massages (which sounds like what you want to use).
Reply all
Reply to author
Forward
0 new messages