Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More โ†’
Socket
Book a DemoSign in
Socket

react-native-appsflyer

Package Overview
Dependencies
Maintainers
3
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-appsflyer - npm Package Compare versions

Comparing version
6.1.20
to
6.1.30
+29
ios/AppsFlyerDeepLinkObserver.h
//
// AFSDKDeepLinkObserver.h
// AppsFlyerLib
//
// Created by Andrii Hahan on 09.09.2020.
//
#import <Foundation/Foundation.h>
@class AppsFlyerDeepLinkResult;
NS_SWIFT_NAME(DeepLinkObserverDelegate)
@protocol AppsFlyerDeepLinkObserverDelegate <NSObject>
@optional
- (void)didResolveDeepLink:(AppsFlyerDeepLinkResult *_Nonnull)result;
@end
NS_ASSUME_NONNULL_BEGIN
NS_SWIFT_NAME(DeepLinkObserver)
@interface AppsFlyerDeepLinkObserver : NSObject
@property(weak, nonatomic) id<AppsFlyerDeepLinkObserverDelegate> delegate;
@property NSTimeInterval timeoutInterval;
@end
NS_ASSUME_NONNULL_END
+8
-4

@@ -72,2 +72,6 @@ <?xml version="1.0" encoding="UTF-8"?>

<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/ios" />
<recent name="$PROJECT_DIR$" />
</key>
<key name="MoveFile.RECENT_KEYS">

@@ -78,5 +82,2 @@ <recent name="$PROJECT_DIR$/ios" />

</key>
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$" />
</key>
</component>

@@ -161,3 +162,6 @@ <component name="RunManager">

<workItem from="1607585580954" duration="2929000" />
<workItem from="1607606307863" duration="422000" />
<workItem from="1607606307863" duration="526000" />
<workItem from="1607610770572" duration="1475000" />
<workItem from="1609134716891" duration="9377000" />
<workItem from="1609306978835" duration="1898000" />
</task>

@@ -164,0 +168,0 @@ <servers />

@@ -49,3 +49,3 @@ def safeExtGet(prop, fallback) {

implementation "com.android.installreferrer:installreferrer:${safeExtGet('installReferrerVersion', '2.1')}"
implementation "com.appsflyer:af-android-sdk:${safeExtGet('appsflyerVersion', '6.1.0')}"
implementation "com.appsflyer:af-android-sdk:${safeExtGet('appsflyerVersion', '6.1.3')}"
}

@@ -1,1 +0,1 @@

#Wed Dec 09 09:41:59 IST 2020
#Thu Dec 10 17:59:39 IST 2020

@@ -680,2 +680,25 @@ package com.appsflyer.reactnative;

}
@ReactMethod
public void setHost(String hostPrefix, String hostName, Callback successCallback) {
AppsFlyerLib.getInstance().setHost(hostPrefix, hostName);
successCallback.invoke(SUCCESS);
}
@ReactMethod
public void addPushNotificationDeepLinkPath(ReadableArray path, Callback successCallback, Callback errorCallback) {
if (path.size() <= 0) {
errorCallback.invoke(EMPTY_OR_CORRUPTED_LIST);
return;
}
ArrayList<Object> pathList = path.toArrayList();
try {
String[] params = pathList.toArray(new String[pathList.size()]);
AppsFlyerLib.getInstance().addPushNotificationDeepLinkPath(params);
successCallback.invoke(SUCCESS);
} catch (Exception e) {
e.printStackTrace();
errorCallback.invoke(e);
}
}
}
# Versions
## 6.1.30
- Android SDK 6.1.3
- iOS SDK 6.1.3
- setHost API
- addPushNotificationDeepLinkPath API
## 6.1.20

@@ -3,0 +9,0 @@ - Unified deep linking

@@ -32,2 +32,4 @@ # API

- [sendPushNotificationData](#sendPushNotificationData)
- [setHost](#setHost)
- [addPushNotificationDeepLinkPath](#addPushNotificationDeepLinkPath)

@@ -821,1 +823,38 @@ ---

```
---
##### <a id="setHost"> **`setHost(hostPrefix, hostName, successC)`**
Set a custom host
| parameter | type | description |
| ----------|----------|------------------|
| hostPrefix | string | the host prefix |
| hostName | string | the host name |
| successC | function | success callback |
*Example:*
```javascript
appsFlyer.setHost('foo', 'bar.appsflyer.com', res => console.log(res));
```
---
##### <a id="addPushNotificationDeepLinkPath"> **`addPushNotificationDeepLinkPath(path, successC, errorC)`**
The addPushNotificationDeepLinkPath method provides app owners with a flexible interface for configuring how deep links are extracted from push notification payloads.
for more information: https://support.appsflyer.com/hc/en-us/articles/207032126-Android-SDK-integration-for-developers#core-apis-65-configure-push-notification-deep-link-resolution <br>
โ—Importantโ— `addPushNotificationDeepLinkPath` must be called before calling `initSDK`
| parameter | type | description |
| ----------|----------|------------------|
| path | strings array | the desired path separated into an array |
| successC | function | success callback |
| errorC | function | error callback |
*Example:*
```javascript
appsFlyer.addPushNotificationDeepLinkPath(["deeply", "nested", "deep_link"], res => console.log(res), error => console.log(error));
```

@@ -51,7 +51,7 @@ # React Native Appsflyer Plugin Guides

3. Unified deep linking - Unified deep linking sends new and existing users to a specific in-app activity as soon as the app is opened.<br>
For more info please check out the [OneLinkโ„ข Deep Linking Guide](https://support.appsflyer.com/hc/en-us/articles/208874366-OneLink-Deep-Linking-Guide#Intro).
For more info please check out the [OneLinkโ„ข Deep Linking Guide](https://dev.appsflyer.com/docs/initial-setup-for-deep-linking-and-deferred-deep-linking).
### <a id="deferred-deep-linking"> 1. Deferred Deep Linking (Get Conversion Data)
Check out the deferred deep linking guide from the AppFlyer knowledge base [here](https://support.appsflyer.com/hc/en-us/articles/207032096-Accessing-AppsFlyer-Attribution-Conversion-Data-from-the-SDK-Deferred-Deeplinking-#Introduction).
Check out the deferred deep linking guide from the AppFlyer knowledge base [here](https://dev.appsflyer.com/docs/deferred-deep-linking-new-users-to-specific-content-inside-your-app).

@@ -92,3 +92,3 @@ Code Sample to handle the conversion data:

When a deep link is clicked on the device the AppsFlyer SDK will return the link in the [onAppOpenAttribution](https://support.appsflyer.com/hc/en-us/articles/208874366-OneLink-Deep-Linking-Guide#deep-linking-data-the-onappopenattribution-method-) method.
When a deep link is clicked on the device the AppsFlyer SDK will return the link in the [onAppOpenAttribution](https://dev.appsflyer.com/docs/deep-linking-existing-app-users-to-specific-content) method.

@@ -95,0 +95,0 @@ ```javascript

@@ -91,2 +91,4 @@ /**

sendPushNotificationData(pushPayload: object): void
setHost(hostPrefix: string, hostName: string, success: SuccessCB): void
addPushNotificationDeepLinkPath(path: string[], successC: SuccessCB, errorC: ErrorCB): void

@@ -93,0 +95,0 @@ /**

@@ -530,3 +530,23 @@ import {NativeEventEmitter, NativeModules} from "react-native";

/**
* Set a custom host
* @param hostPrefix
* @param hostName
* @param successC: success callback
*/
appsFlyer.setHost = (hostPrefix, hostName, successC) => {
RNAppsFlyer.setHost(hostPrefix, hostName, successC);
}
/**
* The addPushNotificationDeepLinkPath method provides app owners with a flexible interface for configuring how deep links are extracted from push notification payloads.
* for more information: https://support.appsflyer.com/hc/en-us/articles/207032126-Android-SDK-integration-for-developers#core-apis-65-configure-push-notification-deep-link-resolution
* @param path: an array of string that represents the path
* @param successC: success callback
* @param errorC: error callback
*/
appsFlyer.addPushNotificationDeepLinkPath = (path, successC, errorC) => {
RNAppsFlyer.addPushNotificationDeepLinkPath(path, successC, errorC);
}
function AFParseJSONException(_message, _data) {

@@ -533,0 +553,0 @@ this.message = _message;

@@ -5,3 +5,3 @@ //

//
// AppsFlyer iOS SDK 6.1.1 (33)
// AppsFlyer iOS SDK 6.1.3 (43)
// Copyright (c) 2012-2020 AppsFlyer Ltd. All rights reserved.

@@ -302,2 +302,4 @@ //

@property(nonatomic) BOOL disableAppleAdsAttribution;
/**

@@ -620,4 +622,12 @@ AppsFlyer delegate. See `AppsFlyerLibDelegate`

/**
Adds array of keys, which are used to compose key path
to resolve deeplink from push notification payload `userInfo`.
@param deepLinkPath an array of strings which contains keys to search for deeplink in payload.
*/
- (void)addPushNotificationDeepLinkPath:(NSArray<NSString *> *)deepLinkPath;
@end
NS_ASSUME_NONNULL_END

@@ -529,2 +529,13 @@ #import "RNAppsFlyer.h"

RCT_EXPORT_METHOD(setHost: (NSString*)hostPrefix hostName: (NSString*)hostName successCallback :(RCTResponseSenderBlock)successCallback) {
[[AppsFlyerLib shared] setHost:hostName withHostPrefix:hostPrefix];
successCallback(@[SUCCESS]);
}
RCT_EXPORT_METHOD(addPushNotificationDeepLinkPath: (NSArray*)path successCallback :(RCTResponseSenderBlock)successCallback
errorCallback:(RCTResponseErrorBlock)errorCallback) {
[[AppsFlyerLib shared] addPushNotificationDeepLinkPath: path];
successCallback(@[SUCCESS]);
}
@end
{
"name": "react-native-appsflyer",
"version": "6.1.20",
"version": "6.1.30",
"description": "React Native Appsflyer plugin",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,3 +17,3 @@ require 'json'

s.dependency 'React'
s.dependency 'AppsFlyerFramework', '6.1.1'
s.dependency 'AppsFlyerFramework', '6.1.3'
end

@@ -17,4 +17,4 @@ require 'json'

s.dependency 'React'
s.dependency 'AppsFlyerFramework/Strict', '6.1.1'
s.dependency 'AppsFlyerFramework/Strict', '6.1.3'
s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AFSDK_NO_IDFA=1' }
end

@@ -25,4 +25,4 @@

- iOS AppsFlyerSDK **v6.1.1**
- Android AppsFlyerSDK **v6.1.0**
- iOS AppsFlyerSDK **v6.1.3**
- Android AppsFlyerSDK **v6.1.3**

@@ -41,2 +41,3 @@ ## <a id="v6-breaking-changes"> โ— v6 Breaking Changes

| setDeviceTrackingDisabled | anonymizeUser |
| AppsFlyerTracker | AppsFlyerLib |

@@ -43,0 +44,0 @@ And removed the following ones:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet