This commit is contained in:
Hamza-Ayed
2024-11-03 13:39:16 +02:00
parent 3e88059166
commit 5919554eaa
20 changed files with 1188 additions and 24 deletions

View File

@@ -74,7 +74,8 @@ class NotificationController extends GetxController {
"title": title.text,
"body": body.text,
});
Log.print('res: ${res}');
Log.print(
'res: ${res}for ${box.read(BoxName.tokensDrivers)['message'][i]['id']}');
// Log.print('tokensDriver[i]: ${tokensDriver[i]}');
Future.delayed(const Duration(microseconds: 50));
@@ -138,7 +139,8 @@ class NotificationController extends GetxController {
if (formKey.currentState!.validate()) {
var res = await CRUD()
.post(link: AppLink.addNotificationPassenger, payload: {
"passenger_id": tokensPassengersData[i]['id'].toString(),
"passenger_id":
tokensPassengersData[i]['passengerID'].toString(),
"title": title.text,
"body": body.text,
});