@trycourier/courier-react-native 5.6.11 → 5.6.12
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/README.md
CHANGED
|
@@ -256,7 +256,6 @@ Starter projects using this SDK.
|
|
|
256
256
|
|
|
257
257
|
# **Share feedback with Courier**
|
|
258
258
|
|
|
259
|
-
We
|
|
259
|
+
We want to make this the best SDK for managing notifications! Have an idea or feedback about our SDKs? Let us know!
|
|
260
260
|
|
|
261
|
-
|
|
262
|
-
- [Courier React Native Issues](https://github.com/trycourier/courier-react-native/issues)
|
|
261
|
+
[Courier React Native Issues](https://github.com/trycourier/courier-react-native/issues)
|
|
@@ -15,7 +15,7 @@ import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
|
15
15
|
import com.google.gson.GsonBuilder
|
|
16
16
|
|
|
17
17
|
internal object Utils {
|
|
18
|
-
val COURIER_AGENT = CourierAgent.ReactNativeAndroid(version = "5.6.
|
|
18
|
+
val COURIER_AGENT = CourierAgent.ReactNativeAndroid(version = "5.6.12")
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
internal fun ReactContext.sendEvent(eventName: String, value: Any?) {
|
|
@@ -33,7 +33,7 @@ static NSString *const CourierForegroundOptionsDidChangeNotification = @"iosFore
|
|
|
33
33
|
if (self) {
|
|
34
34
|
|
|
35
35
|
// Set the user agent
|
|
36
|
-
Courier.agent = [CourierAgent reactNativeIOS:@"5.6.
|
|
36
|
+
Courier.agent = [CourierAgent reactNativeIOS:@"5.6.12"];
|
|
37
37
|
|
|
38
38
|
// Register for remote notifications
|
|
39
39
|
UIApplication *app = [UIApplication sharedApplication];
|
|
@@ -14,7 +14,7 @@ internal class CourierReactNativeEventEmitter: RCTEventEmitter {
|
|
|
14
14
|
|
|
15
15
|
// Set the user agent
|
|
16
16
|
// Used to know the platform performing requests
|
|
17
|
-
Courier.agent = CourierAgent.reactNativeIOS("5.6.
|
|
17
|
+
Courier.agent = CourierAgent.reactNativeIOS("5.6.12")
|
|
18
18
|
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -474,7 +474,7 @@ class CourierSharedModule: CourierReactNativeEventEmitter {
|
|
|
474
474
|
func fetchNextPageOfMessages(inboxMessageFeed: String, resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
|
|
475
475
|
Task {
|
|
476
476
|
do {
|
|
477
|
-
let value: InboxMessageFeed = inboxMessageFeed == "archive" ? .
|
|
477
|
+
let value: InboxMessageFeed = inboxMessageFeed == "archive" ? .archive : .feed
|
|
478
478
|
let messages = try await Courier.shared.fetchNextInboxPage(value)
|
|
479
479
|
resolve(try messages.map { try $0.toJson() ?? "" })
|
|
480
480
|
} catch {
|