Run command in android through firebase notification

0

In my app I need to send a notification through firebase and run a native android command.

For example, I'm testing this by plugging in the flashlight.

When I send the notification with the app open the flashlight turns on as planned.

But when the app is closed you only get the notification.

Is there any way to do the same thing as if you had the app open and turned on the flashlight?

    
asked by anonymous 24.10.2017 / 18:51

0 answers