react-native-acoustic-connect-beta 18.0.34 → 18.0.36
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 +2 -0
- package/README.md +117 -2
- package/android/src/main/assets/ConnectBasicConfig.properties +1 -1
- package/app.plugin.js +15 -0
- package/package.json +15 -1
- package/plugin/build/index.d.ts +25 -0
- package/plugin/build/index.d.ts.map +1 -0
- package/plugin/build/index.js +44 -0
- package/plugin/build/index.js.map +1 -0
- package/plugin/build/withConnectNCE.d.ts +88 -0
- package/plugin/build/withConnectNCE.d.ts.map +1 -0
- package/plugin/build/withConnectNCE.js +366 -0
- package/plugin/build/withConnectNCE.js.map +1 -0
- package/plugin/build/withConnectNSE.d.ts +120 -0
- package/plugin/build/withConnectNSE.d.ts.map +1 -0
- package/plugin/build/withConnectNSE.js +512 -0
- package/plugin/build/withConnectNSE.js.map +1 -0
- package/plugin/src/index.ts +50 -0
- package/plugin/src/withConnectNCE.ts +487 -0
- package/plugin/src/withConnectNSE.ts +689 -0
- package/plugin/swift/NotificationService.swift +34 -0
- package/plugin/swift/NotificationViewController.swift +34 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2026 Acoustic, L.P. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// NOTICE: This file contains material that is confidential and proprietary to
|
|
5
|
+
// Acoustic, L.P. and/or other developers. No license is granted under any
|
|
6
|
+
// intellectual or industrial property rights of Acoustic, L.P. except as may
|
|
7
|
+
// be provided in an agreement with Acoustic, L.P. Any unauthorized copying or
|
|
8
|
+
// distribution of content from this file is prohibited.
|
|
9
|
+
//
|
|
10
|
+
// Generated by react-native-acoustic-connect-beta Expo Config Plugin.
|
|
11
|
+
// Canonical reference: Examples/bare-workflow/ios/ConnectNSE/NotificationService.swift
|
|
12
|
+
// The CONNECT_APP_GROUP_IDENTIFIER_PLACEHOLDER token is replaced by the plugin
|
|
13
|
+
// with the resolved App Group identifier from ConnectConfig.json (or the
|
|
14
|
+
// iosAppGroupIdentifier plugin prop in app.json).
|
|
15
|
+
//
|
|
16
|
+
|
|
17
|
+
import Connect
|
|
18
|
+
|
|
19
|
+
// Notification Service Extension principal class — referenced by
|
|
20
|
+
// `NSExtensionPrincipalClass` in this target's Info.plist.
|
|
21
|
+
//
|
|
22
|
+
// The whole implementation is inherited from `ConnectNotificationService`
|
|
23
|
+
// (Connect SDK): it downloads rich-media attachments, records the
|
|
24
|
+
// `PushReceived` signal into the App Group pending store, and flushes it to
|
|
25
|
+
// the Collector. The only host responsibility is to point the extension at
|
|
26
|
+
// the SAME App Group as the host app so the two processes share state.
|
|
27
|
+
//
|
|
28
|
+
// @unchecked Sendable: restates the inherited conformance from
|
|
29
|
+
// `ConnectNotificationService`.
|
|
30
|
+
final class NotificationService: ConnectNotificationService, @unchecked Sendable {
|
|
31
|
+
override var appGroupIdentifier: String? {
|
|
32
|
+
"CONNECT_APP_GROUP_IDENTIFIER_PLACEHOLDER"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2026 Acoustic, L.P. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// NOTICE: This file contains material that is confidential and proprietary to
|
|
5
|
+
// Acoustic, L.P. and/or other developers. No license is granted under any
|
|
6
|
+
// intellectual or industrial property rights of Acoustic, L.P. except as may
|
|
7
|
+
// be provided in an agreement with Acoustic, L.P. Any unauthorized copying or
|
|
8
|
+
// distribution of content from this file is prohibited.
|
|
9
|
+
//
|
|
10
|
+
// Generated by react-native-acoustic-connect-beta Expo Config Plugin.
|
|
11
|
+
// Canonical reference: Examples/bare-workflow/ios/ConnectNCE/NotificationViewController.swift
|
|
12
|
+
// The CONNECT_APP_GROUP_IDENTIFIER_PLACEHOLDER token is replaced by the plugin
|
|
13
|
+
// with the resolved App Group identifier from ConnectConfig.json (or the
|
|
14
|
+
// iosAppGroupIdentifier plugin prop in app.json).
|
|
15
|
+
//
|
|
16
|
+
|
|
17
|
+
import Connect
|
|
18
|
+
|
|
19
|
+
// Notification Content Extension principal class — referenced by
|
|
20
|
+
// `NSExtensionPrincipalClass` in this target's Info.plist.
|
|
21
|
+
//
|
|
22
|
+
// The whole implementation is inherited from
|
|
23
|
+
// `ConnectNotificationContentExtension` (Connect SDK): it renders the rich
|
|
24
|
+
// expansion UI (media attachment and/or expanded body) below the system
|
|
25
|
+
// banner when the user long-presses / expands an Acoustic notification.
|
|
26
|
+
//
|
|
27
|
+
// As with the NSE, the only host responsibility is to point the extension at
|
|
28
|
+
// the SAME App Group as the host app and the NSE so all three processes
|
|
29
|
+
// read/write the same pending store. Mirrors the iOS-SDK NCE reference 1:1.
|
|
30
|
+
final class NotificationViewController: ConnectNotificationContentExtension {
|
|
31
|
+
override var appGroupIdentifier: String? {
|
|
32
|
+
"CONNECT_APP_GROUP_IDENTIFIER_PLACEHOLDER"
|
|
33
|
+
}
|
|
34
|
+
}
|