Comments (7)
@pouriabagheri
Please run composer update
in your terminal
let me know if that fixed the issue
from pushnotification.
@Edujugon yes and this is the result
[Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Illuminate\Foundation\Application::share() Script php artisan optimize handling the post-update-cmd event returned with error code 255
from pushnotification.
Could you confirm that you have installed the 2.1.7 version ?
Also clear your project cache and try again. It was an issue with the previous version for apps with laravel ^5.3.
Now, with the v2.1.7 it works like a charm.
if that wouldn't work for you, please do the following:
composer remove edujugon/push-notification
then install it again:
composer require edujugon/push-notification
from pushnotification.
@Edujugon
I did remove and require again/ but the error persists. I didn't check the version but I assume it was v2.1.7 as i installed it with composer without specifying a version
from pushnotification.
@pouriabagheri,
I've just created a fresh laravel 5.4 app, pull in the package and run vendor:publish and it works fine for me. Even I sent a message and also worked. So I couldn't replicate your issue.
The package doesn't use that method and instead uses singleton. Please refer to the following link to see so:
https://github.com/Edujugon/PushNotification/blob/master/src/Providers/PushNotificationServiceProvider.php#L32
I'm pretty sure it's a cache issue.
from pushnotification.
@Edujugon Thanks It worked. I realised the difference and this time specified the version.
from pushnotification.
Glad to know you could solve it :)
from pushnotification.
Related Issues (20)
- Unable to send notifications via FCM.
- Content-Type:" is not valid header name HOT 6
- Document breaking change in v4.5.1?
- [L 6.0]Testing push notification
- Breaking change in 4.5.1: Undefined index: headers HOT 2
- loc-key and loc-args on the payload
- Undefined index: headers HOT 7
- Need support of Voip
- Badge count not working with fcm
- Push notiication not working on Ios
- update to newer versions
- notifications not sendings HOT 2
- Installation issue with laravle9.2 HOT 4
- Issue in Laravel 9.2 HOT 7
- FCM Api Key HOT 2
- add support for huawei
- cannot send push notifications(ios, android)
- Error al crear $push = new PushNotification
- MissingTopic HOT 1
- Migrating from legacy FCM to HTTP v1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pushnotification.