@robono/calling-react-native 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/SBOM.spdx.json +22 -22
- package/dist/appearance.js +1 -1
- package/dist/messenger.js +32 -5
- package/dist/native.d.ts +1 -1
- package/dist/native.js +13 -3
- package/dist/versions.d.ts +2 -2
- package/dist/versions.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
## 0.
|
|
1
|
+
## 0.9.2
|
|
2
|
+
|
|
3
|
+
Older saved appearances default optional video-background labels without blocking ordinary calling. iPhone incoming-call cleanup leaves the system-owned audio session alone, including hangup cues and a following incoming call.
|
|
2
4
|
|
|
3
5
|
## 0.9.1
|
|
4
6
|
|
|
@@ -8,6 +10,8 @@
|
|
|
8
10
|
|
|
9
11
|
Adds supplied recording/caption controls, local camera/microphone/speaker checks and on-device background blur for iPhone and Android. Native rebuild required for blur. Presentation-only installations keep WebRTC optional.
|
|
10
12
|
|
|
13
|
+
## 0.8.0
|
|
14
|
+
|
|
11
15
|
Add an optional on-demand connection-details panel for direct and group calls, with foreground-only sampling and cleanup.
|
|
12
16
|
|
|
13
17
|
## 0.7.0 — release candidate
|
package/SBOM.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@robono/calling-react-native@0.9.
|
|
6
|
-
"documentNamespace": "https://robono.com/sbom/calling-react-native/0.9.
|
|
5
|
+
"name": "@robono/calling-react-native@0.9.3",
|
|
6
|
+
"documentNamespace": "https://robono.com/sbom/calling-react-native/0.9.3/f8e71d64ff823acacea2f7b5e02f04fa8c1965a9",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-11-
|
|
8
|
+
"created": "2026-11-06T15:14:00.148Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Organization: Robono (support@robono.com)"
|
|
11
11
|
]
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
{
|
|
15
15
|
"name": "@robono/calling-react-native",
|
|
16
16
|
"SPDXID": "SPDXRef-Package",
|
|
17
|
-
"versionInfo": "0.9.
|
|
17
|
+
"versionInfo": "0.9.3",
|
|
18
18
|
"downloadLocation": "NOASSERTION",
|
|
19
19
|
"filesAnalyzed": true,
|
|
20
20
|
"packageVerificationCode": {
|
|
21
|
-
"packageVerificationCodeValue": "
|
|
21
|
+
"packageVerificationCodeValue": "f8e71d64ff823acacea2f7b5e02f04fa8c1965a9"
|
|
22
22
|
},
|
|
23
23
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
24
24
|
"licenseDeclared": "LicenseRef-RobonoSDK",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"LicenseRef-RobonoSDK"
|
|
27
27
|
],
|
|
28
28
|
"copyrightText": "Copyright (c) 2026 Add to Loop LLC.",
|
|
29
|
-
"comment": "Host-supplied peers (not bundled): {\"@robono/calling\":\"^0.6.
|
|
29
|
+
"comment": "Host-supplied peers (not bundled): {\"@robono/calling\":\"^0.6.2\",\"react\":\">=18.2 <20\",\"react-native\":\">=0.76 <1\",\"react-native-svg\":\">=15 <16\",\"react-native-safe-area-context\":\">=5 <6\",\"react-native-webrtc\":\">=124 <125\",\"react-native-incall-manager\":\">=4.2 <5\",\"expo-audio\":\">=1.1.1 <2 || >=55 <57\",\"expo-crypto\":\">=15.0.9 <16 || >=55 <57\",\"expo-notifications\":\">=0.32.17 <0.33 || >=55 <57\",\"expo-asset\":\">=12 <13 || >=55 <57\"}"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"files": [
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"checksums": [
|
|
37
37
|
{
|
|
38
38
|
"algorithm": "SHA256",
|
|
39
|
-
"checksumValue": "
|
|
39
|
+
"checksumValue": "d7ef80202def5a1bc19217ec5acf853f9694f426811635213da0521b7f3a2407"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"algorithm": "SHA1",
|
|
43
|
-
"checksumValue": "
|
|
43
|
+
"checksumValue": "21ccad285fa013fa743fcd174a8047ced2cf72c0"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -5204,11 +5204,11 @@
|
|
|
5204
5204
|
"checksums": [
|
|
5205
5205
|
{
|
|
5206
5206
|
"algorithm": "SHA256",
|
|
5207
|
-
"checksumValue": "
|
|
5207
|
+
"checksumValue": "c03e6d74591492d164f83ae9b7c462b4fae85e9388af886a7f3abdea3bf9cdbe"
|
|
5208
5208
|
},
|
|
5209
5209
|
{
|
|
5210
5210
|
"algorithm": "SHA1",
|
|
5211
|
-
"checksumValue": "
|
|
5211
|
+
"checksumValue": "9f08890910a7d2e8dee0fe40dd866b03e65f1cf4"
|
|
5212
5212
|
}
|
|
5213
5213
|
],
|
|
5214
5214
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -5850,11 +5850,11 @@
|
|
|
5850
5850
|
"checksums": [
|
|
5851
5851
|
{
|
|
5852
5852
|
"algorithm": "SHA256",
|
|
5853
|
-
"checksumValue": "
|
|
5853
|
+
"checksumValue": "aafc997af1ba710d8926b1b92cc07aec9ce1a6b3938fc389f7c77f1a160b6d36"
|
|
5854
5854
|
},
|
|
5855
5855
|
{
|
|
5856
5856
|
"algorithm": "SHA1",
|
|
5857
|
-
"checksumValue": "
|
|
5857
|
+
"checksumValue": "f944021285c0048bee85e50b475829c0b6d7e96b"
|
|
5858
5858
|
}
|
|
5859
5859
|
],
|
|
5860
5860
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -5907,11 +5907,11 @@
|
|
|
5907
5907
|
"checksums": [
|
|
5908
5908
|
{
|
|
5909
5909
|
"algorithm": "SHA256",
|
|
5910
|
-
"checksumValue": "
|
|
5910
|
+
"checksumValue": "e3b23b04e51556737be79fe8bbd6e22ffd39afcf2ae2d19422a130d9b65854e1"
|
|
5911
5911
|
},
|
|
5912
5912
|
{
|
|
5913
5913
|
"algorithm": "SHA1",
|
|
5914
|
-
"checksumValue": "
|
|
5914
|
+
"checksumValue": "304d430fdc8b3a76031a9a0cf80b3dea8d5311f1"
|
|
5915
5915
|
}
|
|
5916
5916
|
],
|
|
5917
5917
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -5926,11 +5926,11 @@
|
|
|
5926
5926
|
"checksums": [
|
|
5927
5927
|
{
|
|
5928
5928
|
"algorithm": "SHA256",
|
|
5929
|
-
"checksumValue": "
|
|
5929
|
+
"checksumValue": "8e08bbb6c9f06823326e5b7cefa06e3e983a48492e6d8a6bbbf788ad6c72e7a6"
|
|
5930
5930
|
},
|
|
5931
5931
|
{
|
|
5932
5932
|
"algorithm": "SHA1",
|
|
5933
|
-
"checksumValue": "
|
|
5933
|
+
"checksumValue": "9cf661292dfa5641872e2916f7724ff889cab342"
|
|
5934
5934
|
}
|
|
5935
5935
|
],
|
|
5936
5936
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6211,11 +6211,11 @@
|
|
|
6211
6211
|
"checksums": [
|
|
6212
6212
|
{
|
|
6213
6213
|
"algorithm": "SHA256",
|
|
6214
|
-
"checksumValue": "
|
|
6214
|
+
"checksumValue": "71d3d14bd830f03b24d7db7a47e3a9d54a44a859481df717aebd0dcea5464f62"
|
|
6215
6215
|
},
|
|
6216
6216
|
{
|
|
6217
6217
|
"algorithm": "SHA1",
|
|
6218
|
-
"checksumValue": "
|
|
6218
|
+
"checksumValue": "ed7c4275a02a879fcd9532dc2bb7d7e14c42baac"
|
|
6219
6219
|
}
|
|
6220
6220
|
],
|
|
6221
6221
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6230,11 +6230,11 @@
|
|
|
6230
6230
|
"checksums": [
|
|
6231
6231
|
{
|
|
6232
6232
|
"algorithm": "SHA256",
|
|
6233
|
-
"checksumValue": "
|
|
6233
|
+
"checksumValue": "f1206233f7756d2e634be2307a272018bf5ad7dbe22f9815240ab8bbd178d403"
|
|
6234
6234
|
},
|
|
6235
6235
|
{
|
|
6236
6236
|
"algorithm": "SHA1",
|
|
6237
|
-
"checksumValue": "
|
|
6237
|
+
"checksumValue": "4f1fbbee36d0230fcf7b057160d22c9a083f52a2"
|
|
6238
6238
|
}
|
|
6239
6239
|
],
|
|
6240
6240
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6591,11 +6591,11 @@
|
|
|
6591
6591
|
"checksums": [
|
|
6592
6592
|
{
|
|
6593
6593
|
"algorithm": "SHA256",
|
|
6594
|
-
"checksumValue": "
|
|
6594
|
+
"checksumValue": "0677303379499d46f84a814a203ec834a3bf4572be387131d2a6ceebc844fac2"
|
|
6595
6595
|
},
|
|
6596
6596
|
{
|
|
6597
6597
|
"algorithm": "SHA1",
|
|
6598
|
-
"checksumValue": "
|
|
6598
|
+
"checksumValue": "ee207aab0d2f09d768f9fc99c6c8afd4a697fd94"
|
|
6599
6599
|
}
|
|
6600
6600
|
],
|
|
6601
6601
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
package/dist/appearance.js
CHANGED
|
@@ -132,7 +132,7 @@ export function validateCallingAppearance(input) {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
for (const key of Object.keys(callingText)) {
|
|
135
|
-
const x = v.labels?.[key] ?? (['more', 'videoCall', 'incomingVideo', 'cameraOn', 'cameraOff', 'switchCamera', 'shareScreen', 'stopSharing', 'sharingScreen'].includes(key) ? callingText[key] : undefined);
|
|
135
|
+
const x = v.labels?.[key] ?? (['backgroundBlur', 'backgroundUnavailable', 'more', 'videoCall', 'incomingVideo', 'cameraOn', 'cameraOff', 'switchCamera', 'shareScreen', 'stopSharing', 'sharingScreen'].includes(key) ? callingText[key] : undefined);
|
|
136
136
|
if (typeof x !== "string" || !x.trim() ||
|
|
137
137
|
x.length >
|
|
138
138
|
([
|
package/dist/messenger.js
CHANGED
|
@@ -7,16 +7,35 @@ import { parseCallingNotification } from './notifications.js';
|
|
|
7
7
|
export function createMessengerCalling(options) {
|
|
8
8
|
let state = { direct: null, group: null, features: { voice: false, video: false }, loading: false, error: '' };
|
|
9
9
|
let closed = false, pending = null, transport, timer;
|
|
10
|
+
let recoveryTimer, stableTimer, recoveryFailures = 0;
|
|
10
11
|
let adapters = [], detach = [];
|
|
11
12
|
const dismissed = new Set();
|
|
12
13
|
const listeners = new Set();
|
|
13
14
|
const emit = (patch) => { state = { ...state, ...patch }; listeners.forEach(fn => fn()); };
|
|
14
15
|
const active = () => [state.direct, state.group].some(c => c && !['idle', 'error'].includes(c.getSnapshot().phase));
|
|
15
16
|
const deviceCheck = options.deviceCheck?.(active);
|
|
16
|
-
const
|
|
17
|
-
|
|
17
|
+
const recover = (status) => {
|
|
18
|
+
if (closed || status === 403 || recoveryTimer || recoveryFailures >= 6)
|
|
19
|
+
return;
|
|
20
|
+
clearTimeout(stableTimer);
|
|
21
|
+
const delay = Math.min(60000, 1000 * 2 ** recoveryFailures++);
|
|
22
|
+
emit({ error: 'Reconnecting calls…' });
|
|
23
|
+
const attempt = () => { recoveryTimer = undefined; if (closed)
|
|
24
|
+
return; if (active()) {
|
|
25
|
+
recoveryTimer = setTimeout(attempt, 15000);
|
|
26
|
+
return;
|
|
27
|
+
} void start().catch(() => { }); };
|
|
28
|
+
recoveryTimer = setTimeout(attempt, delay);
|
|
29
|
+
};
|
|
30
|
+
const watchCheck = (controller) => controller.subscribe(() => {
|
|
31
|
+
if (deviceCheck?.getSnapshot().phase !== 'idle' && active())
|
|
32
|
+
void deviceCheck?.close();
|
|
33
|
+
if (controller.client.closed && controller.client.state?.listeningStatus === 'session_expired')
|
|
34
|
+
recover(401);
|
|
35
|
+
});
|
|
18
36
|
const release = async () => {
|
|
19
37
|
clearTimeout(timer);
|
|
38
|
+
clearTimeout(stableTimer);
|
|
20
39
|
const controllers = [state.direct, state.group], old = transport, owned = adapters;
|
|
21
40
|
transport = undefined;
|
|
22
41
|
adapters = [];
|
|
@@ -46,6 +65,8 @@ export function createMessengerCalling(options) {
|
|
|
46
65
|
return pending;
|
|
47
66
|
if (transport && Date.now() < transport.expiresAt && !state.direct?.client.closed && !state.group?.client.closed)
|
|
48
67
|
return Promise.resolve();
|
|
68
|
+
clearTimeout(recoveryTimer);
|
|
69
|
+
recoveryTimer = undefined;
|
|
49
70
|
emit({ loading: true, error: '' });
|
|
50
71
|
pending = (async () => {
|
|
51
72
|
await release();
|
|
@@ -82,10 +103,16 @@ export function createMessengerCalling(options) {
|
|
|
82
103
|
await release();
|
|
83
104
|
return;
|
|
84
105
|
}
|
|
106
|
+
const failed = [state.direct, state.group].find(c => c?.client.closed);
|
|
107
|
+
if (failed)
|
|
108
|
+
throw Object.assign(Error('Calling session could not connect.'), { status: failed.client.state?.listeningStatus === 'access_revoked' ? 403 : 401 });
|
|
85
109
|
emit({ loading: false, error: '' });
|
|
110
|
+
stableTimer = setTimeout(() => { recoveryFailures = 0; }, 60000);
|
|
86
111
|
renew();
|
|
87
|
-
})().catch(async (error) => { await release(); if (!closed)
|
|
88
|
-
emit({ loading: false, error: 'Calls could not connect. Check your connection and try again.' });
|
|
112
|
+
})().catch(async (error) => { await release(); if (!closed) {
|
|
113
|
+
emit({ loading: false, error: error?.status === 403 ? 'Calling is no longer allowed.' : 'Calls could not connect. Check your connection and try again.' });
|
|
114
|
+
recover(error?.status);
|
|
115
|
+
} throw error; }).finally(() => { pending = null; });
|
|
89
116
|
return pending;
|
|
90
117
|
};
|
|
91
118
|
return {
|
|
@@ -133,6 +160,6 @@ export function createMessengerCalling(options) {
|
|
|
133
160
|
await state.direct.call(conversationId, undefined, { kind });
|
|
134
161
|
},
|
|
135
162
|
async dispose() { if (closed)
|
|
136
|
-
return; closed = true; clearTimeout(timer); await deviceCheck?.dispose(); await pending?.catch(() => { }); await release(); listeners.clear(); },
|
|
163
|
+
return; closed = true; clearTimeout(timer); clearTimeout(recoveryTimer); clearTimeout(stableTimer); await deviceCheck?.dispose(); await pending?.catch(() => { }); await release(); listeners.clear(); },
|
|
137
164
|
};
|
|
138
165
|
}
|
package/dist/native.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { CallRuntime } from './runtime.js';
|
|
|
4
4
|
export interface NativeAdapterOptions {
|
|
5
5
|
systemCalling?: NativeSystemCallAudio;
|
|
6
6
|
appearance?: CallingAppearance;
|
|
7
|
-
/** Restore
|
|
7
|
+
/** Restore app-owned audio after a call. CallKit-owned iOS sessions are released by the system; the next playback/recording operation acquires its normal mode. */
|
|
8
8
|
restoreAudio(): Promise<void>;
|
|
9
9
|
onError(error: Error): void;
|
|
10
10
|
/** Default uses the person's system ringtone. Set 'robono' for the supplied chime. */
|
package/dist/native.js
CHANGED
|
@@ -102,7 +102,11 @@ export function createNativeCallAdapters(options) {
|
|
|
102
102
|
async play(kind, playback = {}) {
|
|
103
103
|
pause();
|
|
104
104
|
current = kind;
|
|
105
|
-
|
|
105
|
+
// CallKit owns incoming-call cues and its asynchronous end transition too.
|
|
106
|
+
// Playing/seeking an Expo end cue during that transition can fail with !pri.
|
|
107
|
+
if (Platform.OS === 'ios' && (systemSession || options.systemCalling?.active()))
|
|
108
|
+
return;
|
|
109
|
+
if (options.systemCalling?.active() && playback.event === 'incoming')
|
|
106
110
|
return;
|
|
107
111
|
if (playback.event === 'incoming' && !options.appearance && kind === 'ringing' && options.ringtone !== 'robono') {
|
|
108
112
|
InCallManager.startRingtone('_DEFAULT_', [0, 350, 900], 'ambient', 0);
|
|
@@ -125,7 +129,8 @@ export function createNativeCallAdapters(options) {
|
|
|
125
129
|
if (audioOwner !== owner)
|
|
126
130
|
return;
|
|
127
131
|
try {
|
|
128
|
-
|
|
132
|
+
const borrowedSystemSession = systemSession || (Platform.OS === 'ios' && options.systemCalling?.active());
|
|
133
|
+
if (!borrowedSystemSession)
|
|
129
134
|
InCallManager.stop();
|
|
130
135
|
systemSession = false;
|
|
131
136
|
session = '';
|
|
@@ -140,7 +145,12 @@ export function createNativeCallAdapters(options) {
|
|
|
140
145
|
await options.runtime?.end();
|
|
141
146
|
}
|
|
142
147
|
finally {
|
|
143
|
-
|
|
148
|
+
// We never changed Expo's mode for a CallKit-owned session. Restoring
|
|
149
|
+
// it here would replace the system session before didDeactivate, or
|
|
150
|
+
// while a following incoming call is already ringing. The next app
|
|
151
|
+
// playback/recording operation acquires its own normal audio mode.
|
|
152
|
+
if (!borrowedSystemSession)
|
|
153
|
+
await options.restoreAudio();
|
|
144
154
|
}
|
|
145
155
|
}
|
|
146
156
|
}
|
package/dist/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const mobileVersion = "0.9.
|
|
2
|
-
export declare const engineVersion = "0.6.
|
|
1
|
+
export declare const mobileVersion = "0.9.3";
|
|
2
|
+
export declare const engineVersion = "0.6.2";
|
package/dist/versions.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated from the package manifests by build.mjs.
|
|
2
|
-
export const mobileVersion = "0.9.
|
|
3
|
-
export const engineVersion = "0.6.
|
|
2
|
+
export const mobileVersion = "0.9.3";
|
|
3
|
+
export const engineVersion = "0.6.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robono/calling-react-native",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Optional branded calling screens, sounds and native audio adapters for Robono calling.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@types/react": "~19.2.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@robono/calling": "^0.6.
|
|
84
|
+
"@robono/calling": "^0.6.2",
|
|
85
85
|
"react": ">=18.2 <20",
|
|
86
86
|
"react-native": ">=0.76 <1",
|
|
87
87
|
"react-native-svg": ">=15 <16",
|