evollu / evollu/react-native-fcm

undefine is not an object NativeModules.RNLocalNotifications.createNotification android

Open
#1,105 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.7k
Forks
661
PR merge metrics
No merged PRs in 30d

Description

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",
```

![Screenshot_20190313-172550](https://user-images.githubusercontent.com/18139594/54277236-50e39500-45b5-11e9-80c7-9469368fc89a.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.