Auto connect "network-manager:service" interface

Hi,
I am developing a snap that manage the Wifi connections using a web interface. To do this, I need to connect my snap to network-manager:service.
Running the command “snap connect SNAPNAME:network-manager network-manager:service” after the installation the snap worked perfectly. Perhaps, I need to do this automatically. How can I configure the Snapcraft.yaml to auto connect this interface?

Regards
Davi Orzechowski

You need to follow the process described on Process for aliases, auto-connections and tracks

If this is for IoT rather, then there are more contained ways to do this per device model or gadget.