saveDeviceToken method
Saves the device token for push notifications
Implementation
@override
Future<String?> saveDeviceToken(String token) async {
_ensureInitialized();
try {
final String? result =
await methodChannel.invokeMethod('saveDeviceToken', {'token': token});
log("Device token saved successfully with result: $result");
return result;
} on PlatformException catch (e) {
log("Failed to save device token: ${e.message}");
return 'Failed to save device token: ${e.message}';
}
}