FirebaseInstanceIdService is deprecated

后端 未结 10 2354

Hope all of you aware of this class, used to get notification token whenever firebase notification token got refreshed we get the refreshed token from this class, From follo

10条回答
  •  我在风中等你
    2020-11-22 10:21

    firebaser here

    Check the reference documentation for FirebaseInstanceIdService:

    This class was deprecated.

    In favour of overriding onNewToken in FirebaseMessagingService. Once that has been implemented, this service can be safely removed.

    Weirdly enough the JavaDoc for FirebaseMessagingService doesn't mention the onNewToken method yet. It looks like not all updated documentation has been published yet. I've filed an internal issue to get the updates to the reference docs published, and to get the samples in the guide updated too.

    In the meantime both the old/deprecated calls, and the new ones should work. If you're having trouble with either, post the code and I'll have a look.

提交回复
热议问题