isFromNotification method
Checks if the app was launched from a notification tap. Returns a Map with 'isFromNotification' (bool) and 'payload' (String) keys.
Implementation
@override
Future<Map<String, dynamic>> isFromNotification() async {
final response = await methodChannel.invokeMethod<Map<Object?, Object?>>('isFromNotification') ?? {};
return {
'isFromNotification': response['isFromNotification'] ?? false,
'payload': response['payload']?.toString() ?? '{}',
};
}