Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-appsflyer

Package Overview
Dependencies
Maintainers
3
Versions
120
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.0.32 to 6.0.33

4

CHANGELOG.md
# 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);
```

11

index.d.ts

@@ -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 @@ /**

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc