4d / 4D-Mobile-App-Server

Open sourced component to install to 4d server as mobile app back end
Other
6 stars 7 forks source link

PushNotification.send warnings about email addresses when device tokens are sent are not helpful #13

Open macMikey opened 2 years ago

macMikey commented 2 years ago

If, instead of sending email addresses to pushNotification.send I send device tokens, I will receive an error back for every device, saying that I didn't pass an email address. That is not helpful, since sending device tokens is specifically mentioned as legitimate in the docs.

mesopelagique commented 2 years ago

You are right, if you send device tokens, we must do not care about emails The error message is?

then did you use this way to pass device tokens

$recipients:=New object
$recipients.deviceTokens:=New collection("xxxxxxxxxxxx";"yyyyyyyyyyyy";"zzzzzzzzzzzz")

$response:=$pushNotification.send($notification;$recipients)