php multiple push notification


#1

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


#2

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


#3

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


#4

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