Skip to content

Push Notification CLI prompts for ApiKey for FCM channel #9955

@cshfang

Description

@cshfang

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

14.17.3

Amplify CLI Version

7.6.23

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No manual changes made

Amplify Categories

notifications

Amplify Commands

add

Describe the bug

When adding push notifications via FCM channel - the CLI prompts for an ApiKey. It is unclear what api key it is asking for. (It is asking for the Server key from FCM console)

$ amplify add notifications
? Choose the push notification channel to enable. FCM

An Amazon Pinpoint project will be created for notifications.
? Provide your pinpoint resource name:  tempt0oGF
✔ Successfully created Pinpoint project: tempt0oGF-dev

✔ Successfully set the IAM policy

? ApiKey 

Expected behavior

Expected a little more clarity/guidance on what this is asking for. At the least, the terminology should be updated to Server Key to align with the FCM console.

Reproduction steps

  1. Add notifications
$ amplify add notifications
  1. Select FCM as the channel to enable
  2. See just a prompt for ApiKey with no indication what key this is asking for

GraphQL schema(s)

# Put schemas below this line

Log output

# Put your logs below this line


Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomersnotificationsIssues tied to the notifications categoryp2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions