Do I need to change the API key when using the GCM 3.0 Instance API?

I am currently integrating a new registration process GCM 3.0for push notifications using InstanceID API.

Before that, I use the method GCM 2.0 register()for push notifications, and for this I created a project on the Google developer console and created Server API keyto send push notifications to Device

So now that I go to GCM 3.0referring to the link. when creating the configuration file, it sets two things:

  • Select an existing project or create a project
  • Application Package Name

Providing these two details, it will automatically generate a new one Server API key, but I already created API keybefore that.

so is there a need to change the old API keyto the new API keyor stick to the old API key?

+4
source share
1 answer

No, you can use the old API key.

Since the new process is just a new skin for creating an API key and sender ID.

+1
source

Source: https://habr.com/ru/post/1609616/


All Articles