php multiple push notification

hi ,
im using this php function to send push notification

function push_notification($body,$title,$token){
$interestDetails = [md5(uniqid(rand(), true)), $token];

     $expo = \ExponentPhpSDK\Expo::normalSetup();

if(isValidExpoPushToken($token)){

try {
$expo->subscribe($interestDetails[0], $interestDetails[1]);
$notification = array(
‘title’ => $title,
‘body’ => $body,
‘priority’=>‘high’

    );

// Notify an interest with a notification
$expo->notify($interestDetails[0], $notification);
} catch (Exception $e) {

}

}

// Build the notification data

}

who can i send multiple push

Hey @alihameedaukla,

The php server sdk is not maintained by the Expo team, but it looks like this github issue from the repo may be of help: https://github.com/Alymosul/exponent-server-sdk-php/issues/21

Cheers,

Adam

thanks for fast reply and we are very grateful for you guys

1 Like

We’re grateful for you as well! We love the members of the Expo community or the Exponauts as we sometimes call them.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.