Skip to content

Commit d82bdff

Browse files
authored
Update API.md
1 parent 3fdc106 commit d82bdff

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/API.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,12 @@ appsFlyerSdk.validateAndTrackInAppPurchase(
327327
```
328328
---
329329
**<a id="setPushNotification"> `void setPushNotification(bool isEnabled)`**
330+
331+
_Example:_
332+
```dart
333+
appsFlyerSdk.setPushNotification(true);
334+
```
335+
330336
_NOTE:_
331337

332338
For Android: Make sure to call this API inside the page of every activity that is launched after clicking the notification.
@@ -337,10 +343,6 @@ Please check the following guide in order to understand the relevant payload nee
337343

338344
https://support.appsflyer.com/hc/en-us/articles/207364076-Measuring-push-notification-re-engagement-campaigns
339345

340-
_Example:_
341-
```dart
342-
appsFlyerSdk.setPushNotification(true);
343-
```
344346
---
345347
### **Conversion Data and on app open attribution for older versions**
346348
For plugin version `6.0.5+2` and below the user can access `conversionDataStream`, `appOpenAttributionStream` and `onDeepLinkingStream` to listen for events (see example app)

0 commit comments

Comments
 (0)