KoolbaseMessaging class

Constructors

KoolbaseMessaging({required String baseUrl, required String apiKey})

Properties

apiKey String
final
baseUrl String
final
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
registerToken({required String token, required String platform, String? userId}) Future<bool>
Register an FCM device token with Koolbase. Call this after obtaining the token from firebase_messaging.
send({required String to, required String title, required String body, Map<String, dynamic> data = const {}}) Future<bool>
Send a push notification to a specific device token. Requires FCM_SERVER_KEY to be set in project secrets.
setDeviceId(String deviceId) → void
toString() String
A string representation of this object.
inherited

Operators

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