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 array key "user_auth_key" #188

Open
imrostom opened this issue Apr 2, 2024 · 1 comment
Open

Undefined array key "user_auth_key" #188

imrostom opened this issue Apr 2, 2024 · 1 comment

Comments

@imrostom
Copy link

imrostom commented Apr 2, 2024

I face this issue when send push notifiation based on this,

OneSignal::sendNotificationToUser($message, $tokens, route('admin.ticket.show', $ticket));

@GalahadXVI
Copy link

Make sure you have user_auth_key defined in services.php

    'onesignal' => [
        'app_id' => env('ONESIGNAL_APP_ID'),
        'rest_api_key' => env('ONESIGNAL_REST_API_KEY'),
        'user_auth_key' => env('ONESIGNAL_USER_AUTH_KEY'),
        'guzzle_client_timeout' => env('ONESIGNAL_GUZZLE_CLIENT_TIMEOUT', 60),
    ],

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

2 participants