sendNotification method

dynamic sendNotification(
  1. String token,
  2. dynamic data
)

Implementation

sendNotification(String token, data) async {
  final getConfig = Handlerz.fc!.config;
  final firebaseMessagingService = FirebaseMessagingService();
  await firebaseMessagingService.sendNotification(token: getConfig['token'], title: 'Error ${getConfig['name']}', body: 'you received an error ${getConfig['name']} platform ${getConfig['platform']}', data:data);
}