locked
Push notifications on Android RRS feed

  • Question

  • User385145 posted

    I'm programming a simple android app where a User can press an item and a push notification goes out to all users in his friendliest. I've got everything except the part with the notifications and I have no idea how I to do it.

    Can anyone help me with that? Maybe a nuget package?

    Thursday, May 2, 2019 12:47 PM

Answers

  • User382871 posted

    @nic169 Sorry for my mistake. Try to use Firebase Cloud Messaging to push notificaitons. Google’s new firebase cloud messaging is a great way to send messages to your users or devices.

    • Firebase Cloud Messaging: https://docs.microsoft.com/en-us/xamarin/android/data-cloud/google-messaging/firebase-cloud-messaging
    • Firebase Notifications: https://docs.microsoft.com/en-us/xamarin/android/data-cloud/google-messaging/remote-notifications-with-fcm
    • Tutorial: http://www.codingwithsam.com/2019/03/11/xamarin-forms-push-notifications-a-worked-example-with-fcm-on-android/
    • Sample: https://developer.xamarin.com/samples/monodroid/Firebase/FCMNotifications/
    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, May 3, 2019 7:33 AM

All replies

  • User382871 posted

    @nic169
    The tutorial can easily help you implement the notification on Android. If you are facing some issues while implementing, try to post the particular error with the corresponding codes here.

    Tutorial: https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/notifications/local-notifications Sample: https://developer.xamarin.com/samples/monodroid/LocalNotifications/

    Thursday, May 2, 2019 1:41 PM
  • User385145 posted

    @yelinzh

    Thanks for the answer but I need push notifications between different devices.

    The User has a game library and a friendlist (both saved in a database online). When the user clicks a game, the code should check the friendlist of the user and send a push notification to each other user in this list.

    Thursday, May 2, 2019 6:32 PM
  • User382871 posted

    @nic169 Sorry for my mistake. Try to use Firebase Cloud Messaging to push notificaitons. Google’s new firebase cloud messaging is a great way to send messages to your users or devices.

    • Firebase Cloud Messaging: https://docs.microsoft.com/en-us/xamarin/android/data-cloud/google-messaging/firebase-cloud-messaging
    • Firebase Notifications: https://docs.microsoft.com/en-us/xamarin/android/data-cloud/google-messaging/remote-notifications-with-fcm
    • Tutorial: http://www.codingwithsam.com/2019/03/11/xamarin-forms-push-notifications-a-worked-example-with-fcm-on-android/
    • Sample: https://developer.xamarin.com/samples/monodroid/Firebase/FCMNotifications/
    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, May 3, 2019 7:33 AM
  • User382834 posted

    This is outdated for the newest Firebase NuGet and there is no working documentation anywhere online that I can find. Can anyone please help?

    Monday, December 30, 2019 10:24 AM