3rd party integrations
...
Firebase
Connect Firebase to your Purpl...

02 - Connect Firebase with an Android App

14min

Purple Manager / 3rd party integrations



Summary

This article guides you step by step through the process of connecting Firebase to your Android App.

You will connect your Purple Android app with Firebase and activate the following service:

For your Purple Android app

  • Firebase Analytics
  • Firebase Crashlytics
  • Firebase In-App Messaging
  • Push for App
  • Push registration on App start

If you wish not to use one of the above-mentioned services, just don't check the check box in Purple Manager to skip its activation.



Preconditions



How to

Set up your app in Firebase

1. Visit firebase.google.com and open your Firebase project

2. Click on 'Project Overview'

Click on 'Project Overview'


3. Click on the gear symbol

Click on the gear symbol


4. Click on 'Project settings'

Click on 'Project settings'


5. Below 'Your apps' click on 'Add app'

Below 'Your apps' click on 'Add app'


6. Click on the Android symbol

6. Click on the Android symbol


7. Add your Android Package name (the Package name in Purple).

7. Add your Android Package name (the Package name in Purple).


8. Click on 'Register app'

8. Click on 'Register app'


9. Click on 'Next'

Click on 'Next'


10. Click on 'Next'

Click on 'Next'


11. Click on 'Continue to the console'

Click on 'Continue to the console'


12. Click on 'General'

Click on 'General'


13. Below your apps, go to the tab of your Android app and click on 'google-services.json' to download the file to your computer

click on 'google-services.json' to download the file to your computer


Activate Firebase services and Push in Purple Mager

14. Go to Purple Manager -> 'Apps' and -> 'Overview'

Go to Purple Manager -> 'Apps' and -> 'Overview'


15. Click on the three dots

Click on the three dots


16. Click on 'Consent/Push/Analytics'

Click on 'Consent/Push/Analytics'


17. Below 'Firebase Configuration' next to 'Android' click on the arrow

Below 'Firebase Configuration' next to 'Android' click on the arrow


18. Click on 'Basic Settings'

Click on 'Basic Settings'


19. Wait until the upload has finished

Wait until the upload has finished


20. Next to 'Firebase Configuration file' click on 'Select file' and upload the 'googleservices.json' file which you have downloaded from Firebase in step 12

click on 'Select file' and upload the 'googleservices.json' file


21. Next to 'Enable Firebase Analytics' check the check box

Next to 'Enable Firebase Analytics' check the check box


22. Next to 'Enable Firebase Crashlytics' check the check box

Next to 'Enable Firebase Crashlytics' check the check box


23. Next to 'Enable Firebase In-App Messaging' check the check box

Next to 'Enable Firebase In-App Messaging' check the check box


24. Below 'Push' -> 'Android' -> next to 'Basic Settings' click on the arrow

Below 'Push' -> 'Android' -> next to 'Basic Settings' click on the arrow


25. Next to 'Enable Manager Push' check the check box

Next to 'Enable Manager Push' check the check box


26. Next to 'Push registration on app start' check the check box

Next to 'Push registration on app start' check the check box


27. Click on 'Save'

Click on 'Save'


You have successfully activated Firebase for your Android app, connected your Purple Android app with Firebase and activated the following service:

  • Firebase Analytics
  • Firebase Crashlytics
  • Firebase In-App Messaging
  • Push for App
  • Push registration on App start