reteno-react-native-sdk 3.0.0 → 3.0.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.
package/android/build.gradle
CHANGED
|
@@ -80,7 +80,7 @@ dependencies {
|
|
|
80
80
|
//noinspection GradleDynamicVersion
|
|
81
81
|
implementation "com.facebook.react:react-native"
|
|
82
82
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
83
|
-
implementation 'com.reteno:fcm:2.10.
|
|
83
|
+
implementation 'com.reteno:fcm:2.10.2'
|
|
84
84
|
implementation "com.google.firebase:firebase-messaging:23.1.0"
|
|
85
85
|
implementation "com.google.firebase:firebase-messaging-ktx:23.1.0"
|
|
86
86
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
|
package/ios/RetenoSdk.swift
CHANGED
|
@@ -2,6 +2,15 @@ import Foundation
|
|
|
2
2
|
import UserNotifications
|
|
3
3
|
import Reteno
|
|
4
4
|
|
|
5
|
+
/// Swift entry points that must be called before React Native creates the `RetenoSdk` module.
|
|
6
|
+
public enum RetenoReactNativeSdk {
|
|
7
|
+
/// Registers Reteno as the notification-center delegate early, so a notification response
|
|
8
|
+
/// that cold-launched the app can be replayed when the JavaScript SDK is initialized.
|
|
9
|
+
public static func delayedStart() {
|
|
10
|
+
RetenoSdk.delayedStart()
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
5
14
|
@objc(RetenoSdk)
|
|
6
15
|
open class RetenoSdk: RCTEventEmitter {
|
|
7
16
|
|
|
@@ -50,7 +59,7 @@ open class RetenoSdk: RCTEventEmitter {
|
|
|
50
59
|
/// ```swift
|
|
51
60
|
/// func application(_ application: UIApplication, didFinishLaunchingWithOptions ...) -> Bool {
|
|
52
61
|
/// FirebaseApp.configure()
|
|
53
|
-
///
|
|
62
|
+
/// RetenoReactNativeSdk.delayedStart()
|
|
54
63
|
/// ...
|
|
55
64
|
/// }
|
|
56
65
|
/// ```
|
package/package.json
CHANGED