@robono/messaging-react-native 0.22.0 → 0.24.0
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/BRIDGE-MESSENGER.md +72 -10
- package/CHANGELOG.md +26 -0
- package/README.md +83 -4
- package/RobonoMessagingRuntime.podspec +14 -0
- package/SBOM.spdx.json +967 -295
- package/android/build.gradle +7 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/com/robono/messaging/RobonoBackupCrypto.java +27 -0
- package/android/src/main/java/com/robono/messaging/RobonoMessagingPackage.java +11 -0
- package/app.plugin.cjs +8 -2
- package/dist/account.d.ts +4 -1
- package/dist/account.js +33 -11
- package/dist/attachment-preview.d.ts +11 -10
- package/dist/attachment-preview.js +15 -12
- package/dist/backup.d.ts +24 -0
- package/dist/backup.js +157 -0
- package/dist/brand.js +4 -4
- package/dist/bubble-design.js +5 -3
- package/dist/chat-options.d.ts +5 -1
- package/dist/chat-options.js +2 -2
- package/dist/contact-directory.d.ts +5 -1
- package/dist/contact-directory.js +11 -3
- package/dist/conversation-details.js +1 -1
- package/dist/delivery-bar.d.ts +2 -1
- package/dist/delivery-bar.js +2 -2
- package/dist/directory-navigation.d.ts +25 -0
- package/dist/directory-navigation.js +69 -0
- package/dist/expo-backup-crypto.d.ts +3 -0
- package/dist/expo-backup-crypto.js +17 -0
- package/dist/expo-backup-passkeys.d.ts +7 -0
- package/dist/expo-backup-passkeys.js +22 -0
- package/dist/expo-backup-settings.d.ts +4 -0
- package/dist/expo-backup-settings.js +41 -0
- package/dist/expo-bridge.d.ts +6 -0
- package/dist/expo-bridge.js +13 -2
- package/dist/expo-inbox-preferences.d.ts +3 -0
- package/dist/expo-inbox-preferences.js +9 -0
- package/dist/expo-media.js +3 -3
- package/dist/expo-messenger.js +10 -5
- package/dist/expo-notification-cleanup.js +3 -3
- package/dist/expo-notifications.js +7 -3
- package/dist/expo-reviews.d.ts +3 -0
- package/dist/expo-reviews.js +40 -0
- package/dist/expo-screen.d.ts +3 -0
- package/dist/expo-screen.js +87 -45
- package/dist/expo-thumbnails.d.ts +4 -0
- package/dist/expo-thumbnails.js +25 -3
- package/dist/expo.d.ts +4 -0
- package/dist/expo.js +4 -0
- package/dist/forward.js +2 -2
- package/dist/header-colors.d.ts +5 -0
- package/dist/header-colors.js +7 -0
- package/dist/inbox.d.ts +5 -2
- package/dist/inbox.js +25 -53
- package/dist/index.d.ts +8 -5
- package/dist/index.js +78 -36
- package/dist/loading-messages.d.ts +5 -0
- package/dist/loading-messages.js +10 -0
- package/dist/media-access.d.ts +8 -0
- package/dist/media-access.js +6 -1
- package/dist/media-readiness.d.ts +2 -0
- package/dist/media-readiness.js +1 -0
- package/dist/playback-reporting.d.ts +8 -0
- package/dist/playback-reporting.js +32 -0
- package/dist/popup.d.ts +6 -3
- package/dist/popup.js +6 -6
- package/dist/reviews.d.ts +15 -0
- package/dist/reviews.js +204 -0
- package/dist/scheduled.js +5 -5
- package/ios/RobonoBackupCrypto.m +30 -0
- package/package.json +21 -8
package/BRIDGE-MESSENGER.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# Existing Bridge friends in the standard Messenger
|
|
2
2
|
|
|
3
|
-
Bridge
|
|
3
|
+
Shared Bridge Messenger — November 10, 2026. This guide covers the coordinated release versions below.
|
|
4
4
|
|
|
5
|
-
Required versions: `@robono/messaging` **0.
|
|
5
|
+
Required versions: `@robono/messaging` **0.17.0**, `@robono/server` **0.38.0**, and `@robono/messaging-react-native` **0.23.0** (Expo) or `@robono/messaging-web` **0.21.0** (web). Use `@robono/location` **0.4.1** for the screen package's shared appearance helpers; this does not enable Maps or location access.
|
|
6
6
|
|
|
7
|
-
Server: `npm install @robono/server@0.
|
|
7
|
+
Server: `npm install @robono/server@0.38.0`
|
|
8
8
|
|
|
9
|
-
Expo: `npm install @robono/messaging@0.
|
|
9
|
+
Expo: `npm install @robono/messaging@0.17.0 @robono/messaging-react-native@0.23.0 @robono/location@0.4.1`
|
|
10
10
|
|
|
11
|
-
Web: `npm install @robono/messaging@0.
|
|
11
|
+
Web: `npm install @robono/messaging@0.17.0 @robono/messaging-web@0.21.0 @robono/location@0.4.1`
|
|
12
12
|
|
|
13
|
-
The Expo integration uses the existing supported Expo 55/56 native dependencies.
|
|
13
|
+
The Expo integration uses the existing supported Expo 55/56 native dependencies. For managed background notification cleanup, install `expo-task-manager` with `npx expo install expo-task-manager`, keep the Robono notifications plugin, and rebuild if it is not already present. Bridge-only integrations retaining host-created notifications keep their existing push responsibilities. The service endpoint is `https://api.robono.com/v1/bridge/messenger`; a 404 there means the service route is not deployed yet, not that a replacement friend must be created.
|
|
14
14
|
|
|
15
15
|
## What the connector connects
|
|
16
16
|
|
|
@@ -59,7 +59,7 @@ The durable wake covers message creation/change/deletion, receipt changes and co
|
|
|
59
59
|
|
|
60
60
|
`conversationMode="walkie-talkie"` changes presentation, not retention. It does not repost recordings. Bridge history rules remain authoritative; previously expired or retired messages cannot be restored by switching back to full chat.
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
Bridge reactions, threaded replies, polls, groups and scheduled sends remain unavailable in these direct Bridge chats. Delivery/read/heard receipts retain their existing meanings; a heard receipt does not claim complete playback. Basic foreground online status, authorized phrase analysis and detailed playback reports use the explicit host callbacks and configuration described under “November 10 release: presence and reporting” below; they are not enabled merely by connecting a Bridge chat.
|
|
63
63
|
|
|
64
64
|
## Translation and transcripts
|
|
65
65
|
|
|
@@ -126,8 +126,70 @@ Release together: migrations `20261108040000_standard_bridge_messenger.sql` , `2
|
|
|
126
126
|
|
|
127
127
|
Local verification uses synthetic accepted Bridge connections in an isolated service, through the public adapter and standard screens. iPhone and Android checks cover photo, video, document and voice upload/send/download, thumbnails, native voice playback, changing permissions and revoked access. Browser checks cover opening retained history and sending through the standard composer. Service checks cover original IDs, pagination, private access, duplicate prevention after a lost response and recovery after a missed notification. This is not a claim that a new push notification was delivered through Apple's or Google's service in this check.
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
## Faster chat and media opening
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
These versions read local outgoing drafts alongside the authorized history request, skip draft-storage searches for remote attachments, and pause speculative media transfers while the viewer is open. Bridge thumbnails prepare short-lived access to the original media so opening it can avoid another authorization request. Expired access is renewed; explicit Download and Share actions still check permission again.
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
## Website colors
|
|
134
|
+
|
|
135
|
+
Use the customer network’s Features & Preview settings. Save preserves the draft; Go Live applies it. The standard Messenger uses the applied appearance on its next authorized chat load or refresh. This is not an instant push. Explicit appearance supplied by the host app takes precedence, and changing Robono Messenger’s own appearance does not change another customer’s app.
|
|
136
|
+
|
|
137
|
+
## November 9 compatibility and recovery updates
|
|
138
|
+
|
|
139
|
+
- Headless Bridge client: use `@robono/client@0.6.2`. Request timeouts and cancellation return handled errors on Hermes without requiring `DOMException`. Retried writes retain the same idempotency key.
|
|
140
|
+
- Direct calling: use `@robono/calling@0.6.3`. Pass the complete session returned by `RobonoCallingBackend` from `@robono/server`, including `eventsToken`. If an older adapter drops that field, the client exchanges its valid session for a separate event credential once and reuses it on reconnect. The service update is deployed. Keep per-friend authorization on the server.
|
|
141
|
+
- Expo disk maintenance: `configureExpoMessagingCache` and `maintainExpoMessagingCache` are public exports from `@robono/messaging-react-native/expo`. Configure `maxBytes`, `maxAgeMs` and `minFreeBytes`; call maintenance at startup or account changes. `{clearUnused: true}` clears unused SDK copies while retaining active files and drafts. This does not erase customer files or shared operating-system caches, and protected files can exceed the soft limit.
|
|
142
|
+
|
|
143
|
+
### Checking an interrupted translation's charge
|
|
144
|
+
|
|
145
|
+
In `authorizeCost`, save the supplied `receiptToken` with the reservation before returning true. Keep it on the server. Each transcription, translation or spoken-output stage has its own receipt.
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
import {getBridgeLanguageReceipt} from '@robono/server';
|
|
149
|
+
const receipt = await getBridgeLanguageReceipt({
|
|
150
|
+
apiKey: process.env.ROBONO_API_KEY!,
|
|
151
|
+
actorId: reservation.actorId,
|
|
152
|
+
receiptToken: reservation.receiptToken,
|
|
153
|
+
});
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
`completed` means usage was recorded; `saved` indicates whether the result remains stored. `running`, `failed` and `not_started` are not final proof that no charge can occur. Release an uncertain reservation only when `safeToReleaseReservation` is true. A failed receipt lookup or cancelled HTTP request does not authorize releasing it. Receipts expose processing metadata only, never translated text or audio. Ordinary permission checks still apply when retrieving content.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## November 10 release: presence and reporting
|
|
160
|
+
|
|
161
|
+
Release versions: `@robono/server@0.38.0`, `@robono/messaging@0.17.0`, `@robono/messaging-react-native@0.23.0`, `@robono/messaging-web@0.21.0`, `@robono/calling@0.7.0` and `@robono/calling-react-native@0.11.0`. Existing Bridge identity, permissions, receipts and history remain authoritative.
|
|
162
|
+
|
|
163
|
+
### Basic foreground online status
|
|
164
|
+
|
|
165
|
+
The standard chat header now displays authorized basic online status. Each device renews a separate session every 20 seconds; a missing renewal expires within 45 seconds. Closing/backgrounding one device does not clear another foreground device. The shared **Chat options → Hide my online status on all devices** control applies to the account and removes last-seen disclosure as well. Unhiding requires a new foreground update. Typing and private activity details are not exposed by this Bridge contract.
|
|
166
|
+
|
|
167
|
+
Supply `authorizePresence` on `createBridgeMessengerBackendAdapter`. Return `{visibleUntil}` only while the authenticated actor may disclose foreground status; cap that time at the next schedule/permission boundary. An absent callback advertises nothing, and device input cannot choose its own authorization deadline. Ordinary `authorize` still checks every read/update and the response after a held wait. Provider revocation, blocking, suspension and deleted-account checks also apply.
|
|
168
|
+
|
|
169
|
+
For activity outside an open chat, keep one `createBridgePresenceSession` at the signed-in app root, or pass `foregroundPresence:true` to the Expo/web Bridge factory and retain that connection at the app root. Expo AppState and browser visibility start/stop it. Dispose/sign out with the account. The chat wait uses durable revisions and wake hints; heartbeat traffic does not require a second rapid polling loop. Original Robono app builds that do not publish shared Messenger foreground activity remain offline rather than having status inferred from unrelated requests.
|
|
170
|
+
|
|
171
|
+
The shared directory accepts `onlineUntil` on an authorized `MessagingDirectoryContact`. Convert server deadlines to the current device clock as the SDK presence snapshot does, refresh from authorized data, and clear on revocation. The shared row expires its dot locally and never shows it on an unavailable contact. Existing within-network availability remains supported.
|
|
172
|
+
|
|
173
|
+
### Playback events without replacing the player
|
|
174
|
+
|
|
175
|
+
Pass `onPlaybackEvent` to `ExpoMessagingScreen`, `ExpoMessenger`, `WebMessagingScreen`, or the complete web mount options. The supplied audio/video players emit `started`, `paused`, throttled `progress`, `ended`, `completed` and `closed`. Events contain a stable message/conversation ID, actor ID, session ID, event ID, sequence, occurrence time, position, duration, measured played time and foreground-view state. No URL or media bytes enter a report.
|
|
176
|
+
|
|
177
|
+
A preview load is not playback. Seeking does not count skipped content. `completed` requires an actual end and at least 95% measured playback coverage in that session. This is a device observation, not proof of attention, comprehension, identity of the person holding the device, or a new interpretation of read/heard receipts.
|
|
178
|
+
|
|
179
|
+
For managed retention and replay, mount the exported `createPlaybackReportingHandler` with existing `authenticate` and current `authorize` callbacks. Connect `onPlaybackEvent` to `createMessagingPlaybackReporter(...).record`. Supply private persistent storage scoped to integration + user, plus the authenticated endpoint/token callback. The bounded 500-event queue retries, deduplicates stable event IDs and removes events after server acceptance or a permanent validation/permission rejection surfaced through `onError("reporting_rejected")`. A rejected old message cannot block reports for later messages. Handle `onError`; an exhausted queue is not evidence of no activity. Sign-out clears that account's pending queue. A report from a previous account is rejected rather than attributed to the new login.
|
|
180
|
+
|
|
181
|
+
`RobonoPlaybackReportingBackend.events(actorId, cursor, limit)` replays accepted reports for 30 days; persist its cursor and deduplicate event IDs. `erase(actorId)` removes the stored reports. Signed `messaging.playback.changed` webhook hints are queued on end/close, with bounded delivery retries; use replay after a missed hint. This is opt-in reporting, not automatic collection from apps that have not connected the reporter. Activity while the app is closed cannot be inferred from a delivery receipt. Existing Bridge read/heard webhooks continue to cover source receipts independently of whether the host recipient app is open.
|
|
182
|
+
|
|
183
|
+
### Authorized phrase analysis
|
|
184
|
+
|
|
185
|
+
Configure a per-user policy through server-only `RobonoAudioAnalysisBackend.configure(actorId, generation, policy)`. A policy contains a new word-list `revision`, transcription `language`, up to 100 phrases and 1–30 days of result retention. Read its current generation before changing it; use `null` to disable. Configuration alone starts no monitoring, recording, transcription or charge. Use only languages available in the installation's existing transcription catalog; the policy language is supplied to recognition rather than inferred from the user's identity. This release's real-speech acceptance fixture is English; other language quality is not claimed by that check.
|
|
186
|
+
|
|
187
|
+
For an original Bridge voice message, add `authorizePhraseAnalysis` to the existing server adapter. It receives the server-selected policy; approve only after current participant notice/authorization and parental rules are satisfied. Call `client.analyzeVoiceMessage(messageId)` explicitly. The existing `authorizeCost` callback approves any new transcription quote, including zero-cost test work. A phone cannot provide its own word list or bypass that approval. Matching itself introduces no extra billing metric; normal approved transcription pricing applies.
|
|
188
|
+
|
|
189
|
+
For live voice/video calls, this release adds phrase analysis to explicitly consented managed recording with captions. It is not hidden or automatic monitoring, and it does not enable recording for existing customers. Configure the existing recording/transcription features, then select **Check configured words and phrases** when requesting recording. Every participant must accept the phrase-analysis notice; an older client that cannot acknowledge the notice is blocked from approving it. Permission or policy changes stop the session. The requesting network's normal recording/transcription budget and retention rules apply; this path retains the consented recording/transcript as well as the separate match results.
|
|
190
|
+
|
|
191
|
+
Results distinguish `running`, `completed`, `partial` and `unavailable`. A completed empty match list differs from a failed analysis. They include source/call/message identity, word-list revision, language, matched phrase and approximate segment time. Isolated call tracks provide participant-index attribution; this identifies an audio track, not a verified human speaker. Voice-message results have no invented speaker identity. Matching recognizes normalized words across adjacent chunks on the same track, with no cross-speaker joining or substring match such as “danger” inside “dangerous.” Automatic recognition can miss or misrecognize speech.
|
|
192
|
+
|
|
193
|
+
Signed `audio.analysis.changed` hints carry result identifiers, not transcript/matched content. Retrieve authorized results with `RobonoAudioAnalysisBackend.results(actorId, {cursor,limit})`; store the cursor and deduplicate result ID + revision. Durable replay repairs missed webhook delivery. `remove(actorId,id)` removes matched content and leaves a deletion marker so a late retry cannot restore it. Removing a recording also makes its analysis unavailable; removing analysis alone does not delete a separately retained source recording. Results expire under the selected retention. The app's backend remains responsible for who may read a child's report.
|
|
194
|
+
|
|
195
|
+
Use the batch release report for exact native/browser/service coverage and deployed status. Phone integrations need a new native build if `expo-application` is not already installed.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.24.0 — 2026-11-11
|
|
4
|
+
|
|
5
|
+
- Add password and WebAuthn PRF passkey backup protection alongside recovery keys, with a shared three-choice setup and authenticated recovery envelopes. Experimental backup APIs; native passkey provisioning and real cloud/replacement-device acceptance remain pending.
|
|
6
|
+
|
|
7
|
+
- Place expanded popup screens directly below the Messenger header, tighten content spacing, and place backup and scheduling descriptions directly under their headers. Keep compact confirmations and embedded pane boundaries.
|
|
8
|
+
|
|
9
|
+
- Keep one settings panel mounted while navigating Account, Chat backup and backup recovery pages, preventing flashes of the inbox and preserving the account scroll position.
|
|
10
|
+
|
|
11
|
+
- Add the shared Chat backup screen, native encryption and private key/preferences storage. Follow original Messenger settings styling and friendly dates. Production cloud/history wiring remains incomplete.
|
|
12
|
+
|
|
13
|
+
- Display JPEG photos up to 128 KiB through the authorized original download when no page preview grant is supplied, avoiding a separate thumbnail lookup and image re-encoding.
|
|
14
|
+
|
|
15
|
+
- Keep failed-message Retry inside the text bubble, photo/video preview, voice pill or file card, with the delivery bar confined to that surface.
|
|
16
|
+
- Stabilize conversation headers with inbox appearance on first render, a reserved activity line and a stable options column.
|
|
17
|
+
|
|
18
|
+
- Recognize source-backed history attachments as remote media: skip outgoing draft-file lookups and use authorized streaming for voice/video, consistently with other shared storage sources.
|
|
19
|
+
|
|
20
|
+
- Fit photo and video previews to their full proportions, including portrait and panoramic media. Quote, selected-attachment and shared-media previews also show the whole image.
|
|
21
|
+
- Accept message-bound Bridge history preview grants up to the existing 200 KB Bridge preview limit, avoiding a separate thumbnail authorization request when the service supplies a fresh grant.
|
|
22
|
+
|
|
23
|
+
## 0.23.0 — 2026-11-10
|
|
24
|
+
|
|
25
|
+
Add signed device Apple environment registration, shared playback callbacks, Bridge presence/privacy and foreground lifecycle integration.
|
|
26
|
+
|
|
1
27
|
## 0.20.3
|
|
2
28
|
|
|
3
29
|
- Reuse short-lived original-media access returned with Bridge thumbnails to avoid another playback authorization request. Explicit exports still reauthorize; expired or mismatched grants are rejected.
|
package/README.md
CHANGED
|
@@ -637,13 +637,92 @@ recordings are preserved rather than treated as disposable files.
|
|
|
637
637
|
Choose **Design → Chat screen → Messages & bubbles** in the website customization tool. The shared preview uses the same renderer as the customer Messenger.
|
|
638
638
|
|
|
639
639
|
- **Bubble corners:** standard, square (90°), or more rounded.
|
|
640
|
-
- **Bubble style:** classic, a top tail on text/file bubbles, or
|
|
641
|
-
- **Delivery status:** a bar inside the bubble, flush with its right edge, or a circle with a checkmark.
|
|
640
|
+
- **Bubble style:** classic, a top tail on text/file bubbles (top right for sent messages, top left for received messages), or the original Messenger’s tighter sender-side bottom corner (3px, with 14px body corners). Voice messages keep their player shape; photos and videos fill their bubble without a padded outer background.
|
|
641
|
+
- **Delivery status:** a bar inside the bubble, flush with its right edge, or a circle with a checkmark. Bar mode offers sent, delivered and seen/heard/watched colors. Each outgoing item has its own indicator, including attachments sent together. Incoming messages have no delivery indicator.
|
|
642
642
|
|
|
643
|
-
A circle is empty while sending, gains a checkmark on delivery and fills with the
|
|
643
|
+
A circle is empty while sending, gains a checkmark on delivery and fills with the accent color when consumed. Viewing status is only shown when receipt permissions allow it; styling never overrides those permissions.
|
|
644
644
|
|
|
645
|
-
These choices are stored in `appearance.presentation.bubbleShape`, `appearance.presentation.bubbleStyle`, and `appearance.messageStatus` (`style`, `sent`, `delivered`, `consumed`). Existing designs default to the inside edge bar and classic bubbles. Customers need a package version containing these controls before saved designs can render them.
|
|
645
|
+
These choices are stored in `appearance.presentation.bubbleShape`, `appearance.presentation.bubbleStyle`, and `appearance.messageStatus` (`style`, `position`, `sent`, `delivered`, `consumed`). Existing designs default to the inside edge bar and classic bubbles. Customers need a package version containing these controls before saved designs can render them.
|
|
646
646
|
|
|
647
647
|
The website's **Calling** settings control the optional message offer after an unanswered call. The shared panel presents one recording preview, Record again, Cancel and an explicit Send action. Drafts are not uploaded until Send.
|
|
648
648
|
|
|
649
649
|
The website’s **Design → Chat screen → Writing area** offers an optional **Message field border** and its color. The thin outline follows the field corners without changing its size. These are `appearance.composer.fieldBorder` and `fieldBorderColor`; existing designs remain borderless.
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
The standard media preview loader may expose `peek(message)` to return an already
|
|
653
|
+
authorized, memory-only preview synchronously. The Expo and browser adapters do
|
|
654
|
+
this automatically. Hosts must scope previews to the current account/conversation,
|
|
655
|
+
clear them on permission or identity changes, and keep private URLs out of persistent
|
|
656
|
+
history. Server-provided thumbnails are displayed without another image conversion.
|
|
657
|
+
|
|
658
|
+
Delivery bar colors use `appearance.messageStatus.sent`, `.delivered` and `.consumed`.
|
|
659
|
+
The website builder shows these color controls only when `messageStatus.style` is
|
|
660
|
+
`bar`; choosing `circle` hides them and preserves the bar choices for switching back.
|
|
661
|
+
Voice completion pauses playback and resets to zero; an ordinary Pause preserves the
|
|
662
|
+
position and Play resumes from it on web, iPhone and Android.
|
|
663
|
+
|
|
664
|
+
The 12px status circle can sit inside or below each outgoing bubble via
|
|
665
|
+
`appearance.messageStatus.position: 'inside' | 'below'` (default `inside`).
|
|
666
|
+
Message time independently uses `appearance.messageTime.position: 'inside' |
|
|
667
|
+
'below' | 'slide'` (default `slide`). Below-bubble metadata moves with its own
|
|
668
|
+
message during a swipe. These settings apply to web, iPhone and Android.
|
|
669
|
+
`appearance.screens.chat.messageWidth` limits long bubbles to 70, 88 or 94 percent
|
|
670
|
+
of the message area; short messages retain their natural width.
|
|
671
|
+
|
|
672
|
+
When top tails are selected, the delivery bar starts at the tail’s base with a
|
|
673
|
+
rounded cap; it does not draw a stripe through the tail.
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
## Parent message reviews
|
|
677
|
+
|
|
678
|
+
Use the shared `ExpoMessageReviewInbox` with the authenticated parent route described in the
|
|
679
|
+
[server integration instructions](../server/README.md#parent-approval-before-delivery).
|
|
680
|
+
Use the matching server and core packages, and confirm the public review API is available before enabling reviews.
|
|
681
|
+
|
|
682
|
+
```tsx
|
|
683
|
+
import {MessageReviewClient} from '@robono/messaging';
|
|
684
|
+
import {ExpoMessageReviewInbox} from '@robono/messaging-react-native/expo';
|
|
685
|
+
const reviewClient = new MessageReviewClient(async (operation, input) => {
|
|
686
|
+
const response = await fetch('/api/parent-message-reviews', {
|
|
687
|
+
method: 'POST', credentials: 'include',
|
|
688
|
+
headers: {'content-type': 'application/json'},
|
|
689
|
+
body: JSON.stringify({...input, operation}),
|
|
690
|
+
});
|
|
691
|
+
const result = await response.json();
|
|
692
|
+
if (!response.ok) throw Error(result.error?.message ?? 'Review unavailable');
|
|
693
|
+
return result;
|
|
694
|
+
});
|
|
695
|
+
// Use your authenticated transport/session and account directory on mobile.
|
|
696
|
+
<ExpoMessageReviewInbox client={reviewClient} name={userDisplayName}
|
|
697
|
+
conversationName={friendDisplayNameForConversation} />
|
|
698
|
+
```
|
|
699
|
+
|
|
700
|
+
Keep the client stable while the signed-in account is unchanged, and replace it on
|
|
701
|
+
sign-out/account changes. Names are display data, never authorization. The parent
|
|
702
|
+
sees the child, intended friend, exact words and private photo/video/voice preview.
|
|
703
|
+
Pending and completed items are separate; only a pending item offers a decision.
|
|
704
|
+
Approved items with interrupted delivery offer Retry delivery. Media is cleared
|
|
705
|
+
when the item changes or the app backgrounds. Native hosts without Expo can use
|
|
706
|
+
`MessagingReviewInbox` with their own authorized `renderMedia` callback.
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
Directory contacts now open the conversation destination immediately, without an
|
|
710
|
+
“Opening chat” dialog. The shared screen keeps the friend's name and avatar visible
|
|
711
|
+
while `onOpenDirectoryContact` resolves. No messages or composer are mounted before
|
|
712
|
+
the authorized result. Return the conversation summary directly after the permission
|
|
713
|
+
check; refreshing contact lists or the inbox must not delay that result. Back,
|
|
714
|
+
account changes and revoked directory entries cancel pending opens and discard late
|
|
715
|
+
responses. Unavailable contacts explain their status in the same conversation pane.
|
|
716
|
+
This navigation correction is local and awaiting the combined SDK release.
|
|
717
|
+
|
|
718
|
+
### Private Me chat
|
|
719
|
+
|
|
720
|
+
The shared friend list places the authenticated user's direct self conversation first and labels it **Me**. It uses the signed-in account's avatar. The conversation must come from the authorized inbox response (`selfConversation`); the UI never invents a conversation ID or substitutes another contact.
|
|
721
|
+
|
|
722
|
+
**Account → Show Me in friends** hides or restores that row without deleting messages. Complete Messenger integrations persist this preference on the current device/browser, partitioned by endpoint, namespace and user. With persistence disabled it lasts for the client session. Composable integrations can supply `MessagingInboxClient({request, userId, preferences: {read, write}})` and pass the same `inbox` to `MessagingAccountMenu` / `MessagingAccountScreen`; custom preference adapters may sync the choice through the host's authenticated account settings. This is a personal account choice, not a network appearance default.
|
|
723
|
+
|
|
724
|
+
The complete Messenger uses the inbox’s saved appearance while a conversation loads. For a standalone conversation screen, `initialAppearance` supplies that same presentation fallback until the conversation settings arrive; `appearance` remains an explicit override. Neither option grants messaging or calling permissions.
|
|
725
|
+
|
|
726
|
+
### Chat backup — unreleased
|
|
727
|
+
|
|
728
|
+
The shared backup screen follows Messenger account settings and supports backup status, account/storage actions, schedules, cellular policy, video inclusion, recovery keys and restore. Pass a `MessagingBackupClient` as `account.backup`. Core/native encryption and sample-data round trips are implemented; complete local-history storage, cloud-account integration and background jobs remain required before this is available to customers. See [the backup implementation status](../messaging/BACKUPS.md).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
package=JSON.parse(File.read(File.join(__dir__,'package.json')))
|
|
3
|
+
Pod::Spec.new do |s|
|
|
4
|
+
s.name='RobonoMessagingRuntime'
|
|
5
|
+
s.version=package['version']
|
|
6
|
+
s.summary=package['description']
|
|
7
|
+
s.homepage='https://robono.com/docs#messaging'
|
|
8
|
+
s.license={:type=>'SEE LICENSE IN LICENSE',:file=>'LICENSE'}
|
|
9
|
+
s.author='Robono'
|
|
10
|
+
s.source={:git=>'https://github.com/IMLX16/robono-sdks.git',:tag=>'messaging-react-native-v'+package['version']}
|
|
11
|
+
s.platforms={:ios=>'16.4'}
|
|
12
|
+
s.source_files='ios/*.{h,m}'
|
|
13
|
+
s.dependency 'React-Core'
|
|
14
|
+
end
|