React-native-onesignal: OneSignal only supports `received`, `opened`, and `ids` events

Created on 29 Mar 2018  路  2Comments  路  Source: OneSignal/react-native-onesignal

I am getting following error on start of error in development.

Invariant Violation: OneSignal only supports `received`, `opened`, and `ids` events
This error is located at:
    in ReduxWrapper (at renderApplication.js:35)
    in RCTView (at View.js:112)
    in View (at AppContainer.js:102)
    in RCTView (at View.js:112)
    in View (at AppContainer.js:122)
    in AppContainer (at renderApplication.js:34)

Most helpful comment

In ReduxWrapper following event called:

OneSignal.removeEventListener('registered', this.onRegistered);

All 2 comments

In ReduxWrapper following event called:

OneSignal.removeEventListener('registered', this.onRegistered);

We removed the registered event since it isn't (and never was) used

Thank you for posting your solution to it!

Was this page helpful?
0 / 5 - 0 ratings