@robono/messaging-react-native 0.24.0 → 0.25.1

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 (110) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +77 -1
  3. package/RobonoMessagingRuntime.podspec +2 -0
  4. package/SBOM.spdx.json +1832 -560
  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-connected-calling.d.ts +1 -0
  48. package/dist/expo-connected-calling.js +13 -2
  49. package/dist/expo-device-history.d.ts +24 -0
  50. package/dist/expo-device-history.js +88 -0
  51. package/dist/expo-durable-history.d.ts +26 -0
  52. package/dist/expo-durable-history.js +56 -0
  53. package/dist/expo-history-backup.d.ts +3 -0
  54. package/dist/expo-history-backup.js +79 -0
  55. package/dist/expo-history-maintenance.d.ts +4 -0
  56. package/dist/expo-history-maintenance.js +23 -0
  57. package/dist/expo-history-previews.d.ts +5 -0
  58. package/dist/expo-history-previews.js +57 -0
  59. package/dist/expo-history.d.ts +1 -1
  60. package/dist/expo-history.js +2 -2
  61. package/dist/expo-media.d.ts +2 -0
  62. package/dist/expo-media.js +15 -21
  63. package/dist/expo-messenger.d.ts +10 -0
  64. package/dist/expo-messenger.js +18 -7
  65. package/dist/expo-notifications.d.ts +17 -1
  66. package/dist/expo-notifications.js +36 -16
  67. package/dist/expo-outbox.d.ts +2 -0
  68. package/dist/expo-outbox.js +1 -1
  69. package/dist/expo-oversight.d.ts +15 -0
  70. package/dist/expo-oversight.js +15 -0
  71. package/dist/expo-reviews.d.ts +4 -1
  72. package/dist/expo-reviews.js +122 -17
  73. package/dist/expo-screen.js +5 -4
  74. package/dist/expo-thumbnails.d.ts +2 -2
  75. package/dist/expo-thumbnails.js +48 -5
  76. package/dist/expo.d.ts +10 -0
  77. package/dist/expo.js +8 -0
  78. package/dist/header-calls.js +1 -1
  79. package/dist/inbox-search.d.ts +1 -1
  80. package/dist/inbox-search.js +7 -3
  81. package/dist/inbox.d.ts +1 -0
  82. package/dist/inbox.js +5 -5
  83. package/dist/index.d.ts +8 -3
  84. package/dist/index.js +138 -63
  85. package/dist/linked-apps.d.ts +45 -0
  86. package/dist/linked-apps.js +40 -0
  87. package/dist/loading-messages.d.ts +1 -1
  88. package/dist/loading-messages.js +1 -1
  89. package/dist/media-controller.d.ts +2 -0
  90. package/dist/native-history-authorization.d.ts +4 -0
  91. package/dist/native-history-authorization.js +69 -0
  92. package/dist/native-history-backup.d.ts +16 -0
  93. package/dist/native-history-backup.js +144 -0
  94. package/dist/native-history.d.ts +14 -0
  95. package/dist/native-history.js +186 -0
  96. package/dist/native-outbox.d.ts +2 -0
  97. package/dist/oversight-session.d.ts +4 -0
  98. package/dist/oversight-session.js +14 -0
  99. package/dist/preview-layout.d.ts +12 -0
  100. package/dist/preview-layout.js +102 -0
  101. package/dist/recent-media.js +2 -1
  102. package/dist/reviews.d.ts +8 -4
  103. package/dist/reviews.js +53 -26
  104. package/dist/scheduled.js +2 -2
  105. package/dist/search.js +18 -8
  106. package/ios/RobonoBackupCloudKit.m +96 -0
  107. package/ios/RobonoHistoryStore.m +170 -0
  108. package/package.json +23 -5
  109. package/plugin/backup-expiration.cjs +23 -0
  110. package/plugin/prepare-native.cjs +12 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.25.1
4
+
5
+ - Sync applied website calling logos automatically. Preserve cached branding for locked iPhone calls, support removal and account changes, and refresh without interrupting active calls. Older apps need one SDK update; subsequent logo changes require no rebuild.
6
+
7
+ ## 0.25.0 — 2026-11-15
8
+
9
+ - Add authorized local recent history and saved previews, assigned review/monitoring, and shared backup adapters on iPhone and Android.
10
+ - Keep headers, composers and complete photo/video frames stable while connecting; preserve independent caption/media actions and media playback controls.
11
+ - Show cached-conversation refresh progress in the existing header and preserve the message-box space without a false Offline message.
12
+ - Correct notification callback remounts and Android Back navigation. Native personal-cloud recovery remains subject to the acceptance gates in the shared backup guide.
13
+
3
14
  ## 0.24.0 — 2026-11-11
4
15
 
5
16
  - 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
@@ -1,5 +1,7 @@
1
1
  # Optional Robono messaging screens
2
2
 
3
+ Customers can upload an iPhone call icon in the website designer and save/apply their design. With this SDK and calling SDK 0.11.3+, branding syncs automatically when the app opens and stays cached for locked incoming calls. Existing apps need one native update; subsequent logo changes need no developer handoff or rebuild.
4
+
3
5
  ## Small interface customizations
4
6
 
5
7
  Choose fonts, text size, message spacing and bubble shape in **Features & preview →
@@ -170,6 +172,14 @@ npx expo install expo-audio expo-image-picker expo-document-picker expo-file-sys
170
172
 
171
173
  This entry targets Expo SDK 55–56; the core components do not require Expo.
172
174
 
175
+ When using Expo's fingerprint runtime policy, run the public
176
+ `@robono/messaging-react-native/prepare-native` helper from your app's
177
+ `postinstall` script. Call `prepareNativeDependencies(projectRoot,
178
+ {backupBackgroundTasks: true})` when automatic backups are enabled, or omit the
179
+ option otherwise. This prepares the SDK's Expo native corrections before
180
+ fingerprinting; the config plugin repeats the same idempotent step at prebuild.
181
+ See [backup build configuration](../messaging/BACKUPS.md#native-automatic-backups).
182
+
173
183
  | Project | Supplied integration |
174
184
  | --- | --- |
175
185
  | Expo 55 or 56 | Use the `/expo` entry and `npx expo install` for matching native packages. |
@@ -423,6 +433,28 @@ Server 0.18.0 and mobile 0.4.0 remove the customer notification database and wor
423
433
 
424
434
  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
435
 
436
+ For Android, include your Firebase project's downloaded **Android client**
437
+ `google-services.json` in the signed app and point Expo's
438
+ `android.googleServicesFile` to it. Its package name must match the app's Android
439
+ package. This client configuration initializes FCM on the device; uploading a
440
+ Firebase service-account key to the server does not replace it. Keep the private
441
+ service-account key out of the app. Changing this native configuration requires
442
+ a new signed Android build, not a JavaScript update.
443
+
444
+ When replacing a host's previous notification implementation, supply
445
+ `onNotificationRegistered` to `createExpoMessenger` (`onRegistered` on the
446
+ standalone connector). It runs after the server confirms this account's new
447
+ device registration. Use its abort signal and your authenticated host endpoint
448
+ to retire only the previous registration for this installation and account.
449
+ Keep other devices and accounts intact. A failed callback retries when the app
450
+ returns to the foreground; a rejected new registration never retires the old
451
+ one. Do not run two alert senders for the same installation after migration.
452
+
453
+ For integration diagnostics, `onNotificationDiagnostic` (`onDiagnostic` on the
454
+ standalone connector) reports response receipt, authorization and routing outcomes.
455
+ It includes only stage names and boolean flags, never tokens or message contents.
456
+ A diagnostics callback failure cannot interrupt notification handling.
457
+
426
458
  ## Send later
427
459
 
428
460
  With the scheduling service available, hold the composer Send button after writing
@@ -725,4 +757,48 @@ The complete Messenger uses the inbox’s saved appearance while a conversation
725
757
 
726
758
  ### Chat backup — unreleased
727
759
 
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).
760
+ Website customization saves `messaging.appearance.showChatBackup`. `false` hides
761
+ Chat backup and closes an open backup page; `true` still requires the host's
762
+ `account.backup` client. Omission preserves existing host-controlled availability.
763
+ For server-retained history without personal backups, omit the backup client and
764
+ background workers. Existing personal archives are not deleted by this choice.
765
+
766
+
767
+ 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).
768
+
769
+ ## Main menu and account screens
770
+
771
+ Use **Main Screen → Friends menu → Menu options** in the website builder to choose
772
+ Account, Language, Saved, Stats, Blocked, Linked Apps, Phone Transfer and About.
773
+ The Robono admin Messenger uses this same builder and saved appearance. Select an
774
+ individual screen in the **Screen** selector to change its colors, font, text size
775
+ and supported features. These choices live in `appearance.menus.friends.items`,
776
+ `appearance.screenStyles` and `appearance.screenFeatures`; both web and Expo read
777
+ the same settings. Hidden features never override authenticated host permissions.
778
+
779
+ `MessagingInbox.onNewConversation` provides the floating **Message** button at
780
+ 16 points from the trailing edge and 32 points from the bottom, matching the
781
+ original Messenger. The old `menus.friends.items.newChat` setting is accepted for
782
+ compatibility but no longer hides that button or adds a dropdown item.
783
+
784
+ Supply account-owned data through the public `account` options:
785
+
786
+ | Screen | Host connection |
787
+ | --- | --- |
788
+ | Language | `language: {value, onChange, choices?}`; persist the choice and update `interfaceLocale` after success. Without an editor, the screen shows the current account language. |
789
+ | 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. |
790
+ | Blocked | `blocked.list(signal, cursor?)` returns contacts and optional `nextCursor`; `blocked.unblock(id)` rechecks authorization and performs the unblock. |
791
+ | 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. |
792
+ | Phone Transfer | `backup` opens protected backup/recovery. This transfers through backup; a host with a separate device-transfer flow can supply `onPhoneTransfer`. |
793
+ | About | Optional `about: {description, version?}` supplies product information. |
794
+
795
+ Blocked, Linked Apps and Phone Transfer appear only when their host connection is
796
+ available and their menu choice is enabled. Saved also requires the saved-message
797
+ adapter. Keep these account services stable during rendering, cancel list requests
798
+ when their signal aborts, and recreate them when the signed-in account changes.
799
+
800
+ Contact objects accept `networkName`, supplied by the authenticated directory.
801
+ The chat header shows it beneath the name; `companyName` is the fallback for the
802
+ host network. Group chats retain member/activity information. Privacy Lens lives
803
+ in **Contact options → Chat options**. Legacy `privacy` header-order entries are
804
+ 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