FCM令牌在更新应用程序后刷新。为什么?

时间:2019-07-08 09:55:58

标签: c# xamarin xamarin.forms xamarin.android firebase-cloud-messaging

能否请我解释一下,为什么当我更新我的xamarin应用程序时,刷新了fcm令牌,这并不方便,我需要再次与服务器同步,因此我在文档中读到fcm令牌不应该被刷新应用更新时 我使用此FCM插件,并将属性“ resetToken”设置为false https://github.com/CrossGeeks/FirebasePushNotificationPlugin

Is FCM token refreshed on app update?

        FirebasePushNotificationManager.Initialize(this, new NotificationUserCategory[]
        {
        new NotificationUserCategory("message",new List<NotificationUserAction> {
            new NotificationUserAction("Reply","Reply",NotificationActionType.Foreground),
            new NotificationUserAction("Forward","Forward",NotificationActionType.Foreground)

        }),
        new NotificationUserCategory("request",new List<NotificationUserAction> {
            new NotificationUserAction("Accept","Accept",NotificationActionType.Default,"check"),
            new NotificationUserAction("Reject","Reject",NotificationActionType.Default,"cancel")
        })

        }, false);

0 个答案:

没有答案