reactnative-plugin-appice 1.7.36 → 1.7.37

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.
@@ -97,7 +97,7 @@ dependencies {
97
97
  annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.3.1"
98
98
 
99
99
  //appice
100
- implementation "appice.io.android:sdk:2.6.33"
100
+ implementation "appice.io.android:sdk:2.6.34"
101
101
 
102
102
  //glide
103
103
  implementation "com.github.bumptech.glide:glide:4.11.0"
package/campaign.js CHANGED
@@ -15,11 +15,8 @@ const handleClickOnPush = async (campaign) => {
15
15
  if (httpUrls) {
16
16
  try {
17
17
  if (Platform.OS === 'ios') {
18
- const supported = await Linking.canOpenURL(url);
19
- if (!supported) {
20
- console.log('URL not supported on iOS:', url);
21
- return;
22
- }
18
+ return campaign;
19
+ // iOS handle redirection on native side for landing page.
23
20
  }
24
21
 
25
22
  await Linking.openURL(url);
@@ -31,6 +28,7 @@ const handleClickOnPush = async (campaign) => {
31
28
 
32
29
  if (actionType === 'dl' && !httpUrls) {
33
30
  // handle custom deeplink
31
+ return campaign;
34
32
  }
35
33
  };
36
34
 
@@ -110,4 +108,4 @@ class Campaign {
110
108
  }
111
109
  }
112
110
 
113
- export { Campaign, handleClickOnPush };
111
+ export { Campaign, handleClickOnPush };
package/example/App.js CHANGED
@@ -98,7 +98,11 @@ function addAppICEAPIListeners() {
98
98
 
99
99
  try {
100
100
  const campaign = new Campaign(event.AppICEPushNotificationClicked);
101
- await handleClickOnPush(campaign);
101
+ const result = await handleClickOnPush(campaign);
102
+ if (result) {
103
+ console.log("Returned campaign:", result);
104
+ // Use result here (e.g., for DL handling)
105
+ }
102
106
  } catch (error) {
103
107
  console.error('Error handling app link:', error);
104
108
  }
File without changes
File without changes
@@ -185,7 +185,9 @@ RCT_EXPORT_METHOD(getUserId:(RCTResponseSenderBlock)callback)
185
185
 
186
186
  RCT_EXPORT_METHOD(pushNotificationClicked:(NSDictionary*)userInfo)
187
187
  {
188
- [[appICE sharedInstance] pushNotificationClickedEvent:userInfo];
188
+ /**Removed this as PushClicked Event is getting triggred twice**/
189
+ //[[appICE sharedInstance] pushNotificationClickedEvent:userInfo];
190
+
189
191
  }
190
192
 
191
193
  RCT_EXPORT_METHOD(setUser:(NSDictionary*)userProfile)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactnative-plugin-appice",
3
- "version": "1.7.36",
3
+ "version": "1.7.37",
4
4
  "description": "appICE React Native SDK",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
23
23
  s.requires_arc = true
24
24
 
25
25
  s.dependency "React"
26
- s.dependency "AppICE-IOS-SDK", "1.8.13"
26
+ s.dependency "AppICE-IOS-SDK", "1.8.15"
27
27
  # ...
28
28
  # s.dependency "..."
29
29
  end
@@ -1,8 +0,0 @@
1
- ## This file must *NOT* be checked into Version Control Systems,
2
- # as it contains information specific to your local configuration.
3
- #
4
- # Location of the SDK. This is only used by Gradle.
5
- # For customization when using a Version Control System, please read the
6
- # header note.
7
- #Tue Nov 28 00:45:30 IST 2023
8
- sdk.dir=/Users/amit/Library/Android/sdk