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'smessage.data). For an AppDNA push the SDK tracks delivery once and firesonPushReceived; it never displays anything — your app owns display. Returnsfalse, doing nothing, for any other push. -
handleTap(
Map< String, dynamic> data, {String? actionId}) → Future<bool> -
Forward a notification tap (e.g.
FirebaseMessaging.onMessageOpenedApp'smessage.data, andactionIdwhen an action button was tapped). For an AppDNA push the SDK tracks the tap once, firesonPushTappedand routes the push's action. Returnsfalse, doing nothing, for any other push. -
isAppDNAMessage(
Map< String, dynamic> data) → Future<bool> -
Whether
datais an AppDNA push — it carries theappdna: "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
nullto 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