TF-3341 Enable web socket for mobile
This commit is contained in:
@@ -20,16 +20,11 @@ class FcmReceiver {
|
||||
static const int MAX_COUNT_RETRY_TO_GET_FCM_TOKEN = 3;
|
||||
|
||||
Future onInitialFcmListener() async {
|
||||
_onForegroundMessage();
|
||||
_onBackgroundMessage();
|
||||
|
||||
await _onHandleFcmToken();
|
||||
}
|
||||
|
||||
void _onForegroundMessage() {
|
||||
FirebaseMessaging.onMessage.listen(FcmService.instance.handleFirebaseForegroundMessage);
|
||||
}
|
||||
|
||||
void _onBackgroundMessage() {
|
||||
FirebaseMessaging.onBackgroundMessage(handleFirebaseBackgroundMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user