diff --git a/Examples/simple-fcm-client/app/App.js b/Examples/simple-fcm-client/app/App.js index a7e5a7de8bec3785189e526f298f2927fab8b36a..a571e2807fce8663ee0bbfbc22ce083bf947fbd8 100644 --- a/Examples/simple-fcm-client/app/App.js +++ b/Examples/simple-fcm-client/app/App.js @@ -30,6 +30,7 @@ export default class App extends Component { showLocalNotification() { FCM.presentLocalNotification({ + vibrate: 500, title: 'Hello', body: 'Test Notification', priority: "high", diff --git a/Examples/simple-fcm-client/app/PushController.js b/Examples/simple-fcm-client/app/PushController.js index f44cde879c052315d9ad7b62d84ab3d0efd65600..9dbdc22200384d8837c242c2c9e15d30ce904f30 100644 --- a/Examples/simple-fcm-client/app/PushController.js +++ b/Examples/simple-fcm-client/app/PushController.js @@ -18,10 +18,12 @@ export default class PushController extends Component { console.log("TOKEN (getFCMToken)", token); this.props.onChangeToken(token); }); - - FCM.getAPNSToken().then(token => { - console.log("APNS TOKEN (getFCMToken)", token); - }); + + if(Platform.OS === 'ios'){ + FCM.getAPNSToken().then(token => { + console.log("APNS TOKEN (getFCMToken)", token); + }); + } FCM.getInitialNotification().then(notif => { console.log("INITIAL NOTIFICATION", notif)