berkayk / laravel-onesignal

OneSignal Push Notifications for Laravel
506 stars 176 forks source link

Undefined array key "user_auth_key" #188

Open imrostom opened 8 months ago

imrostom commented 8 months ago

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

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

GalahadXVI commented 5 months ago

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),
    ],