Firebase push notifications update DB

前端 未结 3 1636
萌比男神i
萌比男神i 2020-11-28 11:53

I\'m trying to send some data to my users via the new Firebase push notifications service.

I\'m adding some \"key-value\" custom data items with \'Message text\' -

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 12:08

    When you application is in the foreground, notifications will be passed to FirebaseMessagingService.onMessageReceived(). When the app is not in the foreground, the notification will be handled by the default notification center.

    Also see:

    • How to push firebase notification only when CheckBoxPreference is checked?

    • Open app on firebase notification received (FCM)

提交回复
热议问题