NotificationProjectFlutter class
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
-
assignTag({required String consumerId, required String tagName})
→ Future<void>
-
Assign tag to consumer
-
clearAllSecureData()
→ Future<void>
-
Clear all secure data
-
createAndSendNotification({required String title, required String message, String? image, List<NotificationAttachment>? attachments, List<NotificationAction>? actions, String? deepLink, NotificationStyle? style, Map<String, dynamic>? data, bool? isTemplate, List<String>? consumerIds, List<String>? deviceTokens, List<String>? tagIds, String? osType, String? timezone, DateTime? scheduledTime, Map<String, dynamic>? variables})
→ Future<String?>
-
Create and send notification in one step
-
createNotification({required String title, required String message, String? image, List<NotificationAttachment>? attachments, List<NotificationAction>? actions, String? deepLink, NotificationStyle? style, Map<String, dynamic>? data, bool? isTemplate, DateTime? scheduledTime, String? timezone})
→ Future<String>
-
Create notification (first step)
-
createTag({required String tagName, List<String>? externalUserIds, List<String>? consumerIds})
→ Future<void>
-
Create tag
-
deleteNotification({required String notificationId})
→ Future<void>
-
Delete notification
-
getDeviceInfo()
→ Future<DeviceInfo>
-
Get device information
-
getNotification({required String notificationId})
→ Future<Notification?>
-
Get notification by ID
-
getNotificationsByApplication({int? page, int? limit, String? search, String? sortBy, String? sortOrder})
→ Future<List<Notification>>
-
Get notifications by application
-
getSecurityStatus()
→ Future<Map<String, dynamic>>
-
Get security status
-
getToken()
→ Future<String?>
-
Get FCM token
-
initialize({required String apiKey, String? channelId, String? channelName, String? channelDescription, String? defaultIcon})
→ Future<void>
-
Initialize the notification service with API key
-
initializeSecurely()
→ Future<void>
-
Secure initialization with stored API key
-
initializeWithBiometric()
→ Future<void>
-
Initialize with biometric authentication
-
listTags({required String consumerId})
→ Future<List<String>>
-
List tags for consumer
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
registerConsumer({required String externalUserId, String? deviceToken, DeviceInfo? deviceInfo})
→ Future<String>
-
Register consumer with external user ID
-
registerConsumerSecurely({required String externalUserId, String? deviceToken, DeviceInfo? deviceInfo})
→ Future<String>
-
Secure consumer registration with data storage
-
removeTag({required String consumerId, required String tagName})
→ Future<void>
-
Remove tag from consumer
-
sendNotification({required String notificationId, List<String>? consumerIds, List<String>? deviceTokens, List<String>? tagIds, String? osType, String? timezone, DateTime? scheduledTime, Map<String, dynamic>? variables})
→ Future<void>
-
Send notification to specific targets (second step)
-
setupApiKey(String apiKey)
→ Future<void>
-
Store API key securely
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateDeviceInfo(DeviceInfo deviceInfo)
→ Future<void>
-
Update device information
-
updateNotification({required String notificationId, String? title, String? message, String? image, List<NotificationAttachment>? attachments, List<NotificationAction>? actions, String? deepLink, NotificationStyle? style, Map<String, dynamic>? data, bool? isTemplate, DateTime? scheduledTime, String? timezone})
→ Future<void>
-
Update notification