@@ -66,17 +66,29 @@ class MainPage extends Component {
...
@@ -66,17 +66,29 @@ class MainPage extends Component {
showLocalNotification(){
showLocalNotification(){
FCM.presentLocalNotification({
FCM.presentLocalNotification({
vibrate:500,
id:"UNIQ_ID_STRING",// (optional for instant notification)
title:'Hello',
title:"Test Notification with action",// as FCM payload
body:'Click me to detail page,',
body:"Force touch to reply",// as FCM payload (required)
big_text:'Large Text Large Text Large Text Large Text Large Text Large Text Large Text Large Text Large Text Large Text Large Text Large Text Large Text Large Text ',
sound:"bell.mp3",// "default" or filename
priority:"high",
priority:"high",// as FCM payload
sound:"bell.mp3",
click_action:"com.myapp.MyCategory",// as FCM payload - this is used as category identifier on iOS.