forked from phonegap/phonegap-plugin-push
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proxy message event handle between push plugin and braze
- Loading branch information
Javier Vieira
committed
Aug 15, 2020
1 parent
87a8132
commit 0b62cb1
Showing
2 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.adobe.phonegap.push; | ||
|
||
import com.appboy.AppboyFirebaseMessagingService; | ||
import com.google.firebase.messaging.RemoteMessage; | ||
|
||
public class ProxyFCMService extends FCMService { | ||
|
||
@Override | ||
public void onMessageReceived(RemoteMessage remoteMessage) { | ||
boolean isForBraze = AppboyFirebaseMessagingService.handleBrazeRemoteMessage(this, remoteMessage); | ||
if (!isForBraze) { | ||
super.onMessageReceived(remoteMessage); | ||
} | ||
} | ||
} |