Hi Ziqiao, thanks for looking into this!
I've verified using CKFetchSubscriptionsOperation.fetchAllSubscriptionsOperation() on both Development and Production (TestFlight) devices. All 5 subscriptions are present and correctly configured in both environments.
The output is identical between both environments. Here are all 5 subscriptions as returned by CKFetchSubscriptionsOperation:
fr-sub-v3 (FriendRequest)
Predicate: receiverID == [userID] AND status == "pending"
badge=true, sound=default, contentAvail=false
locKey=FRIEND_REQUEST_BODY, locArgs=[senderUsername]
category=FRIEND_REQUEST, desiredKeys=[senderID, senderUsername]
rec-sub-v3 (MediaRecommendation)
Predicate: receiverID == [userID] AND status == "pending"
badge=true, sound=default, contentAvail=false
locKey=RECOMMENDATION_BODY, locArgs=[senderUsername, mediaTitle]
category=RECOMMENDATION, desiredKeys=[mediaTitle, mediaType, senderID, senderUsername]
fs-a-sub-v3 (Friendship)
Predicate: userAID == [userID]
badge=true, sound=default, contentAvail=false
locKey=FRIENDSHIP_ACCEPTED_BODY, locArgs=[userBUsername]
category=FRIENDSHIP_ACCEPTED, desiredKeys=[userBID, userBUsername]
fs-b-sub-v3 (Friendship)
Predicate: userBID == [userID]
badge=true, sound=default, contentAvail=false
locKey=FRIENDSHIP_ACCEPTED_BODY, locArgs=[userAUsername]
category=FRIENDSHIP_ACCEPTED, desiredKeys=[userAID, userAUsername]
comp-sub-v3 (CompletionNotification)
Predicate: recommenderUserID == [userID]
badge=true, sound=default, contentAvail=false
locKey=COMPLETION_BODY, locArgs=[completerUsername, mediaTitle]
category=COMPLETION, desiredKeys=[completerUserID, completerUsername, mediaTitle, mediaType]
I've also confirmed via didReceiveRemoteNotification breadcrumb logging that no push is ever received on the TestFlight device (not even silently). APNS delivery itself works (tested via Xcode Push Notifications Console with the same production device token).
A few basics to get out of the way:
I'm testing with two real Apple IDs on two different devices.
Both devices have notifications turned on
I have about 40 testers running a previous build (that did have notifications working) that are saying they don't receive push now
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: