Why do I need to add the configuration file to my project to set up GCM correctly?

前端 未结 2 1220
感动是毒
感动是毒 2020-12-29 20:52

https://developers.google.com/cloud-messaging/android/client I\'ve read this article. And it says that I need to download and add the configuration file to my project. But t

2条回答
  •  一整个雨季
    2020-12-29 21:18

    I am also working on multiple GCM-projects but still using Eclipse, Eclipse-ADT-plugin and the old project structure and I did not include this config-file into my projects. I also was confused at the beginning and hence tried it in a Android-Studio project using Gradle but the config file was not necessary either.

    So Rémond´s answer might make sense but for me everything is working fine (including generating InstanceID-Token and also Topic-Messaging is working).

    So in fact, it should work without adding the file and you do not need this file anyway.

提交回复
热议问题