Skip to content Skip to sidebar Skip to footer

Sending Push Notification On Multiple Devices

I'm trying to make an push notification on my android app by following this tutorial http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm

Solution 1:

I am not having exp in PHP but I can tell you the places where you can modify your code.

Make an array of ids and put into registration_ids.

At the end you must have all ids into registatoin_ids at

$fields = array(
            'registration_ids' => $registatoin_ids, // HERE IT IS'data' => $message,
        );

into send_notification($registatoin_ids, $message).

In current it having single reg_id so it is sending notification to single device.

Post a Comment for "Sending Push Notification On Multiple Devices"