0

I have set up a Work Manager to send a notification on my device. Currently notifications are shown only when my app is started. How would i achieve getting those notifications while application is not created?

ZeePee
  • 385
  • 6
  • 11

1 Answers1

1

You need to use a service to run your application in background. And you need to edit your Manifest to auto-launch it at startup.

Have a look at this other Stack Overflow post for a complete example.

Also I suggest you read these restrictions about starting activities from the background.

Zekovski
  • 161
  • 10