How to send push notifications to multiple devices using php script using FCM?

前端 未结 5 1402
-上瘾入骨i
-上瘾入骨i 2021-01-12 05:55

I\'m new to push notifications using FCM from php to Android devices. From android side I have generated FCM reg_id & send it over php script & store into mysql data

5条回答
  •  再見小時候
    2021-01-12 06:44

    Try to send device ID of multiple devices as an array. In your case,

    $registration_ids must be an array of device IDs.

    E.g

    $registration_ids = array('Device ID 1', 'Device ID 2');
    

提交回复
热议问题