{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • BaaS/Usergrid /
avatar image
0
Question by Ritwik Chatterjee · Nov 21, 2017 at 06:39 AM · 129 Views push notificationnotificationandroidgcm

Not able to create notifier for Android

Hi,

I am not able to create a notifier for Android. It is failing with the following error message:

"Invalid GCM API Key or Registration ID(s)"

Here is what I have done:

Registering with Google Notification Service

1. Created a new project in Google developer console.

2. Enabled Google Cloud Messaging

3. Created new credentials

Note: The key is an API Key. That seems to be the only option for Google Cloud Messaging. I was not able to create a "Server key" as per the documentation here. I believe the documentation is now outdated.

Creating Notifiers with admin portal

I have followed the steps here (Apigee's documentation), but it fails in step 6.

I am picking up the key as per the instructions in step 5. I have tried regenerating the key as well.

Please help.

Regards,

Ritwik

Comment
Add comment Show 2
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gagandeep Singh · Nov 21, 2017 at 11:54 AM 0
Link

@Ritwik Chatterjee ,

If you are using GCM to generate the API key, it will not work.

FCM is the new version of GCM and google recommends using FCM.

Any chance you are using FCM and getting this error?

avatar image Ritwik Chatterjee Gagandeep Singh · Nov 21, 2017 at 06:06 PM 0
Link

@Gagandeep Singh - I looked at FCM documentation. Looks like FCM supports OAuthv2. I am trying to use Apigee BaaS for GCM communication. Not sure if Apigee BaaS has already switched to FCM. Atleast the Apigee documentation does not show that.

Close

1 Answer

  • Sort: 
avatar image
0
Best Answer

Answer by Ritwik Chatterjee · Nov 21, 2017 at 06:59 PM

I finally figured out the solution.

The apigee documentation is obsolete now, and so is the GCM process. The API key generated by the above approach is not accepted by GCM themselves :)

Here is a small snippet that I found on GCM documentation:

"Starting from September 2016, you can create new server keys only in the Firebase Console using the Cloud Messaging tab of the Settings panel. Existing projects that need to create a new server key can be imported in theFirebase console without affecting their existing configuration."

You should follow this approach - import your GCM project in FCM and generate a key from there. That key can be used.

Thanks for those who tried to help.

Regards,

Ritwik

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jonesfloyd ♦♦ · Nov 21, 2017 at 08:33 PM 0
Link

Huge apologies for the stale docs, @Ritwik Chatterjee. I'm glad you found the answer. I've removed the steps in that topic but kept the link to the correct content you referenced. Thanks!

Follow this Question

Answers Answers and Comments

39 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Push Notifications from BaaS using Firebase Messaging 6 Answers

Receipt entites not getting generated for Push Notifications 0 Answers

Push Notifications to Android devices have stopped working. Is the Apigee sample for Push Notifications out of date? 1 Answer

I am using push notifications to all devices but there are some devices that doesn't get notification,while apigee shows that notification is sented to that device's UUID and device is registered. 0 Answers

Android parsing custom data with push notifications 2 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges