Fix background messages in release-build

This commit is contained in:
Mike Schwörer 2024-06-17 22:26:48 +02:00
parent 0bbe5fc7fa
commit c8bc7665f7
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -265,10 +265,12 @@ void setFirebaseToken(String fcmToken) async {
}
}
@pragma('vm:entry-point')
Future<void> _onBackgroundMessage(RemoteMessage message) async {
await _receiveMessage(message, false);
}
@pragma('vm:entry-point')
void _onForegroundMessage(RemoteMessage message) {
_receiveMessage(message, true);
}