Skip to content

Commit

Permalink
doc: add note for didLoadWithEvents in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcpoiu authored Dec 4, 2020
1 parent 0bdd1e7 commit 7040d6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,8 @@ Called as soon as JS context initializes if there were some actions performed by

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.

**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.**

```js
// register `didLoadWithEvents` somewhere early in your app when it is ready to handle callkeep events.

Expand Down

0 comments on commit 7040d6d

Please sign in to comment.