Commit 8b2328f4 authored by Libin Lu's avatar Libin Lu

fix example

parent 8f60cc28
......@@ -30,6 +30,7 @@ export default class App extends Component {
showLocalNotification() {
FCM.presentLocalNotification({
vibrate: 500,
title: 'Hello',
body: 'Test Notification',
priority: "high",
......
......@@ -19,9 +19,11 @@ export default class PushController extends Component {
this.props.onChangeToken(token);
});
if(Platform.OS === 'ios'){
FCM.getAPNSToken().then(token => {
console.log("APNS TOKEN (getFCMToken)", token);
});
}
FCM.getInitialNotification().then(notif => {
console.log("INITIAL NOTIFICATION", notif)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment