Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • R reveSaaSDocumentation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Ifta
  • reveSaaSDocumentation
  • Wiki
  • Firebase Messaging Service (Push Messaging)

Firebase Messaging Service (Push Messaging) · Changes

Page history
Update Firebase Messaging Service (Push Messaging) authored Oct 28, 2019 by Ifta Noor Mahmood's avatar Ifta Noor Mahmood
Show whitespace changes
Inline Side-by-side
Showing with 1 addition and 0 deletions
+1 -0
  • Firebase-Messaging-Service-(Push-Messaging).md Firebase-Messaging-Service-(Push-Messaging).md +1 -0
  • No files found.
Firebase-Messaging-Service-(Push-Messaging).md 0 → 100644
View page @ 3a695163
Reve SaaS usages firebase messaging for receiving call and message when not registered with server.
To receive call and message you must integrate fire base messaging to your app.
For that case there can be 2 case :
1. You need firebase messaging for your core application.
2. You actually do not need firebase messaging for your core application but need it for Reve Saas.
In both case you need to integrate the firebase service in your app according to the [official documentation](https://firebase.google.com/docs/android/setup).
After you set up the firebase messaging in your app, you handle the following cases.
**1. You need firebase messaging for your core application:**
Reve Saas has its own Firebase messaging service in the package. So, if you need firebase messaging in your core app, you have created a `Service `in your app that extends `FirebaseMessagingService`.
To get fire base to work in Reve SaaS, you just extend `ReveFirebaseMessagingService` instead of `FirebaseMessagingService` in your app.
**Sample code:**
```
public class AppFirebaseMessagingService extends ReveFirebaseMessagingService {
@Override
public void onNewToken(String refreshedToken) {
super.onNewToken(refreshedToken);
//your code below
}
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
super.onMessageReceived(remoteMessage);
//your code below
}
}
```
**2. You actually do not need firebase messaging for your core application but need it for Reve SaaS**
In that case, you do **NOT** need to do the following:
1. Declare firebase dependency in gradle file
2. Declare any firebase service in your app
But, you must **NOT FORGET** to declare google service plugin at the end gradle file.
`apply plugin: 'com.google.gms.google-services'`
Clone repository
  • Configure SaaS module
  • Firebase Messaging Service (Push Messaging)
  • Get chat backup restore to work
  • Get maps service to work
  • Opening Chat
  • Opening the SaaS dashboard
  • Prepare your project
  • Starting a Call
  • Starting the SaaS service
  • Home