Closed erdemnagikho closed 4 years ago
same error with me. I have added allies and providers lines too. tried all the previous threads solutions too with the same question.
Please find below the quickest solution you can use.
$client = new Berkayk\OneSignal\OneSignalClient( 'APP_ID', 'REST_API_KEY', 'USER_AUTH_KEY'; $client->sendNotificationToUser( 'message', 'player Id' );
I have this same error.
Ok, in top of the file I added "use OneSignal", and it works.
Hi people, i cannot call 'OneSignal' and because of this i cannot use methods. I did install it step by step.