notifly-sdk 3.1.2 → 3.3.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.
- package/android/build.gradle +6 -6
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/{com/notiflysdk → tech/notifly/rn}/NotiflySdkModule.kt +52 -14
- package/android/src/main/java/{com/notiflysdk → tech/notifly/rn}/NotiflySdkPackage.kt +1 -1
- package/android/src/main/java/tech/notifly/rn/NotiflySdkUtils.kt +79 -0
- package/android/src/newarch/NotiflySdkSpec.kt +1 -1
- package/android/src/oldarch/NotiflySdkSpec.kt +2 -2
- package/ios/NotiflySdk.m +1 -5
- package/ios/NotiflySdk.swift +3 -8
- package/lib/commonjs/{NativeNotiflySdk.js → NativeNotiflyReactNativeSdk.js} +2 -2
- package/lib/commonjs/NativeNotiflyReactNativeSdk.js.map +1 -0
- package/lib/commonjs/constants.js +12 -0
- package/lib/commonjs/constants.js.map +1 -0
- package/lib/commonjs/events/EventReceiver.js +60 -0
- package/lib/commonjs/events/EventReceiver.js.map +1 -0
- package/lib/commonjs/index.js +29 -45
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types/index.js +17 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/notification.js +14 -0
- package/lib/commonjs/types/notification.js.map +1 -0
- package/lib/module/NativeNotiflyReactNativeSdk.js +3 -0
- package/lib/module/NativeNotiflyReactNativeSdk.js.map +1 -0
- package/lib/module/constants.js +5 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/events/EventReceiver.js +53 -0
- package/lib/module/events/EventReceiver.js.map +1 -0
- package/lib/module/index.js +27 -41
- package/lib/module/index.js.map +1 -1
- package/lib/module/types/index.js +2 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/notification.js +7 -0
- package/lib/module/types/notification.js.map +1 -0
- package/lib/typescript/{NativeNotiflySdk.d.ts → NativeNotiflyReactNativeSdk.d.ts} +5 -8
- package/lib/typescript/NativeNotiflyReactNativeSdk.d.ts.map +1 -0
- package/lib/typescript/constants.d.ts +4 -0
- package/lib/typescript/constants.d.ts.map +1 -0
- package/lib/typescript/events/EventReceiver.d.ts +11 -0
- package/lib/typescript/events/EventReceiver.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +6 -16
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +13 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/lib/typescript/types/notification.d.ts +28 -0
- package/lib/typescript/types/notification.d.ts.map +1 -0
- package/notifly_react_native_sdk.podspec +1 -1
- package/package.json +5 -5
- package/src/{NativeNotiflySdk.ts → NativeNotiflyReactNativeSdk.ts} +5 -10
- package/src/constants.ts +3 -0
- package/src/events/EventReceiver.ts +67 -0
- package/src/index.tsx +59 -56
- package/src/types/index.ts +15 -0
- package/src/types/notification.ts +40 -0
- package/lib/commonjs/NativeNotiflySdk.js.map +0 -1
- package/lib/commonjs/types.js +0 -2
- package/lib/commonjs/types.js.map +0 -1
- package/lib/module/NativeNotiflySdk.js +0 -3
- package/lib/module/NativeNotiflySdk.js.map +0 -1
- package/lib/module/types.js +0 -2
- package/lib/module/types.js.map +0 -1
- package/lib/typescript/NativeNotiflySdk.d.ts.map +0 -1
- package/lib/typescript/types.d.ts +0 -7
- package/lib/typescript/types.d.ts.map +0 -1
- package/src/types.ts +0 -7
package/android/build.gradle
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
buildscript {
|
|
2
2
|
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
|
|
3
|
-
def kotlin_version = project.properties["
|
|
3
|
+
def kotlin_version = project.properties["NotiflyReactNativeSdk_kotlinVersion"]
|
|
4
4
|
|
|
5
5
|
repositories {
|
|
6
6
|
google()
|
|
@@ -30,11 +30,11 @@ if (isNewArchitectureEnabled()) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
def getExtOrDefault(name) {
|
|
33
|
-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["
|
|
33
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["NotiflyReactNativeSdk_" + name]
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
def getExtOrIntegerDefault(name) {
|
|
37
|
-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["
|
|
37
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["NotiflyReactNativeSdk_" + name]).toInteger()
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
android {
|
|
@@ -88,13 +88,13 @@ dependencies {
|
|
|
88
88
|
//noinspection GradleDynamicVersion
|
|
89
89
|
implementation "com.facebook.react:react-native:+"
|
|
90
90
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
91
|
-
implementation "com.github.team-michael:notifly-android-sdk:1.
|
|
91
|
+
implementation "com.github.team-michael:notifly-android-sdk:1.5.0"
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
if (isNewArchitectureEnabled()) {
|
|
95
95
|
react {
|
|
96
96
|
jsRootDir = file("../src/")
|
|
97
|
-
libraryName = "
|
|
98
|
-
codegenJavaPackageName = "
|
|
97
|
+
libraryName = "NotiflyReactNativeSdk"
|
|
98
|
+
codegenJavaPackageName = "tech.notifly.rn"
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
NotiflyReactNativeSdk_kotlinVersion=1.8.10
|
|
2
|
+
NotiflyReactNativeSdk_minSdkVersion=23
|
|
3
|
+
NotiflyReactNativeSdk_targetSdkVersion=31
|
|
4
|
+
NotiflyReactNativeSdk_compileSdkVersion=31
|
|
5
|
+
NotiflyReactNativeSdk_ndkversion=21.4.7075529
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
package
|
|
1
|
+
package tech.notifly.rn
|
|
2
2
|
|
|
3
3
|
import android.util.Log
|
|
4
|
+
import android.content.Context
|
|
5
|
+
|
|
4
6
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
5
7
|
import com.facebook.react.bridge.ReactMethod
|
|
6
8
|
import com.facebook.react.bridge.ReadableArray
|
|
7
9
|
import com.facebook.react.bridge.ReadableMap
|
|
8
10
|
import com.facebook.react.bridge.Promise
|
|
11
|
+
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
12
|
+
|
|
9
13
|
import tech.notifly.Notifly
|
|
10
14
|
import tech.notifly.NotiflyControlToken
|
|
11
15
|
import tech.notifly.NotiflySdkType
|
|
16
|
+
import tech.notifly.push.interfaces.INotificationClickEvent
|
|
17
|
+
import tech.notifly.push.interfaces.INotificationClickListener
|
|
18
|
+
|
|
19
|
+
var isNativeNotificationClickListenerRegistered = false
|
|
12
20
|
|
|
13
21
|
class NotiflyControlTokenImpl : NotiflyControlToken
|
|
22
|
+
|
|
14
23
|
class NotiflySdkModule internal constructor(private val reactContext: ReactApplicationContext) :
|
|
15
24
|
NotiflySdkSpec(reactContext) {
|
|
16
25
|
|
|
@@ -18,22 +27,19 @@ class NotiflySdkModule internal constructor(private val reactContext: ReactAppli
|
|
|
18
27
|
return NAME
|
|
19
28
|
}
|
|
20
29
|
|
|
21
|
-
// Example method
|
|
22
|
-
// See https://reactnative.dev/docs/native-modules-android
|
|
23
|
-
@ReactMethod
|
|
24
|
-
override fun multiply(a: Double, b: Double, promise: Promise) {
|
|
25
|
-
promise.resolve(a * b)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
30
|
@ReactMethod
|
|
29
31
|
override fun initialize(projectId: String, username: String, password: String, promise: Promise) {
|
|
30
32
|
try {
|
|
33
|
+
val context: Context = reactContext.currentActivity ?: reactContext.applicationContext
|
|
34
|
+
|
|
31
35
|
Notifly.setSdkType(NotiflyControlTokenImpl(), NotiflySdkType.REACT_NATIVE)
|
|
32
36
|
Notifly.setSdkVersion(
|
|
33
37
|
NotiflyControlTokenImpl(),
|
|
34
|
-
"3.
|
|
35
|
-
)
|
|
36
|
-
|
|
38
|
+
"3.3.0"
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
Notifly.initialize(context, projectId, username, password)
|
|
42
|
+
|
|
37
43
|
promise.resolve(null)
|
|
38
44
|
} catch (e: Exception) {
|
|
39
45
|
promise.reject(e)
|
|
@@ -64,12 +70,12 @@ class NotiflySdkModule internal constructor(private val reactContext: ReactAppli
|
|
|
64
70
|
@ReactMethod
|
|
65
71
|
override fun trackEvent(
|
|
66
72
|
eventName: String,
|
|
67
|
-
|
|
73
|
+
params: ReadableMap?,
|
|
68
74
|
segmentationEventParamKeys: ReadableArray?,
|
|
69
75
|
promise: Promise
|
|
70
76
|
) {
|
|
71
77
|
try {
|
|
72
|
-
val mapParams =
|
|
78
|
+
val mapParams = params?.toHashMap() ?: emptyMap<String, Any?>()
|
|
73
79
|
val listKeys = segmentationEventParamKeys?.toArrayList()?.map { it.toString() }
|
|
74
80
|
Notifly.trackEvent(
|
|
75
81
|
reactContext,
|
|
@@ -104,7 +110,39 @@ class NotiflySdkModule internal constructor(private val reactContext: ReactAppli
|
|
|
104
110
|
}
|
|
105
111
|
}
|
|
106
112
|
|
|
113
|
+
@ReactMethod
|
|
114
|
+
override fun addNotificationClickListener(promise: Promise) {
|
|
115
|
+
if (isNativeNotificationClickListenerRegistered) {
|
|
116
|
+
promise.resolve(null)
|
|
117
|
+
return
|
|
118
|
+
}
|
|
119
|
+
try {
|
|
120
|
+
Notifly.addNotificationClickListener(object : INotificationClickListener {
|
|
121
|
+
override fun onClick(event: INotificationClickEvent) {
|
|
122
|
+
Log.d("NotiflyRNSdk", "Notification clicked")
|
|
123
|
+
sendEvent(
|
|
124
|
+
"Notifly#NotificationClicked",
|
|
125
|
+
NotiflySdkUtils.convertHashMapToWritableMap(
|
|
126
|
+
NotiflySdkUtils.convertNotificationClickEventToMap(event)
|
|
127
|
+
)
|
|
128
|
+
)
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
isNativeNotificationClickListenerRegistered = true
|
|
132
|
+
promise.resolve(null)
|
|
133
|
+
} catch (e: Exception) {
|
|
134
|
+
promise.reject(e)
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
private fun sendEvent(eventName: String, params: Any) {
|
|
139
|
+
Log.d("NotiflyRNSdk", "Sending event $eventName with params $params")
|
|
140
|
+
reactContext
|
|
141
|
+
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter::class.java)
|
|
142
|
+
.emit(eventName, params)
|
|
143
|
+
}
|
|
144
|
+
|
|
107
145
|
companion object {
|
|
108
|
-
const val NAME = "
|
|
146
|
+
const val NAME = "NotiflyReactNativeSdk"
|
|
109
147
|
}
|
|
110
148
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
package tech.notifly.rn
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.bridge.Arguments
|
|
4
|
+
import com.facebook.react.bridge.WritableMap
|
|
5
|
+
import org.json.JSONException
|
|
6
|
+
|
|
7
|
+
import tech.notifly.push.interfaces.INotificationClickEvent
|
|
8
|
+
import tech.notifly.push.interfaces.INotificationClickListener
|
|
9
|
+
import tech.notifly.push.interfaces.IPushNotification
|
|
10
|
+
|
|
11
|
+
object NotiflySdkUtils {
|
|
12
|
+
@Throws(JSONException::class)
|
|
13
|
+
fun convertHashMapToWritableMap(hashMap: HashMap<String, Any>): WritableMap {
|
|
14
|
+
val writableMap: WritableMap = Arguments.createMap()
|
|
15
|
+
|
|
16
|
+
for ((key, value) in hashMap) {
|
|
17
|
+
when (value) {
|
|
18
|
+
is String -> writableMap.putString(key, value)
|
|
19
|
+
is Boolean -> writableMap.putBoolean(key, value)
|
|
20
|
+
is Int -> writableMap.putInt(key, value)
|
|
21
|
+
is Double -> writableMap.putDouble(key, value)
|
|
22
|
+
is Float -> writableMap.putDouble(key, value.toDouble())
|
|
23
|
+
is Long -> writableMap.putDouble(key, value.toDouble())
|
|
24
|
+
is HashMap<*, *> -> {
|
|
25
|
+
@Suppress("UNCHECKED_CAST")
|
|
26
|
+
writableMap.putMap(key, convertHashMapToWritableMap(value as HashMap<String, Any>))
|
|
27
|
+
}
|
|
28
|
+
else -> writableMap.putNull(key)
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return writableMap
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@Throws(JSONException::class)
|
|
36
|
+
fun convertNotificationClickEventToMap(event: INotificationClickEvent): HashMap<String, Any> {
|
|
37
|
+
val hash = HashMap<String, Any>()
|
|
38
|
+
|
|
39
|
+
hash["notification"] = convertNotificationToMap(event.notification)
|
|
40
|
+
|
|
41
|
+
return hash
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@Throws(JSONException::class)
|
|
45
|
+
fun convertNotificationToMap(notification: IPushNotification): HashMap<String, Any> {
|
|
46
|
+
val hash = HashMap<String, Any>()
|
|
47
|
+
|
|
48
|
+
if (notification.body != null) {
|
|
49
|
+
hash["body"] = notification.body!!
|
|
50
|
+
}
|
|
51
|
+
if (notification.title != null) {
|
|
52
|
+
hash["title"] = notification.title!!
|
|
53
|
+
}
|
|
54
|
+
if (notification.campaignId != null) {
|
|
55
|
+
hash["campaignId"] = notification.campaignId!!
|
|
56
|
+
}
|
|
57
|
+
if (notification.androidNotificationId != null) {
|
|
58
|
+
hash["androidNotificationId"] = notification.androidNotificationId!!
|
|
59
|
+
}
|
|
60
|
+
if (notification.notiflyMessageId != null) {
|
|
61
|
+
hash["notiflyMessageId"] = notification.notiflyMessageId!!
|
|
62
|
+
}
|
|
63
|
+
if (notification.importance != null) {
|
|
64
|
+
hash["importance"] = notification.importance!!.ordinal
|
|
65
|
+
}
|
|
66
|
+
if (notification.url != null) {
|
|
67
|
+
hash["url"] = notification.url!!
|
|
68
|
+
}
|
|
69
|
+
if (notification.imageUrl != null) {
|
|
70
|
+
hash["imageUrl"] = notification.imageUrl!!
|
|
71
|
+
}
|
|
72
|
+
hash["sentTime"] = notification.sentTime
|
|
73
|
+
hash["ttl"] = notification.ttl
|
|
74
|
+
hash["customData"] = notification.customData
|
|
75
|
+
hash["rawPayload"] = notification.rawPayload
|
|
76
|
+
|
|
77
|
+
return hash
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
package
|
|
1
|
+
package tech.notifly.rn
|
|
2
2
|
|
|
3
3
|
import android.content.Context
|
|
4
4
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
@@ -10,7 +10,6 @@ import com.facebook.react.bridge.Promise
|
|
|
10
10
|
abstract class NotiflySdkSpec internal constructor(context: ReactApplicationContext) :
|
|
11
11
|
ReactContextBaseJavaModule(context) {
|
|
12
12
|
|
|
13
|
-
abstract fun multiply(a: Double, b: Double, promise: Promise)
|
|
14
13
|
abstract fun initialize(projectId: String, username: String, password: String, promise: Promise)
|
|
15
14
|
abstract fun setUserId(userId: String?, promise: Promise)
|
|
16
15
|
abstract fun setUserProperties(params: ReadableMap, promise: Promise)
|
|
@@ -22,4 +21,5 @@ abstract class NotiflySdkSpec internal constructor(context: ReactApplicationCont
|
|
|
22
21
|
)
|
|
23
22
|
abstract fun setLogLevel(logLevel: Int, promise: Promise)
|
|
24
23
|
abstract fun disableInAppMessage(promise: Promise)
|
|
24
|
+
abstract fun addNotificationClickListener(promise: Promise)
|
|
25
25
|
}
|
package/ios/NotiflySdk.m
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
#import <React/RCTBridgeModule.h>
|
|
2
2
|
|
|
3
|
-
@interface RCT_EXTERN_MODULE(
|
|
4
|
-
|
|
5
|
-
RCT_EXTERN_METHOD(multiply:(float)a withB:(float)b
|
|
6
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
7
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
3
|
+
@interface RCT_EXTERN_MODULE(NotiflyReactNativeSdk, NSObject)
|
|
8
4
|
|
|
9
5
|
RCT_EXTERN_METHOD(initialize:(NSString)projectId withUsername:(NSString)username withPassword:(NSString)password withResolver:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject)
|
|
10
6
|
|
package/ios/NotiflySdk.swift
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import Foundation
|
|
2
2
|
import notifly_sdk
|
|
3
3
|
|
|
4
|
-
@objc(
|
|
5
|
-
class
|
|
6
|
-
@objc(multiply:withB:withResolver:withRejecter:)
|
|
7
|
-
func multiply(a: Float, b: Float, resolve: RCTPromiseResolveBlock, reject _: RCTPromiseRejectBlock) {
|
|
8
|
-
resolve(a * b)
|
|
9
|
-
}
|
|
10
|
-
|
|
4
|
+
@objc(NotiflyReactNativeSdk)
|
|
5
|
+
class NotiflyReactNativeSdk: NSObject {
|
|
11
6
|
@objc(initialize:withUsername:withPassword:withResolver:withRejecter:)
|
|
12
7
|
func initialize(projectId: String, username: String, password: String, resolve: RCTPromiseResolveBlock, reject _: RCTPromiseRejectBlock) {
|
|
13
8
|
Notifly.setSdkType(type: "react_native")
|
|
14
|
-
Notifly.setSdkVersion(version: "3.
|
|
9
|
+
Notifly.setSdkVersion(version: "3.3.0") // TODO: get version from package.json
|
|
15
10
|
Notifly.initialize(projectId: projectId, username: username, password: password)
|
|
16
11
|
resolve(nil)
|
|
17
12
|
}
|
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var _default = _reactNative.TurboModuleRegistry.getEnforcing('
|
|
8
|
+
var _default = _reactNative.TurboModuleRegistry.getEnforcing('NotiflyReactNativeSdk');
|
|
9
9
|
exports.default = _default;
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=NativeNotiflyReactNativeSdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","TurboModuleRegistry","getEnforcing","exports","default"],"sourceRoot":"../../src","sources":["NativeNotiflyReactNativeSdk.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAqE,IAAAC,QAAA,GAqBtDC,gCAAmB,CAACC,YAAY,CAAO,uBAAuB,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAJ,QAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EventNames = void 0;
|
|
7
|
+
let EventNames = /*#__PURE__*/function (EventNames) {
|
|
8
|
+
EventNames["NOTIFICATION_CLICKED"] = "Notifly#NotificationClicked";
|
|
9
|
+
return EventNames;
|
|
10
|
+
}({});
|
|
11
|
+
exports.EventNames = EventNames;
|
|
12
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["EventNames","exports"],"sourceRoot":"../../src","sources":["constants.ts"],"mappings":";;;;;;IAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAAAC,OAAA,CAAAD,UAAA,GAAAA,UAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _constants = require("../constants");
|
|
9
|
+
class EventReceiver {
|
|
10
|
+
eventListenerArrayMap = new Map();
|
|
11
|
+
constructor(nativeNotiflySdk) {
|
|
12
|
+
this.nativeNotiflySdk = nativeNotiflySdk;
|
|
13
|
+
this.notiflyEventEmitter = new _reactNative.NativeEventEmitter(this.nativeNotiflySdk);
|
|
14
|
+
}
|
|
15
|
+
addEventListener(eventName, handler) {
|
|
16
|
+
const existings = this.eventListenerArrayMap.get(eventName);
|
|
17
|
+
if (existings && existings.length > 0) {
|
|
18
|
+
existings.push(handler);
|
|
19
|
+
} else {
|
|
20
|
+
this.eventListenerArrayMap.set(eventName, [handler]);
|
|
21
|
+
this.notiflyEventEmitter.addListener(eventName, event => {
|
|
22
|
+
const listeners = this.eventListenerArrayMap.get(eventName);
|
|
23
|
+
if (listeners) {
|
|
24
|
+
listeners.forEach(listener => listener(this.transformEventAccordingToType(eventName, event)));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
removeEventListener(eventName, handler) {
|
|
30
|
+
const existings = this.eventListenerArrayMap.get(eventName);
|
|
31
|
+
if (existings) {
|
|
32
|
+
const index = existings.indexOf(handler);
|
|
33
|
+
if (index !== -1) {
|
|
34
|
+
existings.splice(index, 1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
transformEventAccordingToType(eventName, payload) {
|
|
39
|
+
if (eventName === _constants.EventNames.NOTIFICATION_CLICKED) {
|
|
40
|
+
var _payload$notification;
|
|
41
|
+
// Transform rawPayload as Object as it is stringified in native code
|
|
42
|
+
const raw = payload === null || payload === void 0 ? void 0 : (_payload$notification = payload.notification) === null || _payload$notification === void 0 ? void 0 : _payload$notification.rawPayload;
|
|
43
|
+
try {
|
|
44
|
+
return raw && typeof raw === 'string' ? {
|
|
45
|
+
...payload,
|
|
46
|
+
notification: {
|
|
47
|
+
...payload.notification,
|
|
48
|
+
rawPayload: JSON.parse(raw)
|
|
49
|
+
}
|
|
50
|
+
} : payload;
|
|
51
|
+
} catch (e) {
|
|
52
|
+
console.error('[Notifly React Native SDK] Error while parsing rawPayload. Payload will be returned as is.');
|
|
53
|
+
return payload;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return payload;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.default = EventReceiver;
|
|
60
|
+
//# sourceMappingURL=EventReceiver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_constants","EventReceiver","eventListenerArrayMap","Map","constructor","nativeNotiflySdk","notiflyEventEmitter","NativeEventEmitter","addEventListener","eventName","handler","existings","get","length","push","set","addListener","event","listeners","forEach","listener","transformEventAccordingToType","removeEventListener","index","indexOf","splice","payload","EventNames","NOTIFICATION_CLICKED","_payload$notification","raw","notification","rawPayload","JSON","parse","e","console","error","exports","default"],"sourceRoot":"../../../src","sources":["events/EventReceiver.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAIe,MAAME,aAAa,CAAC;EAGzBC,qBAAqB,GAAsC,IAAIC,GAAG,CAAC,CAAC;EAE5EC,WAAWA,CAACC,gBAA8B,EAAE;IAC1C,IAAI,CAACA,gBAAgB,GAAGA,gBAAgB;IACxC,IAAI,CAACC,mBAAmB,GAAG,IAAIC,+BAAkB,CAAC,IAAI,CAACF,gBAAgB,CAAC;EAC1E;EAEAG,gBAAgBA,CAAIC,SAAiB,EAAEC,OAA2B,EAAE;IAClE,MAAMC,SAAS,GAAG,IAAI,CAACT,qBAAqB,CAACU,GAAG,CAACH,SAAS,CAAC;IAC3D,IAAIE,SAAS,IAAIA,SAAS,CAACE,MAAM,GAAG,CAAC,EAAE;MACrCF,SAAS,CAACG,IAAI,CAACJ,OAAO,CAAC;IACzB,CAAC,MAAM;MACL,IAAI,CAACR,qBAAqB,CAACa,GAAG,CAACN,SAAS,EAAE,CAACC,OAAO,CAAC,CAAC;MACpD,IAAI,CAACJ,mBAAmB,CAACU,WAAW,CAACP,SAAS,EAAGQ,KAAK,IAAK;QACzD,MAAMC,SAAS,GAAG,IAAI,CAAChB,qBAAqB,CAACU,GAAG,CAACH,SAAS,CAAC;QAC3D,IAAIS,SAAS,EAAE;UACbA,SAAS,CAACC,OAAO,CAAEC,QAAQ,IACzBA,QAAQ,CAAC,IAAI,CAACC,6BAA6B,CAACZ,SAAS,EAAEQ,KAAK,CAAC,CAC/D,CAAC;QACH;MACF,CAAC,CAAC;IACJ;EACF;EAEAK,mBAAmBA,CAAIb,SAAiB,EAAEC,OAA2B,EAAE;IACrE,MAAMC,SAAS,GAAG,IAAI,CAACT,qBAAqB,CAACU,GAAG,CAACH,SAAS,CAAC;IAC3D,IAAIE,SAAS,EAAE;MACb,MAAMY,KAAK,GAAGZ,SAAS,CAACa,OAAO,CAACd,OAAO,CAAC;MACxC,IAAIa,KAAK,KAAK,CAAC,CAAC,EAAE;QAChBZ,SAAS,CAACc,MAAM,CAACF,KAAK,EAAE,CAAC,CAAC;MAC5B;IACF;EACF;EAEQF,6BAA6BA,CAACZ,SAAiB,EAAEiB,OAAY,EAAE;IACrE,IAAIjB,SAAS,KAAKkB,qBAAU,CAACC,oBAAoB,EAAE;MAAA,IAAAC,qBAAA;MACjD;MACA,MAAMC,GAAG,GAAGJ,OAAO,aAAPA,OAAO,wBAAAG,qBAAA,GAAPH,OAAO,CAAEK,YAAY,cAAAF,qBAAA,uBAArBA,qBAAA,CAAuBG,UAAU;MAC7C,IAAI;QACF,OAAOF,GAAG,IAAI,OAAOA,GAAG,KAAK,QAAQ,GACjC;UACE,GAAGJ,OAAO;UACVK,YAAY,EAAE;YACZ,GAAGL,OAAO,CAACK,YAAY;YACvBC,UAAU,EAAEC,IAAI,CAACC,KAAK,CAACJ,GAAG;UAC5B;QACF,CAAC,GACDJ,OAAO;MACb,CAAC,CAAC,OAAOS,CAAC,EAAE;QACVC,OAAO,CAACC,KAAK,CACX,4FACF,CAAC;QACD,OAAOX,OAAO;MAChB;IACF;IAEA,OAAOA,OAAO;EAChB;AACF;AAACY,OAAA,CAAAC,OAAA,GAAAtC,aAAA"}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.addNotificationClickListener = addNotificationClickListener;
|
|
6
7
|
exports.default = void 0;
|
|
7
8
|
exports.disableInAppMessage = disableInAppMessage;
|
|
8
9
|
exports.initialize = initialize;
|
|
9
|
-
exports.multiply = multiply;
|
|
10
|
-
exports.notiflyBackgroundHandler = notiflyBackgroundHandler;
|
|
11
|
-
exports.registerFCMToken = registerFCMToken;
|
|
12
10
|
exports.setLogLevel = setLogLevel;
|
|
13
|
-
exports.setNotiflyBackgroundMessageHandler = setNotiflyBackgroundMessageHandler;
|
|
14
11
|
exports.setUserId = setUserId;
|
|
15
12
|
exports.setUserProperties = setUserProperties;
|
|
16
13
|
exports.trackEvent = trackEvent;
|
|
17
14
|
var _reactNative = require("react-native");
|
|
15
|
+
var _EventReceiver = _interopRequireDefault(require("./events/EventReceiver"));
|
|
16
|
+
var _constants = require("./constants");
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
const LINKING_ERROR = `The package 'notifly-sdk' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
|
|
19
19
|
ios: "- You have run 'pod install'\n",
|
|
20
20
|
default: ''
|
|
@@ -22,66 +22,52 @@ const LINKING_ERROR = `The package 'notifly-sdk' doesn't seem to be linked. Make
|
|
|
22
22
|
|
|
23
23
|
// @ts-expect-error
|
|
24
24
|
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
25
|
-
const
|
|
26
|
-
const
|
|
25
|
+
const NotiflyReactNativeSdkModule = isTurboModuleEnabled ? require('./NativeNotiflyReactNativeSdk').default : _reactNative.NativeModules.NotiflyReactNativeSdk;
|
|
26
|
+
const NotiflyReactNativeSdk = NotiflyReactNativeSdkModule ? NotiflyReactNativeSdkModule : new Proxy({}, {
|
|
27
27
|
get() {
|
|
28
28
|
throw new Error(LINKING_ERROR);
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
let useCustomClickHandler = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
36
|
-
// @deprecated useCustomClickHandler is deprecated since version 2.3.0
|
|
37
|
-
if (typeof useCustomClickHandler !== 'undefined') {
|
|
38
|
-
console.warn('Warning: useCustomClickHandler of notifly.initialize is deprecated and will be removed in the next major release.');
|
|
39
|
-
}
|
|
40
|
-
return NotiflySdk.initialize(projectId, username, password);
|
|
31
|
+
const eventReceiver = NotiflyReactNativeSdkModule && _reactNative.Platform.OS === 'android' ? new _EventReceiver.default(NotiflyReactNativeSdkModule) : null;
|
|
32
|
+
let isNativeNotificationClickListenerRegistered = false;
|
|
33
|
+
function initialize(params) {
|
|
34
|
+
return NotiflyReactNativeSdk.initialize(params.projectId, params.username, params.password);
|
|
41
35
|
}
|
|
42
36
|
function setUserId(userId) {
|
|
43
|
-
return
|
|
37
|
+
return NotiflyReactNativeSdk.setUserId(userId);
|
|
44
38
|
}
|
|
45
39
|
function setUserProperties(properties) {
|
|
46
|
-
return
|
|
40
|
+
return NotiflyReactNativeSdk.setUserProperties(properties);
|
|
47
41
|
}
|
|
48
42
|
function trackEvent(eventName) {
|
|
49
43
|
let eventParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
50
44
|
let segmentationEventParamKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
51
|
-
return
|
|
45
|
+
return NotiflyReactNativeSdk.trackEvent(eventName, eventParams, segmentationEventParamKeys);
|
|
52
46
|
}
|
|
53
47
|
function setLogLevel(logLevel) {
|
|
54
48
|
// only implemented on Android
|
|
55
49
|
if (_reactNative.Platform.OS === 'android') {
|
|
56
|
-
return
|
|
50
|
+
return NotiflyReactNativeSdk.setLogLevel(logLevel);
|
|
51
|
+
} else {
|
|
52
|
+
console.error('[Notifly React Native SDK] setLogLevel is only supported on Android.');
|
|
57
53
|
}
|
|
58
54
|
return Promise.resolve();
|
|
59
55
|
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated Since version 2.3.0.
|
|
63
|
-
*/
|
|
64
|
-
function notiflyBackgroundHandler(_remoteMessage) {
|
|
65
|
-
console.warn('Warning: notifly.notiflyBackgroundHandler(remoteMessage) is deprecated and will be removed in the next major release. You do not need to call this method anymore. remoteMessage is now handled automatically.');
|
|
66
|
-
return Promise.resolve();
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @deprecated Since version 2.3.0.
|
|
71
|
-
*/
|
|
72
|
-
function setNotiflyBackgroundMessageHandler() {
|
|
73
|
-
console.warn('Warning: notifly.setNotiflyBackgroundMessageHandler() is deprecated and will be removed in the next major release. You do not need to call this method anymore. remoteMessage is now handled automatically.');
|
|
74
|
-
return Promise.resolve();
|
|
75
|
-
}
|
|
76
56
|
function disableInAppMessage() {
|
|
77
|
-
return
|
|
57
|
+
return NotiflyReactNativeSdk.disableInAppMessage();
|
|
78
58
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
-
|
|
59
|
+
function addNotificationClickListener(listener) {
|
|
60
|
+
if (eventReceiver) {
|
|
61
|
+
// only implemented on Android
|
|
62
|
+
eventReceiver.addEventListener(_constants.EventNames.NOTIFICATION_CLICKED, listener);
|
|
63
|
+
if (!isNativeNotificationClickListenerRegistered) {
|
|
64
|
+
NotiflyReactNativeSdk.addNotificationClickListener();
|
|
65
|
+
isNativeNotificationClickListenerRegistered = true;
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
console.error('[Notifly React Native SDK] addNotificationClickListener is only supported on Android.');
|
|
83
69
|
}
|
|
84
|
-
return
|
|
70
|
+
return Promise.resolve();
|
|
85
71
|
}
|
|
86
72
|
const notifly = {
|
|
87
73
|
initialize,
|
|
@@ -89,10 +75,8 @@ const notifly = {
|
|
|
89
75
|
setUserProperties,
|
|
90
76
|
trackEvent,
|
|
91
77
|
setLogLevel,
|
|
92
|
-
notiflyBackgroundHandler,
|
|
93
|
-
setNotiflyBackgroundMessageHandler,
|
|
94
78
|
disableInAppMessage,
|
|
95
|
-
|
|
79
|
+
addNotificationClickListener
|
|
96
80
|
};
|
|
97
81
|
var _default = notifly;
|
|
98
82
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_EventReceiver","_interopRequireDefault","_constants","obj","__esModule","default","LINKING_ERROR","Platform","select","ios","isTurboModuleEnabled","global","__turboModuleProxy","NotiflyReactNativeSdkModule","NativeModules","NotiflyReactNativeSdk","Proxy","get","Error","eventReceiver","OS","EventReceiver","isNativeNotificationClickListenerRegistered","initialize","params","projectId","username","password","setUserId","userId","setUserProperties","properties","trackEvent","eventName","eventParams","arguments","length","undefined","segmentationEventParamKeys","setLogLevel","logLevel","console","error","Promise","resolve","disableInAppMessage","addNotificationClickListener","listener","addEventListener","EventNames","NOTIFICATION_CLICKED","notifly","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _notification = require("./notification");
|
|
7
|
+
Object.keys(_notification).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _notification[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _notification[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_notification","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.OSNotificationImportance = void 0;
|
|
7
|
+
let OSNotificationImportance = /*#__PURE__*/function (OSNotificationImportance) {
|
|
8
|
+
OSNotificationImportance[OSNotificationImportance["LOW"] = 0] = "LOW";
|
|
9
|
+
OSNotificationImportance[OSNotificationImportance["NORMAL"] = 1] = "NORMAL";
|
|
10
|
+
OSNotificationImportance[OSNotificationImportance["HIGH"] = 2] = "HIGH";
|
|
11
|
+
return OSNotificationImportance;
|
|
12
|
+
}({});
|
|
13
|
+
exports.OSNotificationImportance = OSNotificationImportance;
|
|
14
|
+
//# sourceMappingURL=notification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["OSNotificationImportance","exports"],"sourceRoot":"../../../src","sources":["types/notification.ts"],"mappings":";;;;;;IAIYA,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;AAAAC,OAAA,CAAAD,wBAAA,GAAAA,wBAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeNotiflyReactNativeSdk.ts"],"mappings":"AAAA,SAA2BA,mBAAmB,QAAQ,cAAc;AAqBpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["EventNames"],"sourceRoot":"../../src","sources":["constants.ts"],"mappings":"AAAA,WAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA"}
|