is it possible to start a service from a notification. The normal way of starting an activity is working perfectly, but I need some pre checks of data before actually starting the app.
I've tested it with including a valid service in the notification intent, but nothing happens.
For me, this is working greatly.. I will write down the whole example.. you can modify the answer if you need it
This is for Notification create
In Android Menifest
This is service class
Create a broadcast receiver, receive the message from notification and then start the service.
You have to use PendingIntent.getService instead of pendingIntent.getActivity.