You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,34 @@ const options = {
61
61
RNCallKeep.setup(options).then(accepted=> {});
62
62
```
63
63
64
+
iOS only.
65
+
66
+
Alternative on iOS you can perform setup in `AppDelegate.m`. Doing this allows capturing events prior to the react native event bridge being up. Please be aware that calling setup in `AppDelegate.m` will ignore any subsequent calls to `RNCallKeep.setup();`.
Any additional permissions you'd like your app to have at first launch. Can be used to simplify permission flows and avoid
95
123
multiple popups to the user at different times.
96
-
124
+
97
125
`setup` calls internally `registerPhoneAccount` and `registerEvents`.
98
126
99
127
## Constants
@@ -641,6 +669,8 @@ Called as soon as JS context initializes if there were some actions performed by
641
669
642
670
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.
643
671
672
+
In order for this event to reliably fire, it's necessary to perform setup in `AppDelegate.m`
673
+
644
674
**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.**
0 commit comments