-
Notifications
You must be signed in to change notification settings - Fork 133
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
Issues running the Pusher service in a background task #141
Comments
can you share the configuration / code in use for the Pusher setup? |
|
@benw-pusher please answer me? |
Just to confirm the situation: this works when not using workermanager but doesn't succeed when this is in place - is that correct? |
it is correct |
Sorry for interrupting @benw-pusher |
@benw-pusher Sorry, is it possible to find a solution, or should I give up hope? |
@benw-pusher no me respondes?, no me dices nada? |
I have set up a stable connection with a server running Laravel. When the application is open, it receives and notifies the logged-in user when a new message has arrived.
To run a background task, I am using the 'workmanager' package, which is very easy to configure. I have tested it by sending a local notification with the 'flutter_local_notifications' package, and it works correctly even when the application is completely closed. In other words, the notification is displayed on the mobile device.
When I use Pusher, I get the following error upon execution:
_pusher.subscribe(channelName: "private-channel")
, it throws the following error:Pusher authorize error: java.lang.NullPointerException
Any idea on how to solve it, please help me.
The text was updated successfully, but these errors were encountered: