Push Notifications
Integrate your app with Gameball push notifications and interactive in-app messaging.
Gameball uses Firebase to deliver maximum experience in your app. This includes push notifications, interactive in-app messaging.

Configure Gameball With Your Firebase

Before you start, you must configure your Firebase on your Gameball account. Follow the steps in Configure your Firebase account on Gameball for mobile push notifications article from our Help Center related to push notifications.

Handling Push Notifications Integration

Add the following code line to the first line of the onMessageReceived method in your FirebaseMessagingService class.
1
@Override
2
public void onMessageReceived(RemoteMessage remoteMessage) {
3
if (GameBallApp.getInstance(this).isGameBallNotification(remoteMessage))
4
return;
5
.
6
.
7
.
8
/*Your code here*/
9
}
Copied!
Your users can now receive push notifications from Gameball.
Last modified 2mo ago