Apply for Google FCM ( Firebase Cloud Message ) Project & Configure Android Project
来源:互联网 发布:2016家具淘宝数据 编辑:程序博客网 时间:2024/06/11 13:44
Apply for Google FCM ( Firebase Cloud Message ) Project & Configure Android Project
First of All, you should make sure that your network of your personal computer is ok. And you have already Set network proxy (or VPN) for it.
1. Apply for a Google developer account.
2. Go to https://console.firebase.google.com/ and apply for a FCM project.
a. If you have already created google project before, please “Import Google Project”, else you should “Add Project”. Let’s add a new project. Just Click “Add Project”.
b. As the Picture shows below, you can create a new project.
3. Configure you project information in the google fcm server.
a. Fill in application Id and SHA1.
applicationId:
SHA1:
The link https://developers.google.com/android/guides/client-auth shows how to check SHA1.
4. Put FCM configs to your android project.
a. Download Google Play Service SDK for your project using Android SDK Manager.
b. Download google-services.json.
c. Switch your project file to the project view in the android studio.
d. Put google-services.json to the path “project/app/..”.
5. Put FCM SDK to the project.
The link https://firebase.google.com/docs/cloud-messaging/android/client?authuser=0 shows the steps to put the FCM SDK to your project.
Since you have finished all the steps above, you can now send push notification message by Google FCM platform, and receive the message in your app.
Let us take a look at how to send and receive msg.
6. When you build the project added FCM, you install and open it in your android mobile, you will get a device token from google. Such as :
“cews6-oHPMQ:APA91bEas_LUZFej5kexFxjiuYxSPfIDbD9Q7TcPtCGdb0rot6kSaVwYjSDw3w3kadovBRxpZ4fbJ5W1p0_mMXqQtUU_ywO8MfQY5kumtD1r5AcNme-63xb4TkzbckAp1ByH0khgfPg7”. Save it and it will be used to send push notification to single device.
7. Since you get the token, you can send single test message with it, let us have a look at how to send PN message.
As the pictures shown above, you only need to step by step do it.
8. Message sent ? OK, let us check a check the app in your mobile, you can see that like below:
Could you also see this in your side ? Congratulations! You have already add the Google FCM to your project.
- Apply for Google FCM ( Firebase Cloud Message ) Project & Configure Android Project
- FCM issues (Firebase Cloud Message)
- Google FCM推送(Firebase Cloud Messaging)
- Android一点 让eclipse也支持FCM(Firebase Cloud Messaging)
- FCM(Firebase Cloud Messaging) 接入问题说明
- Google Cloud Message for Android(GCM云推送)
- configure serivce.clientconfig for Silverlight project
- 整合Firebase Cloud Messaging (FCM)到Eclipse工程
- Android for MSM Project
- Crosswalk Project for Android
- Android for MSM Project
- Google Cloud Message for Android(GCM云推送)(译文和开发流程)
- Google Cloud Messaging for Android
- Google Cloud Messaging for Android
- Google Cloud Messagin for Android
- GCM 的升级版——FCM(firebase cloud messaging)
- android in practice_Using Cloud to Device Messaging(portfolio project)
- Gradle Build Variants for your android project
- 优秀工程师-UISwitch
- mysql查询当前数据库所有 的表基本信息
- tar中的参数 cvf,xvf,cvzf,zxvf的区别
- Spring Boot系列(一):Spring Boot 入门篇
- 作业1
- Apply for Google FCM ( Firebase Cloud Message ) Project & Configure Android Project
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- SpringMVC中利用@InitBinder来对表单数据进行解析绑定
- linux下opencv训练xml
- 字符串算法——有重复字符的数组或字符串全排列(Permutations II)
- 第5周项目3 括号的匹配
- CheckBox与文字的间距
- Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/
- Linux ALSA声卡驱动:ALSA架构简介