AppDNAPush class
Push notification management for AppDNA Flutter SDK.
Push lifecycle callbacks (onPushReceived/onPushTapped/onPushTokenRegistered)
are delivered via AppDNA.push.setDelegate(AppDNAPushDelegate) over the
com.appdna.sdk/events/push channel — see AppDNAPushModule. The delegate's
notification is a Map<String, dynamic> with camelCase keys (pushId/title/body/
imageUrl/data/action:{type,value}), plus actions — the action buttons, a
List<Map<String, dynamic>> of {id, label, action_type, action_value?}, present only when the
push has buttons (the same shape as React Native). onPushTapped's actionId is one of these ids.
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
handlePushTap(
) → Future< bool> -
Whether the newest intent the activity received (the
last one through
onNewIntent, else its launch intent) is an AppDNA notification tap, handing it to the SDK for attribution + routing if the plugin has not already. The plugin already hands those intents over (the launch intent atconfigure, a new activity's when it attaches), so this is optional; a tap the SDK already handled returnstrueand is not tracked or routed again. Answers at once, also beforeconfigureor aftershutdown()(the tap is then handled once the SDK is ready). The SDK gets a copy of the intent, so the intent keeps its extras. Android-only — a no-op returningfalseon iOS. -
onNewPushToken(
String token) → Future< void> -
Feed a freshly-issued push token (e.g. from FCM
onNewToken) into the SDK for backend registration. Android-only — a no-op on iOS. -
registerForPush(
) → Future< bool> - Request permission AND register for remote notifications. Returns whether permission was granted. Real on iOS; on Android this routes to requestPermission.
-
requestPermission(
) → Future< bool> - Request push notification permission.