zetavg / react-native-system-notification

Android system notifications for React Native. Supports push notifications with GCM integrated.
https://www.npmjs.com/package/react-native-system-notification
244 stars 101 forks source link

Possible Unhandled Promise Rejection #34

Open reneviering opened 8 years ago

reneviering commented 8 years ago

Hey,

I'm just going to integrate react-native-system-notification.

If i run Notification.create({ subject: 'Hey', message: 'Yo! Hello world.' });, no notification is shown. Instead i get this warning:

Possible Unhandled Promise Rejection (id: 0): Cannot read property 'rGetApplicationName' of undefined TypeError: Cannot read property 'rGetApplicationName' of undefined at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:71431:19 at tryCallTwo (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:10869:1) at doResolve (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:11024:9) at new Promise (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:10890:1) at Object.Notification.create (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:71430:8) at Object.addSurgeryDate (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:67712:41) at ProxyComponent._reactNative4.default.createClass.acceptChoosenDate (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:71797:26) at ProxyComponent.proxiedMethod [as acceptChoosenDate] (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:4872:22) at ProxyComponent.React.createClass.touchableHandlePress (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:52152:32) at ProxyComponent.proxiedMethod [as touchableHandlePress] (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=true&minify=false:4872:22)

Do you have any idea on that? I performed the setup as described.

jaimecorrea commented 8 years ago

It happend to me as well... any updates?

kiatweitan commented 8 years ago

I'm facing the same issue, this only happened after I installed react-native-fcm