undefine is not an object NativeModules.RNLocalNotifications.createNotification android
ZeroCool00 opened this issue · comments
Sagar chavada commented
Working good in IOS, but in android its not working
i follow each step carefully,
after react-native link, i check gradle file, if its link sucessfully. everything is at place. still not working.
FCM.scheduleLocalNotification({
id: "testnotif",
fire_date: new Date().getTime() + 20000,
vibrate: 500,
title: "Hello",
body: "Test Scheduled Notification",
sub_text: "sub text",
priority: "high",
large_icon:
"https://image.freepik.com/free-icon/small-boy-cartoon_318-38077.jpg",
show_in_foreground: true,
picture:
"https://firebase.google.com/_static/af7ae4b3fc/images/firebase/lockup.png",
wake_screen: true,
extra1: { a: 1 },
extra2: 1
});
}
when i try to call this function. this error appear.
"react": "16.6.3",
"react-native": "0.57.8",
"react-native-fcm": "^16.2.4",