-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Firebase project [myproject] not configured. #70
Comments
Hey @virenderscideas, FYI I moved this issue from the firebase-php repo here. How have you configured the package? Which versions of the kreait packages are you using ( |
what is the right way to configure firebase in laravel? all the tutorials and articles are outdated and there's no recent specific laravel based articles. |
Have you put a |
Sorry for the late reply - have you resolved the issue in the meantime? If not, could you please share the full contents of |
I'm having the same issue, it's my first time trying firebase and this package. I have placed the service account json in the .env file as well. I haven't touched the firebase.php configuration. |
I just realized that Either way, it would be nice if you could show me some reproducible code that I can use to test this - in my local tests, everything seems to work just fine, and I would be happy if it's a bug in the package, because then I can fix it 🤞 |
In my case i didn't use FirebaseChannel, I'm still new to firebase so i just followed the documentation of the Firebase PHP Admin SDK `use Kreait\Firebase\Messaging\CloudMessage;
|
Also, I tried not putting the FIREBASE_CREDENTIALS into the .env file to find out what error it'll give me. And it's the same error. |
I just tried in my test-laravel project and I'm sorry I can't confirm the problem. What wonders me is that you get the error names Which Laravel and PHP version are you using? What happens when, instead of use Kreait\Laravel\Firebase\Facades\Firebase;
// ...
$messaging = Firebase::messaging(); ? Just to be sure, please share the output of these commands in your terminal: $ php -v
$ composer show |
I think I found my mistake. I actually specified the project name in the env file Thank you so much @jeromegamez for the very quick response!! |
Glad I could help, I hope the package can serve you well from here on! 🌺 |
I had the same issue but running |
Yes, it's the project ID from credentials file |
hii, I am having the same issue, i run the above mentioned commands also, but not worked.. |
adding FIREBASE_PROJECT in .env still did not work for me |
@liza-nt This issue is three years old 😅 |
Hello,
I am getting this error "Firebase project [myproject] not configured." while sending a notification in laravel with FirebaseChannel.
public function via($notifiable)
{
return [FirebaseChannel::class];
}
it's probably generated from this file but don't know what i did wrong.
vendor/kreait/laravel-firebase/src/FirebaseProjectManager.php:41
protected function configuration(string $name): array
{
$config = $this->app->config->get('firebase.projects.'.$name) ?? null;
if (!$config) {
throw new InvalidArgumentException("Firebase project [{$name}] not configured.");
}
return $config;
}
The text was updated successfully, but these errors were encountered: