Hello. Our team uses FCM to send push notifications.
The system has been working for several years without any problems. Recently, however, push notifications have frequently failed to appear.
Checking the logs shows that push notifications are reaching the device, but there seems to be a problem with the device token.
Does someone know how can I fix it?
apsd <APSCourier 0xc7280eb10 production>: Outstanding data received: {length = 480, bytes = 0x0affd901 81038202 04a31519 b81b05a3 ... 2231227d 0d020181 } (length 480) onInterface: NonCellular. Connected on 1 interfaces.
apsd <APSCourier 0xc7280eb10 production>: Stream processing: complete yes, invalid no, length parsed 476, parameters {
APSProtocolBaseToken = {length = 32, bytes = 0xa332d898 556385c2 8962f5f7 f1eea558 ... acbe6d1a 7b68b011 };
APSProtocolCommand = 10;
APSProtocolMessageExpiry = "XXXX-XX-XX XX:XX:XX +XXXX";
APSProtocolMessageID = {length = 4, bytes = 0x1bb81915};
APSProtocolMessagePriority = 10;
APSProtocolMessagePushType = 8;
APSProtocolMessageTimestamp = 1683523065106797829;
APSProtocolPayload = {length = 402, bytes = 0x7b226763 6d2e6d65 73736167 655f6964 ... 2e65223a 2231227d };
APSProtocolToken = {length = 32, bytes = 0xdff8ef9f 5505ea73 5ff068fe ccaed5a6 ... 384ca7bd 62c06dd0 };
APSProtocolTopicHash = {length = 20, bytes = 0x4026c8fa2674da30b35f2c1abbe7b58d693556fd};
}
apsd Created power assertion {identifier: com.apple.apsd-delayed-keepalive-push.apple.com-NonCellular}
apsd <APSCourier 0xc7280eb10 production> incoming message is for proxy client that is *not* connected. baseToken {length = 32, bytes = 0xa332d898 556385c2 8962f5f7 f1eea558 ... acbe6d1a 7b68b011 } destToken {length = 32, bytes = 0xdff8ef9f 5505ea73 5ff068fe ccaed5a6 ... 384ca7bd 62c06dd0 } publicTokens (
{length = 32, bytes = 0xa332d898 556385c2 8962f5f7 f1eea558 ... acbe6d1a 7b68b011 }
)
apsd <APSPushHistory: 0xc7290e260> timestampForTopic? BUNDLE_ID token {length = 32, bytes = 0xdff8ef9f 5505ea73 5ff068fe ccaed5a6 ... 384ca7bd 62c06dd0 }
apsd isAppSpecificTokenValid push.apple.com {length = 32, bytes = 0xdff8ef9f 5505ea73 5ff068fe ccaed5a6 ... 384ca7bd 62c06dd0 } ,PerAppToken.v0
apsd isAppSpecificTokenValid? {length = 32, bytes = 0xdff8ef9f 5505ea73 5ff068fe ccaed5a6 ... 384ca7bd 62c06dd0 } found cached token NO
apsd isAppSpecificTokenValid push.apple.com {length = 32, bytes = 0xdff8ef9f 5505ea73 5ff068fe ccaed5a6 ... 384ca7bd 62c06dd0 } ,ExtendedAppToken.v1
apsd SecItemCopyMatching() returned no items found.
apsd isAppSpecificTokenValid? {length = 32, bytes = 0xdff8ef9f 5505ea73 5ff068fe ccaed5a6 ... 384ca7bd 62c06dd0 } found cached token NO
apsd Received incoming push notification for topic: BUNDLE_ID but for a completely unknown token {length = 32, bytes = 0xdff8ef9f 5505ea73 5ff068fe ccaed5a6 ... 384ca7bd 62c06dd0 }