- Add channel_for_external_user_ids option in NotificationResolver
- Allow to install on php 8.0
- Add "kind" argument to notifications getAll method
- Add field "include_email_tokens"
- Add field "apns_push_type_override"
- Add missed chrome_web_badge option to NotificationResolver
- Add create/update segments and notification history examples to readme
- At least PHP 7.3 version is now required.
OneSignal\OneSignalclient now requires always to provideOneSignal\Config.OneSignal\OneSignalclient now expectsPsr\Http\Client\ClientInterfaceas a second arguments instead ofHttp\Client\Common\HttpMethodsClientand is mandatory.OneSignal\OneSignalclient now requires always to providePsr\Http\Message\RequestFactoryInterfaceas a third argument andPsr\Http\Message\StreamFactoryInterfaceas a fourth argument.- Replaced magic __get method with __call in
OneSignal\OneSignal, so from now calls like$oneSignal->appsmust be used as$oneSignal->apps(). It is better to use Dependency injection, because these calls will construct new instances. - Removed
OneSignal\Exception\OneSignalExceptionand addedOneSignal\Exception\OneSignalExceptionInterface. - Removed
setConfigandsetClientmethods inOneSignal\OneSignal. You can build new instances with different configs or http clients.