getDeviceToken static method
Get the current device token
Implementation
static Future<String?> getDeviceToken() async {
_checkInitialization();
try {
final result = await _channel.invokeMethod<String>('getDeviceToken');
debugPrint('Go Mailer: Device token result: $result');
return result;
} catch (e) {
debugPrint('Go Mailer: Failed to get device token: $e');
return null;
}
}