I have two iOS Certificates for push notification: one is for production, the other is for development. I create two .pem accordingly, and upload production .pem successfully in Game Manager.
But all the push notifications are failed. In Game Manager, the error message is
"iOS Push Notification Failed: Client has been unregistered for push notifications."
I find Xcode still use development certificate, so I want to upload the other development .pem file in the title settings. It fails:
"Invalid parameter: Name Reason: An application with the same name but different properties already exists"
So how to change iOS Push Notifications PEM file in the title settings, or is there anything I did wrong?
Answer by Citrus Yan · Dec 08, 2020 at 09:27 AM
May I know your title id? And, the error “Invalid parameter: Name Reason:…” generally indicates the name of your title (the name in the Game Manager) is the same as that of another title already in AWS SNS. In your case, I guess it result from the Push Notifications configuration you set previously. May I know are there any errors displayed when you click “Remove”, if so, may I know the details?
As a workaround for now, you can try using the Admin SetupPushNotification API to manually set up Push and use a different application name you specify, the request looks like the one post in this answer:https://community.playfab.com/answers/39918/view.html
Answer by mobilEKG · Dec 10, 2020 at 04:28 AM
BTW, when the game (iOS) is active I can't see the push notifications banner; when game is closed I can receive the push notifications banner, and there is no badges on the game icon, even I enabled all of them. Is this by design or do I miss anything? @Citrus Yan
May I know how did you send the Push Notification request, could you please share a sample request body?
Answer by mobilEKG · Dec 10, 2020 at 08:01 AM
I didn't write any code to send nitification. In Game Manager, Players, Overview panel, there is a "Send push notification" button.