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
feat: make push notification listeners more flexible for easier debugging (#1542)
- [x] Removed notification listeners inside the SDK, but export them as
utility functions
- [x] Documentation guides how to add own listeners using the utility
functions. This fixes#1447
- [x] Dogfood apps are updated
- [x] Added doc on how to add incoming/outgoing call UIs on app root
level
- [x] throw error when deprecated navigation functions for ringing calls
are used
- [x] add section about how to add sound to ringing calls on foreground
- [ ] make a 1.3 release
Copy file name to clipboardExpand all lines: packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/03-ringing.mdx
+46-31Lines changed: 46 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,50 +44,65 @@ The caller will automatically join the call once the first callee accepts the ca
44
44
The call will automatically stop if every callee rejects the call.
45
45
46
46
:::note
47
-
When ring is true, a push notification will be sent to the members, provided their app have the required setup.
47
+
When ring is true, a **push notification** will be sent to the members, provided their app have the required setup.
48
48
For more details around push notifications, please check [this page](../../advanced/push-notifications/overview).
49
49
:::
50
50
51
51
## Watch for incoming and outgoing calls
52
52
53
-
The easiest way to watch for incoming and outgoing calls is to use the `useCalls` hook.
53
+
The easiest way to watch for incoming and outgoing calls is to use the `useCalls` hook and the [`RingingCallContent`](../../ui-components/call/ringing-call-content) component.
**Important**: Make sure that the ringing calls are watched in the root component of your app. This makes sure that in whichever screen the user is in, or if the app was opened from a push notification it is shown. Below is an example of how to watch for ringing calls in the root component of your App.
In the above example, the component `RingingCalls` renders over the rest of the App whenever there is a incoming or outgoing call. Alternatively you can use a Modal view or Dialog to show there is a ringing call over the rest of your app.
105
+
91
106
## Canceling a call
92
107
93
108
A caller can cancel an outgoing call until the first callee accepts the call. Canceling a call will stop the signaling flow.
0 commit comments