sendPushNotificationToUsers method
Implementation
Future<dynamic> sendPushNotificationToUsers(
{List<String>? users,
String? subscription,
String? title,
String? body,
Map<String, dynamic>? data,
String? imageUrl}) {
Map<String, dynamic> req = {
'route': 'notification.sendMessageToUsers',
'users': users,
if (subscription != null) 'subscription': subscription,
'title': title,
'body': body,
if (data != null) 'data': data,
'imageUrl': imageUrl,
};
return request(req);
}