/ionic2-firebase

[DEPRECATED] Easy example of Firebase working with Ionic 2.

Primary LanguageJavaScript

ionic2-firebase

  1. Run npm install
  2. Add platforms: ionic platform add android and ionic platform add ios
  3. Install plugin cordova plugin add cordova-plugin-fcm --save
  4. Create project on https://console.firebase.google.com
  5. Add 2 new apps - one for Android and one for iOS
  6. Copy google-service.json file to main project directory (the same directory of config.xml) for Android.
  7. Look google-service.json if api-key is not empty. If so, download it again.
  8. ionic run android to run app on Android
  9. ionic prepare ios and run project in XCode - copy file into main directory Tree and follow that steps
  10. Go to your project in https://console.firebase.google.com and select Notifications from menu -> *New message -> select your app, add message and click send