i want to send a notification to only one device related to a specific action like "some one like your post", and i can't do this thought the api the only response i got is "CODE_NOT_AVAILABLE" and i don't want to turn on the debug mode,i want to send a specific notification to a specific device.
and what if i want to send the notification to only 4 devices?
this is my code
$notification = Notification::create(); $notification = $notification->setDevices(['317bd234b303337e751173eab974049f']); $notification = $notification->setContent('test 22'); $request = CreateMessageRequest::create() ->addNotification($notification);
Please sign in to leave a comment.