Creating a Homescreen widget for android



Hello, i’m using nativescript with angular 6 in order to develop an android app.

I would like to know how to create a home screen widget that can make a functionality of the application.

Thanks a lot!


Here is a POC for creating home screen widget.


I have seen that before, and the problem is that this POC does not make any complex functionality from the main application (example for complex functionality: playing a song in music application).
So my question is: how to create a widget which can perform functionality in angular&NS application?


Did you try the audio plugin for playing sounds?


No, Because I don’t need that in my application, I just gave this example as an example for an ability I want in my application.