Skip to content

Commit 8bdddcc

Browse files
authored
Merge pull request #333 from react-native-webrtc/note_for_didLoadWithEvents
doc: add note for didLoadWithEvents in readme
2 parents 0bdd1e7 + 7040d6d commit 8bdddcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,8 @@ Called as soon as JS context initializes if there were some actions performed by
607607

608608
Since iOS 13, you must display incoming call on receiving PushKit push notification. But if app was killed, it takes some time to create JS context. If user answers the call (or ends it) before JS context has been initialized, user actions will be passed as events array of this event. Similar situation can happen if user would like to start a call from Recents or similar iOS app, assuming that your app was in killed state.
609609

610+
**NOTE: You still need to subscribe / handle the rest events as usuall. This is just a helper whcih cache and propagate early fired events if and only if for "the native events which DID fire BEFORE js bridge is initialed", it does NOT mean this will have events each time when the app reopened.**
611+
610612
```js
611613
// register `didLoadWithEvents` somewhere early in your app when it is ready to handle callkeep events.
612614

0 commit comments

Comments
 (0)