AppDNAPushModule class

Push notification module namespace.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getToken() → Future<String?>
Get the current push token.
handleMessage(Map<String, dynamic> data) → Future<bool>
Forward a received push (e.g. FirebaseMessaging.onMessage's message.data). For an AppDNA push the SDK tracks delivery once and fires onPushReceived; it never displays anything — your app owns display. Returns false, doing nothing, for any other push.
handleTap(Map<String, dynamic> data, {String? actionId}) → Future<bool>
Forward a notification tap (e.g. FirebaseMessaging.onMessageOpenedApp's message.data, and actionId when an action button was tapped). For an AppDNA push the SDK tracks the tap once, fires onPushTapped and routes the push's action. Returns false, doing nothing, for any other push.
isAppDNAMessage(Map<String, dynamic> data) → Future<bool>
Whether data is an AppDNA push — it carries the appdna: "1" marker the server adds. Use it in your own push handling (e.g. firebase_messaging) to leave AppDNA pushes to AppDNA. The check runs in the native SDK.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() → Future<bool>
Request push notification permission from the OS.
setDelegate(AppDNAPushDelegate? delegate) → void
Set a delegate to receive push notification callbacks. Pass null to clear the current delegate and stop listening.
setPermission(bool granted) → Future<void>
setToken(String token) → Future<void>
toString() → String
A string representation of this object.
inherited
trackDelivered(String pushId) → Future<void>
trackTapped(String pushId, {String? action}) → Future<void>

Operators

operator ==(Object other) → bool
The equality operator.
inherited