react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

iOS cold start onOpened not triggered (Again!)

Open haiyamicode opened this issue 8 years ago • 2 comments

Pretty much the same issue as #332 , but for me now the suggested solutions do not work anymore. No matter how early I call addEventListener (right at the start of App.js), my onOpened callback does not get called. I tried adding OneSignal.configure before it and tried many ways, still the same. This only happens on iOS by the way.

haiyamicode avatar Apr 23 '18 12:04 haiyamicode

@wilonth I am not able to reproduce your issue, whenever I try it with our demo/example project, it works just fine. You are using onesignal-react-native version 3.1.4 correct?

How do you know for sure that the opened event function is never firing?

Can you send some of the code you are using...?

Nightsd01 avatar Apr 25 '18 20:04 Nightsd01

Nvm I made a mistake. I put OneSignal's call at the very end of didFinishLaunchingWithOptions and that was wrong.

haiyamicode avatar Apr 27 '18 15:04 haiyamicode