-
Notifications
You must be signed in to change notification settings - Fork 5
Firebase
Xavier Sellier edited this page Mar 12, 2018
·
1 revision
Copy google-services.json
file into godot/platform/android/java/
.
I strongly recommand you to have a google-services.java
for debug purpose and another one for your release. (put them respectivly in godot/platform/android/java/src/debug
and godot/platform/android/java/src/release
, create the directories if needed).
Replace notification-icon.png
in following directories for yours:
godotandroid/res/drawable-hdpi
godotandroid/res/drawable-mdpi
godotandroid/res/drawable-xhdpi
Update the content of godotandroid/android/AndroidManifestChunk.xml
:
<!-- Set color used with incoming notification messages. This is used when no color is set for the incoming notification message. See README(https://goo.gl/6BKBk7) for more. -->
<meta-data android:name="com.google.firebase.messaging.default_notification_color" android:resource="@color/colorAccent" />
Add your color in godotandroid/res/values/colors.xml
.
Example:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#039BE5</color>
<color name="colorPrimaryDark">#0288D1</color>
<color name="colorAccent">#FFA000</color>
<color name="blue_grey_500">#607D8B</color>
<color name="blue_grey_600">#546E7A</color>
<color name="blue_grey_700">#455A64</color>
<color name="blue_grey_800">#37474F</color>
<color name="blue_grey_900">#263238</color>
</resources>