Skip to content

Commit 39653cc

Browse files
author
KenChoi1992
committed
use jpush-react-native-v0.0.11
1 parent fe2c8e7 commit 39653cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

react-native-android/push_activity.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {
1313
NativeModules,
1414
ScrollView,
1515
StyleSheet,
16-
DeviceEventEmitter
16+
DeviceEventEmitter,
1717
} = ReactNative;
1818

1919
import JPushModule from 'jpush-react-native';
@@ -85,6 +85,9 @@ export default class PushActivity extends React.Component {
8585
});
8686
JPushModule.addReceiveNotificationListener((message) => {
8787
console.log("receive notification: " + message);
88+
});
89+
JPushModule.addReceiveOpenNotificationListener((map) => {
90+
console.log("Opening notification!");
8891
})
8992
}
9093

0 commit comments

Comments
 (0)