From 39653ccf853ac2fd57447f6437c7cc76729d4a4e Mon Sep 17 00:00:00 2001 From: KenChoi1992 Date: Wed, 6 Jul 2016 13:59:59 +0800 Subject: [PATCH] use jpush-react-native-v0.0.11 --- react-native-android/push_activity.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/react-native-android/push_activity.js b/react-native-android/push_activity.js index 520fda3f..9da4ed9f 100644 --- a/react-native-android/push_activity.js +++ b/react-native-android/push_activity.js @@ -13,7 +13,7 @@ const { NativeModules, ScrollView, StyleSheet, - DeviceEventEmitter + DeviceEventEmitter, } = ReactNative; import JPushModule from 'jpush-react-native'; @@ -85,6 +85,9 @@ export default class PushActivity extends React.Component { }); JPushModule.addReceiveNotificationListener((message) => { console.log("receive notification: " + message); + }); + JPushModule.addReceiveOpenNotificationListener((map) => { + console.log("Opening notification!"); }) }