KoolbaseMessaging class
Constructors
- KoolbaseMessaging({required String baseUrl, required String apiKey})
Properties
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