enableAllNotification method
throw No internet connection
Implementation
Future<String> enableAllNotification() async {
if (VChatAppService.instance.vChatNotificationType ==
VChatNotificationType.firebase) {
final token = (await FirebaseMessaging.instance.getToken()).toString();
return _vChatUsersApi.updateUserFcmToken(token);
} else {
throw "you have to enable fire base for this project first";
}
}