0

Iam working on an android project and made a chat application, but cant send notifications. I can post FireBase http from the web interface, but cant find how to do it with android. I have a device register id, project number sender ıd. please help mee .

  • have you setup all the things require for firebase in android project? – pkgrover Jan 31 '17 at 13:13
  • Yes i think but i dont know how to use it. can you share a sample code block if you have? – orhanyuksel Jan 31 '17 at 13:23
  • refer the link https://www.codementor.io/flame3/send-push-notifications-to-android-with-firebase-du10860kb – pkgrover Jan 31 '17 at 13:25
  • yes i know this but actually need to http post. i can send notification with web and firebase console. just cant android devices. its the classic messaging app. i can send message but cant notification. i completed hard part but i couldnt the easy part – orhanyuksel Jan 31 '17 at 13:31
  • If you haven't already, check this stackoverflow question and the answer below: http://stackoverflow.com/questions/37435750/how-to-send-device-to-device-messages-using-firebase-cloud-messaging . In my chat application, I've used OneSignal to show notifications to the user: https://onesignal.com/ , it's almost free. – Valentino S. Jan 31 '17 at 14:12
  • 2
    Device to device messaging is not built in to Firebase Cloud Messaging at the moment. To send messages *from* an Android device, you will need to run code on a server. See this [blog post explaining how to do that](https://firebase.googleblog.com/2016/08/sending-notifications-between-android.html) pr this [explanation from one of the FCM engineers](http://stackoverflow.com/q/38432243/). – Frank van Puffelen Jan 31 '17 at 14:17
  • i ll try thank u all – orhanyuksel Feb 02 '17 at 06:17

0 Answers0