diff --git a/Examples/simple-fcm-client/app/App.js b/Examples/simple-fcm-client/app/App.js
index 3fcac7a96ea35efd23d7b540083ef9113c2807e7..058fcbf7bbfd8a10a5b9b2d9fba1a84135fb5970 100644
--- a/Examples/simple-fcm-client/app/App.js
+++ b/Examples/simple-fcm-client/app/App.js
@@ -183,7 +183,7 @@ export default class App extends Component {
this.showLocalNotificationWithAction(token)} style={styles.button}>
- Show Local Notification with Action
+ Show Local Notification with Action (iOS)
this.scheduleLocalNotification()} style={styles.button}>
diff --git a/Examples/simple-fcm-client/app/Listeners.js b/Examples/simple-fcm-client/app/Listeners.js
index 866a5bf12cbd63e3bfe5f8513ddedac54229f23b..25acd5c9e84772e264760be53d59beca0630f694 100644
--- a/Examples/simple-fcm-client/app/Listeners.js
+++ b/Examples/simple-fcm-client/app/Listeners.js
@@ -26,6 +26,9 @@ export function registerAppListener(){
if(notif._actionIdentifier === 'com.myidentifi.fcm.text.reply'){
alert("User replied: "+notif._userText);
}
+ if(notif._actionIdentifier === 'com.myidentifi.fcm.text.dismiss'){
+ alert("User clicked Dismiss");
+ }
}
if(Platform.OS ==='ios'){
@@ -74,6 +77,12 @@ FCM.setNotificationCategories([
textInputPlaceholder: 'Say something',
intentIdentifiers: [],
options: NotificationActionOption.AuthenticationRequired
+ },
+ {
+ type: NotificationActionType.Default,
+ id: 'com.myidentifi.fcm.text.dismiss',
+ title: 'Dismiss',
+ intentIdentifiers: []
}
],
options: [NotificationCategoryOption.CustomDismissAction, NotificationCategoryOption.PreviewsShowTitle]