Skip to content

Commit 6ee1e7d

Browse files
KenChoiKenChoi
authored andcommitted
modify demo
1 parent 3cde6fe commit 6ee1e7d

File tree

8 files changed

+379
-0
lines changed

8 files changed

+379
-0
lines changed

example/android/app/src/main/assets/index.android.bundle

Lines changed: 366 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
�iԨ���\�]w�[�� �a�d
134 Bytes
Loading
100 Bytes
Loading
134 Bytes
Loading
167 Bytes
Loading
207 Bytes
Loading

example/react-native-android/push_activity.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,18 @@ export default class PushActivity extends React.Component {
115115
JPushModule.addGetRegistrationIdListener((registrationId) => {
116116
console.log("Device register succeed, registrationId " + registrationId);
117117
});
118+
// var notification = {
119+
// buildId: 1,
120+
// id: 5,
121+
// title: 'jpush',
122+
// content: 'This is a test!!!!',
123+
// extra: {
124+
// key1: 'value1',
125+
// key2: 'value2'
126+
// },
127+
// fireTime: 2000,
128+
// }
129+
// JPushModule.sendLocalNotification(notification);
118130
}
119131

120132
componentWillUnmount() {

0 commit comments

Comments
 (0)