norkunas / onesignal-php-api

OneSignal API for PHP
MIT License
233 stars 82 forks source link

Question #175

Closed AlbanW closed 7 months ago

AlbanW commented 8 months ago

Hello, how can i push a notification using OneSignal PHP API to a specific onesignal id or subscription ID please

norkunas commented 8 months ago

Hey :slightly_smiling_face:

First of all opening a discussion like stated in readme, instead of an issue :slightly_smiling_face: But basically with something like this way (which is being deprecated in OneSignal):

$oneSignal->notifications()->add([
    'include_player_ids' => [...ID...]
]);

This library needs updates to catch up with deprecations. Also probably it would be faster for you to find this by yourself from the library code than waiting for my answer :smiley: