有誰知道如何強制刷新FCM生成的註冊令牌?我最近才試圖將我的項目從GCM遷移到FCM。iOS和FCM:強制刷新令牌
在火力地堡網站上的文檔提到使用生成令牌:
// Get the default token
// The first time you call this, the token may not be available, in which case
// the SDK returns nil.
// Once the token is fetched from the server, the SDK posts a token refresh
// notification that you can listen for in order to access the new token.
NSString *token = [[FIRInstanceID instanceID] token];
但它看起來像我只獲得當我打電話FIRInstanceID.instanceID().token()