Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: guzzle_client_timeout in sending from a console command #174

Open
ChrAus opened this issue Nov 4, 2022 · 0 comments
Open

Comments

@ChrAus
Copy link

ChrAus commented Nov 4, 2022

Hi there,

I recently udpated the version of this library since I updated to laravel 8.
I am sending to multiple devices using this function:

public function sendViaOneSignal($devicelist)
    {
        if (empty($devicelist)) {
            return true;
        }
        OneSignal::sendNotificationCustom([
            'contents' => [
                'en' => $this->data['pushmessage'],
            ],
            'headings' => [
                'en' => $this->data['subject'],
            ],
            'include_player_ids' => $devicelist,
        ]);

        return true;
    }

But after updating I receive the following error:

Undefined index: guzzle_client_timeout in \vendor\berkayk\onesignal-laravel\src\OneSignalServiceProvider.php on line 39

I added this line to my config file:

'guzzle_client_timeout' => env('ONESIGNAL_GUZZLE_CLIENT_TIMEOUT', 0),

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant