Getting "Platform credentials are invalid" when create platform application in SNS

0

Hi everyone,

I am new to SNS and would like to construct my own app. When I tried to create a platform application, I am facing an error saying: "Error code: InvalidParameter - Error message: Invalid parameter: Attributes Reason: Platform credentials are invalid" Here is what I did:

  • Getting the API key:
    • Firebase console/Project Overview/CloudMessaging/Firebase Cloud Messaging API(V1)/Manage Service Accounts redirects to Google cloud APIs &Services page
    • APIs &Services page/Credentials/API Keys/Android key (auto created by Firebase)
    • Copy the API key.
  • Creating the platform application
    • SNS/Push notifications/Create platform application
    • Application name: testApp
    • Push notification platform: FCM
    • API key: paste the API key I am sure the API key is copied directly from the android key generated by firebase, but SNS keeps saying "Platform credentials are invalid". I also tried to limit the "Android key (auto created by Firebase)" to an andoird app, and waited for hours. It does not solve the error. Can anyone help to check which part is wrong? Thanks.
질문됨 일 년 전769회 조회
2개 답변
0

Eventually used the "Cloud Messaging API (Legacy)"'s server key.

답변함 일 년 전
  • How did you find "Cloud Messaging API (Legacy)"'s server key. It's invisible to me.

  • I have also found it and need to reactivate it

0

Hey there,

I've been down that road before, and that error message can be a bit frustrating, but fear not, we'll get you sorted. The issue seems to be a hiccup between Firebase and SNS during the platform application creation. Double-check that you've copied the API key correctly – it's easy to miss a character or space.

Now, about limiting the API key to the Android app, you're on the right track, but sometimes, these changes take a bit to propagate. Waiting a few hours might not be enough. Try giving it a bit more time, and if it still persists, consider rechecking the Firebase configurations.

Also, make sure the package name in your Firebase project matches the one you're using in your SNS platform application. Mismatched package names can lead to this kind of headache.

I've had my fair share of battles with these integrations, and patience has often been the key. Hang in there, and let me know if these suggestions do the trick.

dara
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠