The use of appQoS also requires setting up the QoS that is involked by the rule too. In addition to permit it has to apply the QoS setup.
The full details are in this documentation.
https://www.juniper.net/documentation/en_US/junos/topics/topic-map/security-application-qos.html