forked from lomocoin/react-native-lomocoin-rongcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
76 additions
and
3 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
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
24 changes: 24 additions & 0 deletions
24
android/src/main/java/com/lomocoin/imlib/RongNotificationReceiver.java
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,24 @@ | ||
package com.lomocoin.imlib; | ||
|
||
import android.content.Context; | ||
import android.util.Log; | ||
|
||
import io.rong.push.notification.PushMessageReceiver; | ||
import io.rong.push.notification.PushNotificationMessage; | ||
|
||
/** | ||
* Created by qiaojiayan on 17/10/31. | ||
*/ | ||
|
||
public class RongNotificationReceiver extends PushMessageReceiver { | ||
@Override | ||
public boolean onNotificationMessageArrived(Context context, PushNotificationMessage pushNotificationMessage) { | ||
Log.e("isme","rong msg init"); | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean onNotificationMessageClicked(Context context, PushNotificationMessage pushNotificationMessage) { | ||
return false; | ||
} | ||
} |