Skip to content

Commit

Permalink
use jpush-react-native-v0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
KenChoi1992 committed Jul 6, 2016
1 parent fe2c8e7 commit 39653cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion react-native-android/push_activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const {
NativeModules,
ScrollView,
StyleSheet,
DeviceEventEmitter
DeviceEventEmitter,
} = ReactNative;

import JPushModule from 'jpush-react-native';
Expand Down Expand Up @@ -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!");
})
}

Expand Down

0 comments on commit 39653cc

Please sign in to comment.