react-native-appsflyer
Advanced tools
Comparing version 6.0.32 to 6.0.33
# Versions | ||
## 6.0.33 | ||
- Send Push Notification API | ||
- Fix TypeScript types for initSdk and logEvent | ||
## 6.0.31 | ||
@@ -4,0 +8,0 @@ - In-App purchase validation |
@@ -31,2 +31,3 @@ # API | ||
- [validateAndLogInAppPurchase](#validateAndLogInAppPurchase) | ||
- [sendPushNotificationData](#sendPushNotificationData) | ||
@@ -784,1 +785,29 @@ --- | ||
``` | ||
##### <a id="sendPushNotificationData"> **`sendPushNotificationData(pushPayload): void`** | ||
Push-notification campaigns are used to create fast re-engagements with existing users. | ||
AppsFlyer supplies an open-for-all solution, that enables measuring the success of push-notification campaigns, for both iOS and Android platforms.<br> | ||
Learn more - https://support.appsflyer.com/hc/en-us/articles/207364076-Measuring-Push-Notification-Re-Engagement-Campaigns | ||
| parameter | type | description | | ||
| ---------- |----------|------------------ | | ||
| pushPayload | json | push notification payload | | ||
*Example:* | ||
```javascript | ||
const pushPayload = { | ||
af:{ | ||
c:"test_campaign", | ||
is_retargeting:true, | ||
pid:"push_provider_int", | ||
}, | ||
aps:{ | ||
alert:"Get 5000 Coins", | ||
badge:"37", | ||
sound:"default" | ||
} | ||
}; | ||
appsFlyer.sendPushNotificationData(pushPayload); | ||
``` |
@@ -52,3 +52,4 @@ /** | ||
export interface GenerateInviteLinkParams { channel: string; | ||
export interface GenerateInviteLinkParams { | ||
channel: string; | ||
campaign?: string; | ||
@@ -65,5 +66,6 @@ customerID?: string; | ||
onAppOpenAttribution(callback: (data: any) => any): () => void; | ||
initSdk(options: InitSDKOptions, successC?: SuccessCB, errorC?: ErrorCB): Response<string> | ||
logEvent(eventName: string, eventValues: object, successC?: SuccessCB, errorC?: ErrorCB): Response<string> | ||
initSdk(options: InitSDKOptions): Promise<string>; | ||
initSdk(options: InitSDKOptions, successC: SuccessCB, errorC: ErrorCB): void; | ||
logEvent(eventName: string, eventValues: object): Promise<string>; | ||
logEvent(eventName: string, eventValues: object, successC: SuccessCB, errorC: ErrorCB): void; | ||
setUserEmails(options: SetEmailsOptions, successC: SuccessCB, errorC: ErrorCB): void | ||
@@ -88,2 +90,3 @@ setAdditionalData(additionalData: object, successC?: SuccessCB): void | ||
updateServerUninstallToken(token: string, successC?: SuccessCB): void | ||
sendPushNotificationData(pushPayload: object): void | ||
@@ -90,0 +93,0 @@ /** |
11
index.js
@@ -494,3 +494,14 @@ import {NativeEventEmitter, NativeModules} from "react-native"; | ||
/** | ||
* | ||
*Push-notification campaigns are used to create fast re-engagements with existing users. | ||
*AppsFlyer supplies an open-for-all solution, that enables measuring the success of push-notification campaigns, for both iOS and Android platforms. | ||
* Learn more - https://support.appsflyer.com/hc/en-us/articles/207364076-Measuring-Push-Notification-Re-Engagement-Campaigns | ||
* @param pushPayload | ||
*/ | ||
appsFlyer.sendPushNotificationData = (pushPayload) => { | ||
RNAppsFlyer.sendPushNotificationData(pushPayload); | ||
} | ||
function AFParseJSONException(_message, _data) { | ||
@@ -497,0 +508,0 @@ this.message = _message; |
{ | ||
"name": "react-native-appsflyer", | ||
"version": "6.0.32", | ||
"version": "6.0.33", | ||
"description": "React Native Appsflyer plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 5 instances in 1 package
564
14
981260
93