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!"); }) }