1. Home
  2. Docs
  3. Ionic Firebase Chat
  4. Push Setup

Push Setup

To set up firebase push notification, you can follow the below steps.

 

Steps:

  1. Navigate to firebase console
  2. Click Add App then choose android (steps are same for iOS)
  3. Fill All required details.
    1. App Name => Your App Name
    2. Package Name => com.yourcomanyname.appname => it should be the same inside config.xml
    3. SHA 1 key: https://developers.google.com/android/guides/client-auth
  4. Download google-service.json (for iOS download GoogleService-info.plist)
  5. Then copy your downloaded files & paste inside your project folder (not anywhere else)

Important

If you’re facing any error while building your app, you must remove the platform and add it again

ionic cordova rm android
ionic cordova platform add [email protected]