@robono/messaging-react-native 0.24.0 → 0.25.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.
Files changed (108) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +75 -1
  3. package/RobonoMessagingRuntime.podspec +2 -0
  4. package/SBOM.spdx.json +1829 -557
  5. package/android/build.gradle +4 -1
  6. package/android/src/main/java/com/robono/messaging/RobonoBackupGoogle.java +76 -0
  7. package/android/src/main/java/com/robono/messaging/RobonoHistoryStore.java +173 -0
  8. package/android/src/main/java/com/robono/messaging/RobonoMessagingPackage.java +1 -1
  9. package/app.plugin.cjs +14 -1
  10. package/cloudkit/backup-schema.ckdb +13 -0
  11. package/dist/account-pages.d.ts +51 -0
  12. package/dist/account-pages.js +65 -0
  13. package/dist/account.d.ts +2 -1
  14. package/dist/account.js +6 -2
  15. package/dist/backup-background.d.ts +25 -0
  16. package/dist/backup-background.js +71 -0
  17. package/dist/backup-base64.d.ts +3 -0
  18. package/dist/backup-base64.js +41 -0
  19. package/dist/backup-google-authorization.d.ts +23 -0
  20. package/dist/backup-google-authorization.js +95 -0
  21. package/dist/backup.js +61 -16
  22. package/dist/bubble-design.d.ts +1 -1
  23. package/dist/cloudkit-backup.d.ts +14 -0
  24. package/dist/cloudkit-backup.js +193 -0
  25. package/dist/conversation-details.js +1 -1
  26. package/dist/customization.d.ts +1 -0
  27. package/dist/delivery-bar.d.ts +1 -1
  28. package/dist/delivery-bar.js +5 -2
  29. package/dist/delivery-notice.d.ts +9 -0
  30. package/dist/delivery-notice.js +15 -0
  31. package/dist/expo-backup-background.d.ts +17 -0
  32. package/dist/expo-backup-background.js +57 -0
  33. package/dist/expo-backup-cloudkit.d.ts +6 -0
  34. package/dist/expo-backup-cloudkit.js +11 -0
  35. package/dist/expo-backup-google.d.ts +7 -0
  36. package/dist/expo-backup-google.js +16 -0
  37. package/dist/expo-backup-network.d.ts +8 -0
  38. package/dist/expo-backup-network.js +18 -0
  39. package/dist/expo-backup-passkeys.d.ts +7 -0
  40. package/dist/expo-backup-passkeys.js +31 -7
  41. package/dist/expo-backup-settings.js +26 -8
  42. package/dist/expo-backup.d.ts +14 -0
  43. package/dist/expo-backup.js +22 -0
  44. package/dist/expo-bridge.d.ts +2 -0
  45. package/dist/expo-bridge.js +3 -1
  46. package/dist/expo-cache.js +20 -1
  47. package/dist/expo-device-history.d.ts +24 -0
  48. package/dist/expo-device-history.js +88 -0
  49. package/dist/expo-durable-history.d.ts +26 -0
  50. package/dist/expo-durable-history.js +56 -0
  51. package/dist/expo-history-backup.d.ts +3 -0
  52. package/dist/expo-history-backup.js +79 -0
  53. package/dist/expo-history-maintenance.d.ts +4 -0
  54. package/dist/expo-history-maintenance.js +23 -0
  55. package/dist/expo-history-previews.d.ts +5 -0
  56. package/dist/expo-history-previews.js +57 -0
  57. package/dist/expo-history.d.ts +1 -1
  58. package/dist/expo-history.js +2 -2
  59. package/dist/expo-media.d.ts +2 -0
  60. package/dist/expo-media.js +15 -21
  61. package/dist/expo-messenger.d.ts +8 -0
  62. package/dist/expo-messenger.js +18 -7
  63. package/dist/expo-notifications.d.ts +17 -1
  64. package/dist/expo-notifications.js +36 -16
  65. package/dist/expo-outbox.d.ts +2 -0
  66. package/dist/expo-outbox.js +1 -1
  67. package/dist/expo-oversight.d.ts +15 -0
  68. package/dist/expo-oversight.js +15 -0
  69. package/dist/expo-reviews.d.ts +4 -1
  70. package/dist/expo-reviews.js +122 -17
  71. package/dist/expo-screen.js +5 -4
  72. package/dist/expo-thumbnails.d.ts +2 -2
  73. package/dist/expo-thumbnails.js +48 -5
  74. package/dist/expo.d.ts +10 -0
  75. package/dist/expo.js +8 -0
  76. package/dist/header-calls.js +1 -1
  77. package/dist/inbox-search.d.ts +1 -1
  78. package/dist/inbox-search.js +7 -3
  79. package/dist/inbox.d.ts +1 -0
  80. package/dist/inbox.js +5 -5
  81. package/dist/index.d.ts +8 -3
  82. package/dist/index.js +138 -63
  83. package/dist/linked-apps.d.ts +45 -0
  84. package/dist/linked-apps.js +40 -0
  85. package/dist/loading-messages.d.ts +1 -1
  86. package/dist/loading-messages.js +1 -1
  87. package/dist/media-controller.d.ts +2 -0
  88. package/dist/native-history-authorization.d.ts +4 -0
  89. package/dist/native-history-authorization.js +69 -0
  90. package/dist/native-history-backup.d.ts +16 -0
  91. package/dist/native-history-backup.js +144 -0
  92. package/dist/native-history.d.ts +14 -0
  93. package/dist/native-history.js +186 -0
  94. package/dist/native-outbox.d.ts +2 -0
  95. package/dist/oversight-session.d.ts +4 -0
  96. package/dist/oversight-session.js +14 -0
  97. package/dist/preview-layout.d.ts +12 -0
  98. package/dist/preview-layout.js +102 -0
  99. package/dist/recent-media.js +2 -1
  100. package/dist/reviews.d.ts +8 -4
  101. package/dist/reviews.js +53 -26
  102. package/dist/scheduled.js +2 -2
  103. package/dist/search.js +18 -8
  104. package/ios/RobonoBackupCloudKit.m +96 -0
  105. package/ios/RobonoHistoryStore.m +170 -0
  106. package/package.json +22 -4
  107. package/plugin/backup-expiration.cjs +23 -0
  108. package/plugin/prepare-native.cjs +12 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.25.0 — 2026-11-15
4
+
5
+ - Add authorized local recent history and saved previews, assigned review/monitoring, and shared backup adapters on iPhone and Android.
6
+ - Keep headers, composers and complete photo/video frames stable while connecting; preserve independent caption/media actions and media playback controls.
7
+ - Show cached-conversation refresh progress in the existing header and preserve the message-box space without a false Offline message.
8
+ - Correct notification callback remounts and Android Back navigation. Native personal-cloud recovery remains subject to the acceptance gates in the shared backup guide.
9
+
3
10
  ## 0.24.0 — 2026-11-11
4
11
 
5
12
  - 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.
package/README.md CHANGED
@@ -170,6 +170,14 @@ npx expo install expo-audio expo-image-picker expo-document-picker expo-file-sys
170
170
 
171
171
  This entry targets Expo SDK 55–56; the core components do not require Expo.
172
172
 
173
+ When using Expo's fingerprint runtime policy, run the public
174
+ `@robono/messaging-react-native/prepare-native` helper from your app's
175
+ `postinstall` script. Call `prepareNativeDependencies(projectRoot,
176
+ {backupBackgroundTasks: true})` when automatic backups are enabled, or omit the
177
+ option otherwise. This prepares the SDK's Expo native corrections before
178
+ fingerprinting; the config plugin repeats the same idempotent step at prebuild.
179
+ See [backup build configuration](../messaging/BACKUPS.md#native-automatic-backups).
180
+
173
181
  | Project | Supplied integration |
174
182
  | --- | --- |
175
183
  | Expo 55 or 56 | Use the `/expo` entry and `npx expo install` for matching native packages. |
@@ -423,6 +431,28 @@ Server 0.18.0 and mobile 0.4.0 remove the customer notification database and wor
423
431
 
424
432
  Always await `messenger.signOut()` before ending your host login session, using a finally block to finish host sign-out even if the network is unavailable. The host still owns its global notification presentation handler; compose it with `withMessagingNotificationPresentation` if needed. Custom screens can continue using the separate `./expo-notifications` connector. Apple/Google permissions and a real device are required to prove background delivery; signing in and seeing a chat is not enough.
425
433
 
434
+ For Android, include your Firebase project's downloaded **Android client**
435
+ `google-services.json` in the signed app and point Expo's
436
+ `android.googleServicesFile` to it. Its package name must match the app's Android
437
+ package. This client configuration initializes FCM on the device; uploading a
438
+ Firebase service-account key to the server does not replace it. Keep the private
439
+ service-account key out of the app. Changing this native configuration requires
440
+ a new signed Android build, not a JavaScript update.
441
+
442
+ When replacing a host's previous notification implementation, supply
443
+ `onNotificationRegistered` to `createExpoMessenger` (`onRegistered` on the
444
+ standalone connector). It runs after the server confirms this account's new
445
+ device registration. Use its abort signal and your authenticated host endpoint
446
+ to retire only the previous registration for this installation and account.
447
+ Keep other devices and accounts intact. A failed callback retries when the app
448
+ returns to the foreground; a rejected new registration never retires the old
449
+ one. Do not run two alert senders for the same installation after migration.
450
+
451
+ For integration diagnostics, `onNotificationDiagnostic` (`onDiagnostic` on the
452
+ standalone connector) reports response receipt, authorization and routing outcomes.
453
+ It includes only stage names and boolean flags, never tokens or message contents.
454
+ A diagnostics callback failure cannot interrupt notification handling.
455
+
426
456
  ## Send later
427
457
 
428
458
  With the scheduling service available, hold the composer Send button after writing
@@ -725,4 +755,48 @@ The complete Messenger uses the inbox’s saved appearance while a conversation
725
755
 
726
756
  ### Chat backup — unreleased
727
757
 
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).
758
+ Website customization saves `messaging.appearance.showChatBackup`. `false` hides
759
+ Chat backup and closes an open backup page; `true` still requires the host's
760
+ `account.backup` client. Omission preserves existing host-controlled availability.
761
+ For server-retained history without personal backups, omit the backup client and
762
+ background workers. Existing personal archives are not deleted by this choice.
763
+
764
+
765
+ The shared backup screen follows Messenger account settings and supports backup status, account/storage actions, schedules, cellular policy, video inclusion, password/passkey/recovery-key protection and restore. Pass a `MessagingBackupClient` as `account.backup`. `createExpoMessagingBackup` connects private durable history and native encryption; `createExpoCloudKitMessagingBackup` supplies private iCloud transport, and `createExpoGoogleMessagingBackup` supplies Android authorization plus private Drive transport. The optional `/expo-backup-network` entry point supplies actual Expo network state and cancellation events; it requires `expo-network`. The optional `@robono/messaging-react-native/expo-backup-background` entry point exports `defineExpoMessagingBackupTask` for module-scope WorkManager/BGTaskScheduler registration. It requires `expo-background-task`, `expo-task-manager` and `backupBackgroundTasks: true` in the existing Messenger plugin options. Cloud identity, provisioning, passkey associations and actual provider recovery are separate setup/acceptance gates. This batch remains unreleased. See [the backup implementation status and host lifecycle contract](../messaging/BACKUPS.md).
766
+
767
+ ## Main menu and account screens
768
+
769
+ Use **Main Screen → Friends menu → Menu options** in the website builder to choose
770
+ Account, Language, Saved, Stats, Blocked, Linked Apps, Phone Transfer and About.
771
+ The Robono admin Messenger uses this same builder and saved appearance. Select an
772
+ individual screen in the **Screen** selector to change its colors, font, text size
773
+ and supported features. These choices live in `appearance.menus.friends.items`,
774
+ `appearance.screenStyles` and `appearance.screenFeatures`; both web and Expo read
775
+ the same settings. Hidden features never override authenticated host permissions.
776
+
777
+ `MessagingInbox.onNewConversation` provides the floating **Message** button at
778
+ 16 points from the trailing edge and 32 points from the bottom, matching the
779
+ original Messenger. The old `menus.friends.items.newChat` setting is accepted for
780
+ compatibility but no longer hides that button or adds a dropdown item.
781
+
782
+ Supply account-owned data through the public `account` options:
783
+
784
+ | Screen | Host connection |
785
+ | --- | --- |
786
+ | Language | `language: {value, onChange, choices?}`; persist the choice and update `interfaceLocale` after success. Without an editor, the screen shows the current account language. |
787
+ | Stats | Defaults to current inbox chat, unread and group counts, explicitly labeled as loaded chats when paginated. Optional `stats.load(signal)` supplies an authorized overview with a description and labeled values. |
788
+ | Blocked | `blocked.list(signal, cursor?)` returns contacts and optional `nextCursor`; `blocked.unblock(id)` rechecks authorization and performs the unblock. |
789
+ | Linked Apps | `linkedApps` supplies network directory, connection requests, responses, disconnection and navigation. `MessagingLinkedAppsScreen` renders the same interface in web and native integrations. Optional `onLinkedApps` navigates to an existing authorized host destination. |
790
+ | Phone Transfer | `backup` opens protected backup/recovery. This transfers through backup; a host with a separate device-transfer flow can supply `onPhoneTransfer`. |
791
+ | About | Optional `about: {description, version?}` supplies product information. |
792
+
793
+ Blocked, Linked Apps and Phone Transfer appear only when their host connection is
794
+ available and their menu choice is enabled. Saved also requires the saved-message
795
+ adapter. Keep these account services stable during rendering, cancel list requests
796
+ when their signal aborts, and recreate them when the signed-in account changes.
797
+
798
+ Contact objects accept `networkName`, supplied by the authenticated directory.
799
+ The chat header shows it beneath the name; `companyName` is the fallback for the
800
+ host network. Group chats retain member/activity information. Privacy Lens lives
801
+ in **Contact options → Chat options**. Legacy `privacy` header-order entries are
802
+ ignored without reserving space. Call buttons retain 44-point touch targets.
@@ -10,5 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.source={:git=>'https://github.com/IMLX16/robono-sdks.git',:tag=>'messaging-react-native-v'+package['version']}
11
11
  s.platforms={:ios=>'16.4'}
12
12
  s.source_files='ios/*.{h,m}'
13
+ s.libraries='sqlite3'
14
+ s.frameworks='CloudKit'
13
15
  s.dependency 'React-Core'
14
16
  end