Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefine is not an object NativeModules.RNLocalNotifications.createNotification android #1105

Open
ZeroCool00 opened this issue Mar 13, 2019 · 0 comments

Comments

@ZeroCool00
Copy link

ZeroCool00 commented Mar 13, 2019

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

@ZeroCool00 ZeroCool00 changed the title RNLocalNotification undefine is not an object NativeModules.RNLocalNotifications.createNotification android Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant