-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS Pinpoint Campaign testing push notifications with APNS Sandbox does not start working after amplify add notifications
#3247
Comments
The P8 file, even when generating through apple's developer site indicates it's for both development and production which is why i think if we are registering the p8 file via Amplify CLi, we should simply call both In terms of error handling, what if one update call fails and the other one succeeds? should we simply convey to the developer that the entire operation failed with the error from pinpoint service and prompt them to try again or open an issue with the repo? |
APNS Sandbox channel will be enabled/disabled when regular APNS channel is enabled/disabled fix aws-amplify#3247
thanks for the PR - updating docs aws-amplify/docs#1275 |
APNS Sandbox channel will be enabled/disabled when regular APNS channel is enabled/disabled fix #3247 Co-authored-by: Zhou <zhoweimi@186590ce137f.ant.amazon.com>
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
When I enable APNS push notifications with key certificate via
amplify add notifications
, it appears to be enabled, however when I try to create a campaign and send a test message to my endpointId, it fails withChannel Disabled
. The endpoint is set up with a device token for APNS sandbox. When I check settings, push notification is enabled. I checked the amplify-cli code and it looks like it's hittingupdateApnsChannel
. When using AWS Console to add the key certificate, it then works (device receives the notification) when I send test messages or launch the campaign.Amplify CLI Version
4.12.0
To Reproduce
amplify add analytics
andamplify push
amplify add notifications
amplify console analytics
and go to the Settings/Push Notifications/Edit, and under APNS re-add the key certificateI suspect that going through the console, it may be making calls to both update-apns-sandbox-channel and update-apns-channel
Expected behavior
amplify add notifications
should allow us to specify apns sandbox or apns production since the key is used for both channels when Pinpoint sends authorization data to APNS. If I have to go to AWS Pinpoint Console to enable calls for APNS Sandbox, that kind of defeats the purpose of using amplify CLI for this step in the development. I think a solution could be by default; make a request to pinpoint to update both apns sandbox and production since that's what the key is used for. And askChoose APNS environment: [Production|Sandbox|Both]
and Both could be the defaultAdditional context
Some assumptions i've made
amplify add notifications
results in not workingThe text was updated successfully, but these errors were encountered: