laravel-notification-channels / pusher-push-notifications

Pusher Beams notifications channel for Laravel
http://laravel-notification-channels.com
MIT License
270 stars 67 forks source link

Will it work on Android/iOS when app is closed on mobile ? #37

Closed afrazahmmad closed 4 years ago

afrazahmmad commented 4 years ago

Thanks guys for great package!

I have a question! On web-app I can send and receive notifications while web-page is active. But In mobile, I want to get notifications even if mobile app is closed. Will it work ? Or I will have to use pusher beams for that ?

atymic commented 4 years ago

I think this would be a question for pusher support :)

atymic commented 4 years ago

Closed due to inactivity

anish-techpro commented 4 years ago

Push Notification is not working when app is closed. According to Pusher Beams:

When your application is in the background, this service will not be called unless there is only a data payload in the notification. The notification key cannot be used.

But there is no way to send just data using this package. The 'notification' key always goes in 'fcm'. Is there any way i can make the push notification work in background using this package?

shanaka-sync commented 7 months ago

Did you find the solution ?