react-native-notifyvisitors 4.1.3 → 4.1.4
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/.settings/org.eclipse.buildship.core.prefs +1 -1
- package/android/build.gradle +11 -13
- package/android/src/main/AndroidManifest.xml +4 -3
- package/android/src/main/java/com/rn_notifyvisitors/RNNotifyvisitorsModule.java +10 -1
- package/ios/RNNotifyvisitors/RNNotifyvisitors.m +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.1.1))
|
|
|
5
5
|
connection.project.dir=
|
|
6
6
|
eclipse.preferences.version=1
|
|
7
7
|
gradle.user.home=
|
|
8
|
-
java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.15.jdk/Contents/Home
|
|
8
|
+
java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.15.1.jdk/Contents/Home
|
|
9
9
|
jvm.arguments=
|
|
10
10
|
offline.mode=false
|
|
11
11
|
override.workspace.settings=true
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
|
|
|
3
3
|
buildscript {
|
|
4
4
|
repositories {
|
|
5
5
|
google()
|
|
6
|
-
|
|
6
|
+
mavenCentral()
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
dependencies {
|
|
@@ -14,12 +14,10 @@ buildscript {
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
android {
|
|
17
|
-
compileSdkVersion
|
|
18
|
-
buildToolsVersion "29.0.2"
|
|
19
|
-
|
|
17
|
+
compileSdkVersion 31
|
|
20
18
|
defaultConfig {
|
|
21
19
|
minSdkVersion 19
|
|
22
|
-
targetSdkVersion
|
|
20
|
+
targetSdkVersion 31
|
|
23
21
|
}
|
|
24
22
|
lintOptions {
|
|
25
23
|
abortOnError false
|
|
@@ -34,19 +32,19 @@ dependencies {
|
|
|
34
32
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
35
33
|
implementation 'com.facebook.react:react-native:+'
|
|
36
34
|
|
|
37
|
-
implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.
|
|
35
|
+
implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.4'
|
|
36
|
+
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
37
|
+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
38
|
+
implementation 'com.google.android.material:material:1.4.0'
|
|
39
|
+
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
|
40
|
+
implementation 'androidx.cardview:cardview:1.0.0'
|
|
38
41
|
implementation 'com.android.installreferrer:installreferrer:2.1'
|
|
42
|
+
implementation 'com.google.android.play:core:1.10.1'
|
|
39
43
|
|
|
40
|
-
implementation 'com.android.support:design:28.0.0'
|
|
41
|
-
implementation 'com.android.support:recyclerview-v7:28.0.0'
|
|
42
|
-
implementation 'com.android.support:cardview-v7:28.0.0'
|
|
43
|
-
|
|
44
44
|
implementation 'com.google.android.gms:play-services-location:17.0.0'
|
|
45
45
|
implementation 'com.google.firebase:firebase-core:17.2.2'
|
|
46
|
-
implementation 'com.google.firebase:firebase-messaging:20.1.0'
|
|
47
|
-
|
|
46
|
+
implementation 'com.google.firebase:firebase-messaging:20.1.0'
|
|
48
47
|
}
|
|
49
48
|
|
|
50
|
-
|
|
51
49
|
//apply plugin: 'com.google.gms.google-services'
|
|
52
50
|
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
android:usesCleartextTraffic="true"
|
|
17
17
|
android:largeHeap="true"
|
|
18
18
|
android:supportsRtl="true">
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
<service
|
|
20
|
+
android:name="com.notifyvisitors.notifyvisitors.NVFirebaseMessagingService"
|
|
21
|
+
android:exported="true">
|
|
21
22
|
<intent-filter>
|
|
22
23
|
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
|
23
24
|
</intent-filter>
|
|
24
|
-
</service>
|
|
25
|
+
</service>
|
|
25
26
|
</application>
|
|
26
27
|
</manifest>
|
|
27
28
|
|
|
@@ -40,7 +40,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
40
40
|
|
|
41
41
|
private final ReactApplicationContext reactContext;
|
|
42
42
|
private static final String TAG = "RN-NotifyVisitors";
|
|
43
|
-
private static final String PLUGIN_VERSION = "4.1.
|
|
43
|
+
private static final String PLUGIN_VERSION = "4.1.4";
|
|
44
44
|
|
|
45
45
|
private String PUSH_BANNER_CLICK_EVENT = "nv_push_banner_click";
|
|
46
46
|
private String CHAT_BOT_BUTTON_CLICK = "nv_chat_bot_button_click";
|
|
@@ -157,6 +157,8 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
157
157
|
mActivity.runOnUiThread(new Runnable() {
|
|
158
158
|
@Override
|
|
159
159
|
public void run() {
|
|
160
|
+
Log.i(TAG, "Tokens : "+mTokens.toString());
|
|
161
|
+
Log.i(TAG, "Custom Rules : "+mCustomObjects.toString());
|
|
160
162
|
NotifyVisitorsApi.getInstance(mActivity).show(mTokens, mCustomObjects, fragmentName);
|
|
161
163
|
}
|
|
162
164
|
});
|
|
@@ -330,6 +332,11 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
330
332
|
} catch (Exception e) {
|
|
331
333
|
Log.i(TAG, "ATTRIBUTES PARSE ERROR : " + e);
|
|
332
334
|
}
|
|
335
|
+
|
|
336
|
+
Log.i(TAG, "Event Name : "+eventName);
|
|
337
|
+
Log.i(TAG, "Attributes : "+mAttributes.toString());
|
|
338
|
+
Log.i(TAG, "Life Time Value : "+ltv);
|
|
339
|
+
Log.i(TAG, "Scope : "+scope);
|
|
333
340
|
NotifyVisitorsApi.getInstance(reactContext).event(eventName, mAttributes, ltv, scope);
|
|
334
341
|
} catch (Exception e) {
|
|
335
342
|
Log.i(TAG, "EVENT ERROR : " + e);
|
|
@@ -348,6 +355,8 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
348
355
|
mAttributes = new JSONObject(temp);
|
|
349
356
|
}
|
|
350
357
|
|
|
358
|
+
Log.i(TAG, "User : "+userID);
|
|
359
|
+
Log.i(TAG, "Attributes : "+mAttributes);
|
|
351
360
|
NotifyVisitorsApi.getInstance(reactContext).userIdentifier(userID, mAttributes);
|
|
352
361
|
} catch (Exception e) {
|
|
353
362
|
Log.i(TAG, "USER IDENTIFIER ERROR : " + e);
|
|
@@ -32,7 +32,7 @@ int nvCheckPushClickTimeCounter = 0;
|
|
|
32
32
|
|
|
33
33
|
+(void)Initialize{
|
|
34
34
|
NSLog(@"RN-NotifyVisitors : INITIALIZE !!");
|
|
35
|
-
NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.1.
|
|
35
|
+
NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.1.4 !!");
|
|
36
36
|
NSString *nvMode = nil;
|
|
37
37
|
#if DEBUG
|
|
38
38
|
nvMode = @"debug";
|