react-native-notifyvisitors 4.5.2 → 4.5.3
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/.classpath +1 -1
- package/android/.settings/org.eclipse.jdt.core.prefs +3 -3
- package/android/build.gradle +5 -6
- package/android/src/main/java/com/rn_notifyvisitors/RNNotifyVisitorsEmbedViewManager.java +35 -0
- package/android/src/main/java/com/rn_notifyvisitors/RNNotifyvisitorsModule.java +41 -3
- package/android/src/main/java/com/rn_notifyvisitors/RNNotifyvisitorsPackage.java +6 -2
- package/index.d.ts +9 -4
- package/index.js +20 -0
- package/ios/RNNotifyvisitors/RCTNVEventEmitter.m +62 -1
- package/ios/RNNotifyvisitors/RNNVExtensionService.h +0 -1
- package/ios/RNNotifyvisitors/RNNVNativeDisplayViewManager.h +22 -0
- package/ios/RNNotifyvisitors/RNNVNativeDisplayViewManager.m +50 -0
- package/ios/RNNotifyvisitors/RNNotifyvisitors.h +0 -2
- package/ios/RNNotifyvisitors/RNNotifyvisitors.m +2 -2
- package/ios/RNNotifyvisitors.xcodeproj/project.pbxproj +8 -4
- package/ios/notifyvisitors.xcframework/Info.plist +7 -7
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Headers/notifyvisitors.h +3 -1
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Info.plist +0 -0
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/_CodeSignature/CodeResources +3 -3
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/notifyvisitors +0 -0
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitors.framework/Versions/A/Headers/notifyvisitors.h +3 -1
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitors.framework/Versions/A/Resources/Info.plist +2 -2
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitors.framework/Versions/A/_CodeSignature/CodeResources +3 -3
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitors.framework/Versions/A/notifyvisitors +0 -0
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/Headers/notifyvisitors.h +3 -1
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/Info.plist +0 -0
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/_CodeSignature/CodeResources +3 -3
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/notifyvisitors +0 -0
- package/ios/notifyvisitorsNudges.xcframework/Info.plist +61 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64/notifyvisitorsNudges.framework/Headers/notifyvisitorsNudges-Swift.h +355 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64/notifyvisitorsNudges.framework/Headers/notifyvisitorsNudges.h +18 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64/notifyvisitorsNudges.framework/Info.plist +0 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64/notifyvisitorsNudges.framework/Modules/module.modulemap +11 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios.abi.json +2130 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios.private.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64/notifyvisitorsNudges.framework/notifyvisitorsNudges +0 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Headers/notifyvisitorsNudges-Swift.h +706 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Headers/notifyvisitorsNudges.h +18 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Modules/module.modulemap +11 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios-macabi.abi.json +2130 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios-macabi.private.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios-macabi.swiftdoc +0 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios-macabi.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Modules/notifyvisitorsNudges.swiftmodule/x86_64-apple-ios-macabi.abi.json +2130 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Modules/notifyvisitorsNudges.swiftmodule/x86_64-apple-ios-macabi.private.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Modules/notifyvisitorsNudges.swiftmodule/x86_64-apple-ios-macabi.swiftdoc +0 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Modules/notifyvisitorsNudges.swiftmodule/x86_64-apple-ios-macabi.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/Resources/Info.plist +50 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitorsNudges.framework/Versions/A/notifyvisitorsNudges +0 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Headers/notifyvisitorsNudges-Swift.h +706 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Headers/notifyvisitorsNudges.h +18 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Info.plist +0 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Modules/module.modulemap +11 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios-simulator.abi.json +2130 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/arm64-apple-ios-simulator.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/x86_64-apple-ios-simulator.abi.json +2130 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/Modules/notifyvisitorsNudges.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +41 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/_CodeSignature/CodeResources +245 -0
- package/ios/notifyvisitorsNudges.xcframework/ios-arm64_x86_64-simulator/notifyvisitorsNudges.framework/notifyvisitorsNudges +0 -0
- package/package.json +1 -1
- package/react-native-notifyvisitors.podspec +3 -1
- package/android/bin/.project +0 -34
- package/android/bin/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/bin/build.gradle +0 -45
- package/android/bin/src/main/AndroidManifest.xml +0 -24
- package/android/bin/src/main/java/com/rn_notifyvisitors/RNNotifyvisitorsModule.class +0 -0
- package/android/bin/src/main/java/com/rn_notifyvisitors/RNNotifyvisitorsPackage.class +0 -0
- package/android/bin/src/main/res/values/strings.xml +0 -3
package/android/.classpath
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<classpath>
|
|
3
|
-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-
|
|
3
|
+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-19/"/>
|
|
4
4
|
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
|
5
5
|
<classpathentry kind="output" path="bin/default"/>
|
|
6
6
|
</classpath>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
eclipse.preferences.version=1
|
|
2
|
-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=
|
|
3
|
-
org.eclipse.jdt.core.compiler.compliance=
|
|
4
|
-
org.eclipse.jdt.core.compiler.source=
|
|
2
|
+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=19
|
|
3
|
+
org.eclipse.jdt.core.compiler.compliance=19
|
|
4
|
+
org.eclipse.jdt.core.compiler.source=19
|
package/android/build.gradle
CHANGED
|
@@ -12,12 +12,12 @@ buildscript {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
android {
|
|
15
|
-
compileSdk safeExtGet('compileSdk',
|
|
15
|
+
compileSdk safeExtGet('compileSdk', 35)
|
|
16
16
|
namespace = "com.rn_notifyvisitors"
|
|
17
17
|
|
|
18
18
|
defaultConfig {
|
|
19
19
|
minSdkVersion safeExtGet('minSdkVersion', 23)
|
|
20
|
-
targetSdkVersion safeExtGet('targetSdkVersion',
|
|
20
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 35)
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
buildTypes {
|
|
@@ -35,10 +35,9 @@ android {
|
|
|
35
35
|
dependencies {
|
|
36
36
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
37
37
|
implementation 'com.facebook.react:react-native:+'
|
|
38
|
-
implementation('com.notifyvisitors.notifyvisitors:notifyvisitors:v5.5.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
implementation platform('com.google.firebase:firebase-bom:30.3.1')
|
|
38
|
+
implementation('com.notifyvisitors.notifyvisitors:notifyvisitors:v5.5.4')
|
|
39
|
+
implementation("com.notifyvisitors.nudges:notifyvisitors-nudges:v0.0.3")
|
|
40
|
+
implementation platform('com.google.firebase:firebase-bom:33.16.0')
|
|
42
41
|
implementation ('com.google.firebase:firebase-messaging')
|
|
43
42
|
implementation ('com.google.android.gms:play-services-location')
|
|
44
43
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
package com.rn_notifyvisitors;
|
|
2
|
+
|
|
3
|
+
import android.util.Log;
|
|
4
|
+
|
|
5
|
+
import androidx.annotation.NonNull;
|
|
6
|
+
|
|
7
|
+
import com.facebook.react.uimanager.SimpleViewManager;
|
|
8
|
+
import com.facebook.react.uimanager.ThemedReactContext;
|
|
9
|
+
import com.facebook.react.uimanager.annotations.ReactProp;
|
|
10
|
+
|
|
11
|
+
import com.notifyvisitors.nudges.NotifyVisitorsNativeDisplay;
|
|
12
|
+
|
|
13
|
+
public class RNNotifyVisitorsEmbedViewManager extends SimpleViewManager<NotifyVisitorsNativeDisplay> {
|
|
14
|
+
public static final String REACT_CLASS = "NotifyvisitorsNativeDisplay";
|
|
15
|
+
|
|
16
|
+
@NonNull
|
|
17
|
+
@Override
|
|
18
|
+
public String getName() {
|
|
19
|
+
return REACT_CLASS;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@NonNull
|
|
23
|
+
@Override
|
|
24
|
+
protected NotifyVisitorsNativeDisplay createViewInstance(@NonNull ThemedReactContext themedReactContext) {
|
|
25
|
+
// default valueKey; will set via @ReactProp later
|
|
26
|
+
NotifyVisitorsNativeDisplay nativeDisplay = new NotifyVisitorsNativeDisplay(themedReactContext);
|
|
27
|
+
//nativeDisplay.loadContent("home");
|
|
28
|
+
return nativeDisplay;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@ReactProp(name = "propertyName")
|
|
32
|
+
public void setPropertyName(NotifyVisitorsNativeDisplay view, String propertyName) {
|
|
33
|
+
view.loadContent(propertyName);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -26,6 +26,7 @@ import com.notifyvisitors.notifyvisitors.interfaces.NotificationListDetailsCallb
|
|
|
26
26
|
import com.notifyvisitors.notifyvisitors.interfaces.OnCenterCountListener;
|
|
27
27
|
import com.notifyvisitors.notifyvisitors.interfaces.OnCenterDataListener;
|
|
28
28
|
import com.notifyvisitors.notifyvisitors.interfaces.OnEventTrackListener;
|
|
29
|
+
import com.notifyvisitors.notifyvisitors.interfaces.OnNotificationClicksHandler;
|
|
29
30
|
import com.notifyvisitors.notifyvisitors.interfaces.OnPushRuntimePermission;
|
|
30
31
|
import com.notifyvisitors.notifyvisitors.permission.NVPopupDesign;
|
|
31
32
|
import com.notifyvisitors.notifyvisitors.push.NVNotificationChannels;
|
|
@@ -49,7 +50,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
49
50
|
|
|
50
51
|
private final ReactApplicationContext reactContext;
|
|
51
52
|
private static final String TAG = "RN-NotifyVisitors";
|
|
52
|
-
private static final String PLUGIN_VERSION = "4.5.
|
|
53
|
+
private static final String PLUGIN_VERSION = "4.5.3";
|
|
53
54
|
|
|
54
55
|
private String PUSH_BANNER_CLICK_EVENT = "nv_push_banner_click";
|
|
55
56
|
private String CHAT_BOT_BUTTON_CLICK = "nv_chat_bot_button_click";
|
|
@@ -59,6 +60,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
59
60
|
private String COMMON_SHOW_EVENT_CALLBACK = "nv_common_show_event_callback";
|
|
60
61
|
private String CENTER_CALLBACK = "nv_center_callback";
|
|
61
62
|
private String KNOWN_USER_IDENTIFIED_CALLBACK = "nv_known_user_identified_callback";
|
|
63
|
+
private String NV_NOTIFICATION_CLICK_CALLBACK = "nv_notification_click_callback";
|
|
62
64
|
|
|
63
65
|
String finalData;
|
|
64
66
|
|
|
@@ -67,6 +69,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
67
69
|
Callback commonCallback;
|
|
68
70
|
Callback centerCallback;
|
|
69
71
|
Callback onKnownUserIdentifiedCallback;
|
|
72
|
+
Callback onNotificationClickCallback;
|
|
70
73
|
|
|
71
74
|
private String tab1Label, tab1Name;
|
|
72
75
|
private String tab2Label, tab2Name;
|
|
@@ -105,7 +108,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
105
108
|
try {
|
|
106
109
|
Log.i(TAG, "INITIALIZE");
|
|
107
110
|
Log.i(TAG, "RN-NV PLUGIN VERSION : " + PLUGIN_VERSION);
|
|
108
|
-
Activity currentActivity = getCurrentActivity();
|
|
111
|
+
Activity currentActivity = reactContext.getCurrentActivity();
|
|
109
112
|
if (currentActivity != null) {
|
|
110
113
|
Intent intent = currentActivity.getIntent();
|
|
111
114
|
if (intent != null) {
|
|
@@ -724,7 +727,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
724
727
|
if (screenName == null || screenName.equalsIgnoreCase("empty")) {
|
|
725
728
|
Log.i(TAG, "SCREEN NAME IS MISSING");
|
|
726
729
|
} else {
|
|
727
|
-
mActivity = getCurrentActivity();
|
|
730
|
+
// mActivity = getCurrentActivity();
|
|
728
731
|
mActivity = reactContext.getCurrentActivity();
|
|
729
732
|
if (mActivity != null) {
|
|
730
733
|
mActivity.runOnUiThread(new Runnable() {
|
|
@@ -992,6 +995,22 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
992
995
|
}
|
|
993
996
|
}
|
|
994
997
|
|
|
998
|
+
@ReactMethod
|
|
999
|
+
public void getSessionData(final Callback callback) {
|
|
1000
|
+
try {
|
|
1001
|
+
Log.i(TAG, "GET SESSION DATA !!");
|
|
1002
|
+
JSONObject data = NotifyVisitorsApi.getInstance(reactContext).getSessionData();
|
|
1003
|
+
if (data != null) {
|
|
1004
|
+
callback.invoke(data.toString());
|
|
1005
|
+
} else {
|
|
1006
|
+
callback.invoke("unavailable");
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
} catch (Exception e) {
|
|
1010
|
+
Log.i(TAG, "GET SESSION DATA ERROR : " + e);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
995
1014
|
/* 12 - Play Store / App Store Rating */
|
|
996
1015
|
@ReactMethod
|
|
997
1016
|
public void requestInAppReview(final Callback callback) {
|
|
@@ -1068,6 +1087,25 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
1068
1087
|
}
|
|
1069
1088
|
}
|
|
1070
1089
|
|
|
1090
|
+
@ReactMethod
|
|
1091
|
+
public void notificationClickCallback(final Callback callback) {
|
|
1092
|
+
onNotificationClickCallback = callback;
|
|
1093
|
+
|
|
1094
|
+
try {
|
|
1095
|
+
Log.i(TAG, "NOTIFICATION CLICK CALLBACK !!");
|
|
1096
|
+
NotifyVisitorsApi.getInstance(reactContext).notificationClickCallback(new OnNotificationClicksHandler() {
|
|
1097
|
+
@Override
|
|
1098
|
+
public void onClick(JSONObject jsonObject) {
|
|
1099
|
+
if (jsonObject != null) {
|
|
1100
|
+
sendEvent(NV_NOTIFICATION_CLICK_CALLBACK, jsonObject.toString());
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
});
|
|
1104
|
+
} catch (Exception e) {
|
|
1105
|
+
Log.i(TAG, "NOTIFICATION CLICK CALLBACK ERROR : " + e);
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1071
1109
|
/* 15 - Unique NotifyVisitors Identification */
|
|
1072
1110
|
@ReactMethod
|
|
1073
1111
|
public void getNvUID(final Callback callback) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
package com.rn_notifyvisitors;
|
|
2
2
|
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
|
|
3
5
|
import java.util.Arrays;
|
|
4
6
|
import java.util.Collections;
|
|
5
7
|
import java.util.List;
|
|
@@ -21,8 +23,10 @@ public class RNNotifyvisitorsPackage implements ReactPackage {
|
|
|
21
23
|
return Collections.emptyList();
|
|
22
24
|
}
|
|
23
25
|
|
|
26
|
+
@NonNull
|
|
24
27
|
@Override
|
|
25
|
-
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
26
|
-
return Collections.emptyList();
|
|
28
|
+
public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
|
|
29
|
+
//return Collections.emptyList();
|
|
30
|
+
return List.of(new RNNotifyVisitorsEmbedViewManager());
|
|
27
31
|
}
|
|
28
32
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ViewProps } from "react-native";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
1
4
|
export default class Notifyvisitors {
|
|
2
5
|
/* 1 - inApp-Banner & inApp-Surveys */
|
|
3
6
|
static show(
|
|
@@ -93,10 +96,12 @@ export default class Notifyvisitors {
|
|
|
93
96
|
static isPayloadFromNvPlatform(pushPayload: any, callback: any): void;
|
|
94
97
|
static getNV_FCMPayload(pushPayload: any): void;
|
|
95
98
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
): void;
|
|
99
|
+
/* 3 - Track Screen */
|
|
100
|
+
static trackScreen(screenName: String): void;
|
|
101
|
+
|
|
102
|
+
static getSessionData(nvCallback: any): void;
|
|
103
|
+
|
|
104
|
+
static notificationClickCallback(callback: any): void;
|
|
100
105
|
|
|
101
106
|
/* 10 - iOS Specific methods */
|
|
102
107
|
static scrollViewDidScroll_iOS_only(): void;
|
package/index.js
CHANGED
|
@@ -13,6 +13,7 @@ const NV_CALLBACKS = {
|
|
|
13
13
|
NV_EVENT_SURVEY: "nv_common_show_event_callback",
|
|
14
14
|
NV_CENTER: "nv_center_callback",
|
|
15
15
|
NV_KNOWN_USER_IDENTIFIED: "nv_known_user_identified_callback",
|
|
16
|
+
NV_NOTIFICATION_CLICK_CALLBACK: "nv_notification_click_callback",
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
const CALLBACKS_STACK = {};
|
|
@@ -271,6 +272,16 @@ export default class Notifyvisitors {
|
|
|
271
272
|
}
|
|
272
273
|
}
|
|
273
274
|
|
|
275
|
+
static notificationClickCallback(nvCallback) {
|
|
276
|
+
console.log("NV- Notification Click Callback !!");
|
|
277
|
+
try {
|
|
278
|
+
CALLBACKS_STACK[NV_CALLBACKS.NV_NOTIFICATION_CLICK_CALLBACK] = nvCallback;
|
|
279
|
+
RNNotifyvisitors.notificationClickCallback(nvCallback);
|
|
280
|
+
} catch (e) {
|
|
281
|
+
console.log(e);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
274
285
|
/* 15 - Unique NotifyVisitors Identification */
|
|
275
286
|
static getNvUID(callback) {
|
|
276
287
|
console.log("NV- Get NV UID !!");
|
|
@@ -304,6 +315,15 @@ export default class Notifyvisitors {
|
|
|
304
315
|
}
|
|
305
316
|
}
|
|
306
317
|
|
|
318
|
+
static getSessionData(nvCallback) {
|
|
319
|
+
console.log("NV- Get Session Data !!");
|
|
320
|
+
try {
|
|
321
|
+
RNNotifyvisitors.getSessionData(nvCallback);
|
|
322
|
+
} catch (e) {
|
|
323
|
+
console.log(e);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
307
327
|
/* 17 - Auto Start Library Android */
|
|
308
328
|
static setAutoStartPermission_android_only() {
|
|
309
329
|
console.log("NV- Auto Start Permission Android !!");
|
|
@@ -10,6 +10,7 @@ RCTResponseSenderBlock eventCallback;
|
|
|
10
10
|
RCTResponseSenderBlock commonCallback;
|
|
11
11
|
RCTResponseSenderBlock onKnownUserFoundCallback = NULL;
|
|
12
12
|
RCTResponseSenderBlock notificationCenterCallback = NULL;
|
|
13
|
+
RCTResponseSenderBlock onNotificationClickCallback = NULL;
|
|
13
14
|
|
|
14
15
|
BOOL nvInAppFound = false;
|
|
15
16
|
|
|
@@ -49,7 +50,7 @@ RCT_EXPORT_MODULE(RNNotifyvisitors);
|
|
|
49
50
|
#pragma mark - React-Native List of supported callback names
|
|
50
51
|
|
|
51
52
|
- (NSArray<NSString *> *)supportedEvents {
|
|
52
|
-
return @[@"nv_push_banner_click", @"nv_chat_bot_button_click", @"nv_show_callback", @"nv_event_callback", @"nv_common_show_event_callback", @"nv_center_callback", @"nv_known_user_identified_callback"];
|
|
53
|
+
return @[@"nv_push_banner_click", @"nv_chat_bot_button_click", @"nv_show_callback", @"nv_event_callback", @"nv_common_show_event_callback", @"nv_center_callback", @"nv_known_user_identified_callback", @"nv_notification_click_callback"];
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
// Will be called when this module's first listener is added.
|
|
@@ -885,6 +886,47 @@ RCT_EXPORT_METHOD(getLinkInfo) {
|
|
|
885
886
|
}
|
|
886
887
|
}
|
|
887
888
|
|
|
889
|
+
/* 20 - known user identified */
|
|
890
|
+
RCT_EXPORT_METHOD(notificationClickCallback:(RCTResponseSenderBlock)nvcallback) {
|
|
891
|
+
@try{
|
|
892
|
+
NSLog(@"RN-NotifyVisitors : NOTIFICATION CLICK CALLBACK !!");
|
|
893
|
+
onNotificationClickCallback = nvcallback;
|
|
894
|
+
nvPushObserverReady = YES;
|
|
895
|
+
[[NSNotificationCenter defaultCenter] addObserverForName: @"nvNotificationClickCallback" object: nil queue: nil usingBlock: ^(NSNotification *notification) {
|
|
896
|
+
NSDictionary *nvUserInfo = [notification userInfo];
|
|
897
|
+
if ([nvUserInfo count] > 0) {
|
|
898
|
+
NSError *nvError = nil;
|
|
899
|
+
NSData *nvJsonData = [NSJSONSerialization dataWithJSONObject: nvUserInfo options: NSJSONWritingPrettyPrinted error: &nvError];
|
|
900
|
+
NSString *nvJsonString = [[NSString alloc] initWithData: nvJsonData encoding: NSUTF8StringEncoding];
|
|
901
|
+
[self sendEventWithName:@"nv_notification_click_callback" body: @{@"data": nvJsonString}];
|
|
902
|
+
}
|
|
903
|
+
}];
|
|
904
|
+
}
|
|
905
|
+
@catch(NSException *exception){
|
|
906
|
+
NSLog(@"RN-NotifyVisitors ERROR : %@", exception.reason);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
//RCT_EXPORT_METHOD(notificationClickCallback) {
|
|
911
|
+
// @try{
|
|
912
|
+
// NSLog(@"RN-NotifyVisitors : notificationClickCallback() !!");
|
|
913
|
+
// nvPushObserverReady = YES;
|
|
914
|
+
// [[NSNotificationCenter defaultCenter] addObserverForName: @"nvNotificationClickCallback" object: nil queue: nil usingBlock: ^(NSNotification *notification) {
|
|
915
|
+
// NSDictionary *nvUserInfo = [notification userInfo];
|
|
916
|
+
// if ([nvUserInfo count] > 0) {
|
|
917
|
+
// NSError *nvError = nil;
|
|
918
|
+
// NSData *nvJsonData = [NSJSONSerialization dataWithJSONObject: nvUserInfo options: NSJSONWritingPrettyPrinted error: &nvError];
|
|
919
|
+
// NSString *nvJsonString = [[NSString alloc] initWithData: nvJsonData encoding: NSUTF8StringEncoding];
|
|
920
|
+
// [self sendEventWithName:@"nv_notification_click_callback" body: @{@"data": nvJsonString}];
|
|
921
|
+
// }
|
|
922
|
+
// }];
|
|
923
|
+
//
|
|
924
|
+
// }
|
|
925
|
+
// @catch(NSException *exception){
|
|
926
|
+
// NSLog(@"RN-NotifyVisitors ERROR : %@", exception.reason);
|
|
927
|
+
// }
|
|
928
|
+
//}
|
|
929
|
+
|
|
888
930
|
#pragma mark - Other Methods
|
|
889
931
|
|
|
890
932
|
/* 23 - REQUEST INAPP REVIEW */
|
|
@@ -898,6 +940,25 @@ RCT_EXPORT_METHOD(requestInAppReview: (RCTResponseSenderBlock) callback) {
|
|
|
898
940
|
}
|
|
899
941
|
}
|
|
900
942
|
|
|
943
|
+
/* 24 - Get Session Data */
|
|
944
|
+
RCT_EXPORT_METHOD(getSessionData: (RCTResponseSenderBlock)callback) {
|
|
945
|
+
@try{
|
|
946
|
+
NSLog(@"RN-NotifyVisitors : GET SESSION DATA !!");
|
|
947
|
+
NSDictionary * nvSessionDataResponse = [notifyvisitors getSessionData];
|
|
948
|
+
if ([nvSessionDataResponse count] > 0) {
|
|
949
|
+
NSError *nvError = nil;
|
|
950
|
+
NSData *nvJsonData = [NSJSONSerialization dataWithJSONObject: nvSessionDataResponse options: NSJSONWritingPrettyPrinted error: &nvError];
|
|
951
|
+
NSString *nvJsonString = [[NSString alloc] initWithData: nvJsonData encoding: NSUTF8StringEncoding];
|
|
952
|
+
callback(@[nvJsonString, [NSNull null]]);
|
|
953
|
+
} else {
|
|
954
|
+
callback(@[@"null", [NSNull null]]);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
@catch(NSException *exception){
|
|
958
|
+
NSLog(@"RN-NotifyVisitors GET SESSION DATA ERROR : %@", exception.reason);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
|
|
901
962
|
-(UIColor*)GetColor:(NSString *)ColorString {
|
|
902
963
|
if ([[ColorString substringToIndex:1]isEqualToString:@"#"]) {
|
|
903
964
|
unsigned int c;
|
|
@@ -5,5 +5,4 @@
|
|
|
5
5
|
|
|
6
6
|
+(void)LoadAttachmentWithRequest: (UNNotificationRequest *_Nullable)request BestAttemptContent: (UNMutableNotificationContent *_Nullable)bestAttemptContent withContentHandler: (void (^_Nullable)(UNNotificationContent * _Nonnull))contentHandler API_AVAILABLE(ios(10.0));
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
@end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RNNVNativeDisplayViewManager.h
|
|
3
|
+
// react-native-notifyvisitors
|
|
4
|
+
//
|
|
5
|
+
// Created by Notifyvisitors Macbook Air 4 on 02/08/25.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RCTViewManager.h"
|
|
9
|
+
|
|
10
|
+
#if __has_include(<notifyvisitorsNudges/notifyvisitorsNudges-Swift.h>)
|
|
11
|
+
#import <notifyvisitorsNudges/notifyvisitorsNudges-Swift.h>
|
|
12
|
+
#else
|
|
13
|
+
#import "../notifyvisitorsNudges-Swift.h"
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@interface RNNVNativeDisplayViewManager : RCTViewManager
|
|
18
|
+
|
|
19
|
+
@property(nonatomic, strong) notifyvisitorsNativeDisplay * _Nullable nvNudgesNativeDisplay;
|
|
20
|
+
@property(nonatomic, strong) UIView * _Nullable nvContainerView;
|
|
21
|
+
|
|
22
|
+
@end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RNNVNativeDisplayViewManager.m
|
|
3
|
+
// react-native-notifyvisitors
|
|
4
|
+
//
|
|
5
|
+
// Created by Notifyvisitors Macbook Air 4 on 02/08/25.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RNNVNativeDisplayViewManager.h"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@implementation RNNVNativeDisplayViewManager
|
|
12
|
+
|
|
13
|
+
RCT_EXPORT_MODULE(NotifyvisitorsNativeDisplay) // Name used in JS class
|
|
14
|
+
|
|
15
|
+
- (UIView *)view {
|
|
16
|
+
NSLog(@"RCT_EXPORT_MODULE(NotifyvisitorsNativeDisplay)");
|
|
17
|
+
self.nvContainerView = [[UIView alloc] initWithFrame: CGRectZero];
|
|
18
|
+
self.nvContainerView.backgroundColor = [UIColor clearColor];
|
|
19
|
+
self.nvNudgesNativeDisplay = [notifyvisitorsNativeDisplay sharedInstance];
|
|
20
|
+
[self.nvContainerView setUserInteractionEnabled: YES];
|
|
21
|
+
return self.nvContainerView;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
RCT_CUSTOM_VIEW_PROPERTY(propertyName, NSString, UIView)
|
|
25
|
+
{
|
|
26
|
+
NSLog(@"RCT_CUSTOM_VIEW_PROPERTY(propertyName)");
|
|
27
|
+
NSString *nvPropertyName = [NSString stringWithFormat: @"%@", json];
|
|
28
|
+
if ([nvPropertyName length] > 0 && ![nvPropertyName isEqualToString: @""] && ![nvPropertyName isEqual: [NSNull null]]) {
|
|
29
|
+
NSLog(@"[notifyvisitors]-[ReactNative]-[nudges]: property name found for native display");
|
|
30
|
+
UIView *nvNativeDisplayView = [self.nvNudgesNativeDisplay loadContentForPropertyName: nvPropertyName];
|
|
31
|
+
nvNativeDisplayView.backgroundColor = [UIColor clearColor];
|
|
32
|
+
nvNativeDisplayView.translatesAutoresizingMaskIntoConstraints = YES; // ✅ VERY IMPORTANT
|
|
33
|
+
// Match parent bounds dynamically
|
|
34
|
+
nvNativeDisplayView.frame = self.nvContainerView.bounds;
|
|
35
|
+
nvNativeDisplayView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
36
|
+
[self.nvContainerView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
|
|
37
|
+
[self.nvContainerView addSubview: nvNativeDisplayView];
|
|
38
|
+
} else {
|
|
39
|
+
NSLog(@"[notifyvisitors]-[ReactNative]-[nudges]: missing parameter propertyName not found or empty.");
|
|
40
|
+
UIView *nvEmptyDisplayView = [[UIView alloc] init];
|
|
41
|
+
nvEmptyDisplayView.backgroundColor = [UIColor clearColor];
|
|
42
|
+
// Match parent bounds dynamically
|
|
43
|
+
nvEmptyDisplayView.frame = self.nvContainerView.bounds;
|
|
44
|
+
nvEmptyDisplayView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
45
|
+
[self.nvContainerView.subviews makeObjectsPerformSelector: @selector(removeFromSuperview)];
|
|
46
|
+
[self.nvContainerView addSubview: nvEmptyDisplayView];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@end
|
|
@@ -23,7 +23,7 @@ int nvCheckPushClickTimeCounter = 0;
|
|
|
23
23
|
|
|
24
24
|
@implementation RNNotifyvisitors
|
|
25
25
|
|
|
26
|
-
static NSString *const kNVPluginVersion = @"4.5.
|
|
26
|
+
static NSString *const kNVPluginVersion = @"4.5.3";
|
|
27
27
|
|
|
28
28
|
- (dispatch_queue_t)methodQueue{
|
|
29
29
|
return dispatch_get_main_queue();
|
|
@@ -56,7 +56,7 @@ NSLog(@"RN-NotifyVisitors PLUGIN VERSION : %@ !!", kNVPluginVersion);
|
|
|
56
56
|
[notifyvisitors initializeWithBrandId: brandID secretKey: secretKey appMode: nvMode launchingOptions: launchingOptions];
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
+(void)Initialize{
|
|
59
|
+
+(void)Initialize {
|
|
60
60
|
NSLog(@"RN-NotifyVisitors : INITIALIZE !!");
|
|
61
61
|
NSLog(@"RN-NotifyVisitors PLUGIN VERSION : %@ !!", kNVPluginVersion);
|
|
62
62
|
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
10
|
138AE09F22A7ACA600F403E1 /* RNNVExtensionService.m in Sources */ = {isa = PBXBuildFile; fileRef = 138AE09E22A7ACA600F403E1 /* RNNVExtensionService.m */; };
|
|
11
11
|
13B25F2D22BA35B000C4D0B7 /* RCTNVEventEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B25F2C22BA35B000C4D0B7 /* RCTNVEventEmitter.m */; };
|
|
12
|
-
|
|
12
|
+
356D58DD2E4C407900A0ED29 /* notifyvisitors.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 356D58DC2E4C407900A0ED29 /* notifyvisitors.xcframework */; };
|
|
13
|
+
356D58DF2E4C408100A0ED29 /* notifyvisitorsNudges.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 356D58DE2E4C408100A0ED29 /* notifyvisitorsNudges.xcframework */; };
|
|
13
14
|
B3E7B58A1CC2AC0600A0062D /* RNNotifyvisitors.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */; };
|
|
14
15
|
DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC31F4E423BC9CC900AAB2DB /* SystemConfiguration.framework */; };
|
|
15
16
|
/* End PBXBuildFile section */
|
|
@@ -32,7 +33,8 @@
|
|
|
32
33
|
138AE09E22A7ACA600F403E1 /* RNNVExtensionService.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNVExtensionService.m; sourceTree = "<group>"; };
|
|
33
34
|
13B25F2B22BA35B000C4D0B7 /* RCTNVEventEmitter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTNVEventEmitter.h; sourceTree = "<group>"; };
|
|
34
35
|
13B25F2C22BA35B000C4D0B7 /* RCTNVEventEmitter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTNVEventEmitter.m; sourceTree = "<group>"; };
|
|
35
|
-
|
|
36
|
+
356D58DC2E4C407900A0ED29 /* notifyvisitors.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = notifyvisitors.xcframework; sourceTree = "<group>"; };
|
|
37
|
+
356D58DE2E4C408100A0ED29 /* notifyvisitorsNudges.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = notifyvisitorsNudges.xcframework; sourceTree = "<group>"; };
|
|
36
38
|
B3E7B5881CC2AC0600A0062D /* RNNotifyvisitors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNotifyvisitors.h; sourceTree = "<group>"; };
|
|
37
39
|
B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNotifyvisitors.m; sourceTree = "<group>"; };
|
|
38
40
|
DC31F4E423BC9CC900AAB2DB /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; };
|
|
@@ -44,7 +46,8 @@
|
|
|
44
46
|
buildActionMask = 2147483647;
|
|
45
47
|
files = (
|
|
46
48
|
DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */,
|
|
47
|
-
|
|
49
|
+
356D58DF2E4C408100A0ED29 /* notifyvisitorsNudges.xcframework in Frameworks */,
|
|
50
|
+
356D58DD2E4C407900A0ED29 /* notifyvisitors.xcframework in Frameworks */,
|
|
48
51
|
);
|
|
49
52
|
runOnlyForDeploymentPostprocessing = 0;
|
|
50
53
|
};
|
|
@@ -62,7 +65,8 @@
|
|
|
62
65
|
58B511D21A9E6C8500147676 = {
|
|
63
66
|
isa = PBXGroup;
|
|
64
67
|
children = (
|
|
65
|
-
|
|
68
|
+
356D58DC2E4C407900A0ED29 /* notifyvisitors.xcframework */,
|
|
69
|
+
356D58DE2E4C408100A0ED29 /* notifyvisitorsNudges.xcframework */,
|
|
66
70
|
DC4962D123BE131B005E63F5 /* RNNotifyvisitors */,
|
|
67
71
|
134814211AA4EA7D00B7C361 /* Products */,
|
|
68
72
|
DC31F4E323BC9CC900AAB2DB /* Frameworks */,
|
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
|
-
<string>notifyvisitors.framework/
|
|
9
|
+
<string>notifyvisitors.framework/notifyvisitors</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>notifyvisitors.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
-
<string>x86_64</string>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
19
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>maccatalyst</string>
|
|
23
20
|
</dict>
|
|
24
21
|
<dict>
|
|
25
22
|
<key>BinaryPath</key>
|
|
@@ -40,17 +37,20 @@
|
|
|
40
37
|
</dict>
|
|
41
38
|
<dict>
|
|
42
39
|
<key>BinaryPath</key>
|
|
43
|
-
<string>notifyvisitors.framework/notifyvisitors</string>
|
|
40
|
+
<string>notifyvisitors.framework/Versions/A/notifyvisitors</string>
|
|
44
41
|
<key>LibraryIdentifier</key>
|
|
45
|
-
<string>ios-
|
|
42
|
+
<string>ios-arm64_x86_64-maccatalyst</string>
|
|
46
43
|
<key>LibraryPath</key>
|
|
47
44
|
<string>notifyvisitors.framework</string>
|
|
48
45
|
<key>SupportedArchitectures</key>
|
|
49
46
|
<array>
|
|
50
47
|
<string>arm64</string>
|
|
48
|
+
<string>x86_64</string>
|
|
51
49
|
</array>
|
|
52
50
|
<key>SupportedPlatform</key>
|
|
53
51
|
<string>ios</string>
|
|
52
|
+
<key>SupportedPlatformVariant</key>
|
|
53
|
+
<string>maccatalyst</string>
|
|
54
54
|
</dict>
|
|
55
55
|
</array>
|
|
56
56
|
<key>CFBundlePackageType</key>
|
package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Headers/notifyvisitors.h
CHANGED
|
@@ -40,7 +40,7 @@ typedef void(^nv_UID)(NSString *_Nullable);
|
|
|
40
40
|
@protocol notifyvisitorsDelegate <NSObject>
|
|
41
41
|
|
|
42
42
|
@optional
|
|
43
|
-
-(void)NotifyvisitorsGetEventResponseWithUserInfo:(NSDictionary*_Nullable)userInfo DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 7.0.1 Use [notifyvisitors notifyvisitorsEventsResponseCallback:] (see notifyvisitors.h)");
|
|
43
|
+
- (void)NotifyvisitorsGetEventResponseWithUserInfo:(NSDictionary*_Nullable)userInfo DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 7.0.1 Use [notifyvisitors notifyvisitorsEventsResponseCallback:] (see notifyvisitors.h)");
|
|
44
44
|
-(void)notifyvisitorsEventsResponseCallback:(NSDictionary*_Nullable)callback;
|
|
45
45
|
-(void)notifyvisitorsKnownUserIdentified:(NSDictionary*_Nullable)userInfo;
|
|
46
46
|
@end
|
|
@@ -106,6 +106,8 @@ typedef void(^nv_UID)(NSString *_Nullable);
|
|
|
106
106
|
+(void)continueUserActivityWith:(NSUserActivity*_Nullable)userActivity;
|
|
107
107
|
+(void)scene:(UIScene *_Nullable)scene continueUserActivity:(NSUserActivity *_Nullable)userActivity API_AVAILABLE(ios(13.0));
|
|
108
108
|
|
|
109
|
+
+(NSDictionary *_Nullable)getSessionData;
|
|
110
|
+
|
|
109
111
|
|
|
110
112
|
#pragma mark - InAppBanner AND InAppSurveys METHODS
|
|
111
113
|
|
|
Binary file
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/notifyvisitors.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
tknbS5XIDyM3W2h2USafN2S8Uy0=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Info.plist</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
ChCr9cmvBNt+kwAcobLbR2Yr/fc=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/module.modulemap</key>
|
|
20
20
|
<data>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<dict>
|
|
39
39
|
<key>hash2</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
eQbtIiI+qwYG+9Jwb27iHqy/njADJIVEX3dU5QSqugw=
|
|
42
42
|
</data>
|
|
43
43
|
</dict>
|
|
44
44
|
<key>Modules/module.modulemap</key>
|
|
Binary file
|
|
@@ -40,7 +40,7 @@ typedef void(^nv_UID)(NSString *_Nullable);
|
|
|
40
40
|
@protocol notifyvisitorsDelegate <NSObject>
|
|
41
41
|
|
|
42
42
|
@optional
|
|
43
|
-
-(void)NotifyvisitorsGetEventResponseWithUserInfo:(NSDictionary*_Nullable)userInfo DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 7.0.1 Use [notifyvisitors notifyvisitorsEventsResponseCallback:] (see notifyvisitors.h)");
|
|
43
|
+
- (void)NotifyvisitorsGetEventResponseWithUserInfo:(NSDictionary*_Nullable)userInfo DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 7.0.1 Use [notifyvisitors notifyvisitorsEventsResponseCallback:] (see notifyvisitors.h)");
|
|
44
44
|
-(void)notifyvisitorsEventsResponseCallback:(NSDictionary*_Nullable)callback;
|
|
45
45
|
-(void)notifyvisitorsKnownUserIdentified:(NSDictionary*_Nullable)userInfo;
|
|
46
46
|
@end
|
|
@@ -106,6 +106,8 @@ typedef void(^nv_UID)(NSString *_Nullable);
|
|
|
106
106
|
+(void)continueUserActivityWith:(NSUserActivity*_Nullable)userActivity;
|
|
107
107
|
+(void)scene:(UIScene *_Nullable)scene continueUserActivity:(NSUserActivity *_Nullable)userActivity API_AVAILABLE(ios(13.0));
|
|
108
108
|
|
|
109
|
+
+(NSDictionary *_Nullable)getSessionData;
|
|
110
|
+
|
|
109
111
|
|
|
110
112
|
#pragma mark - InAppBanner AND InAppSurveys METHODS
|
|
111
113
|
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
<key>CFBundlePackageType</key>
|
|
18
18
|
<string>FMWK</string>
|
|
19
19
|
<key>CFBundleShortVersionString</key>
|
|
20
|
-
<string>7.3.
|
|
20
|
+
<string>7.3.2</string>
|
|
21
21
|
<key>CFBundleSupportedPlatforms</key>
|
|
22
22
|
<array>
|
|
23
23
|
<string>MacOSX</string>
|
|
24
24
|
</array>
|
|
25
25
|
<key>CFBundleVersion</key>
|
|
26
|
-
<string>7.3.
|
|
26
|
+
<string>7.3.2</string>
|
|
27
27
|
<key>DTCompiler</key>
|
|
28
28
|
<string>com.apple.compilers.llvm.clang.1_0</string>
|
|
29
29
|
<key>DTPlatformBuild</key>
|