Eclipse: Integrating Firebase Cloud Messaging into your Android app

0
59

Reference: http://dandar3.blogspot.kr/2017/01/eclipse-integrating-firebase-messaging.html

https://github.com/dandar3/android-support-v4

google-services.json:

Read the Firebase documentation and follow the Processing the JSON File information to manually generate your own values.xml

If you’re having trouble with getting this right you could use Android Studio to import firebase/quickstart-android GitHub project, deploy your google-services.json into it and then copy the generated values.xml out.

res\values\google-services.xml
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="default_web_client_id" translatable="false">{YOUR_CLIENT}/oauth_client/[first client_type 3]</string>
    <string name="gcm_defaultSenderId"   translatable="false">project_info/project_number</string>
    <string name="firebase_database_url" translatable="false">project_info/firebase_url</string>
    <string name="google_app_id"         translatable="false">{YOUR_CLIENT}/client_info/mobilesdk_app_id</string>
    <string name="google_api_key"        translatable="false">{YOUR_CLIENT}/services/api_key/current_key</string>
    <string name="google_storage_bucket" translatable="false">project_info/storage_bucket</string>
</resources>

AndroidManifest.xml changes

NO COMMENTS