I have used MQTT and Cayenne, but I have not linked Cayenne with App Inventor, I indicate two links in case you can get any ideas:
ESP32. MQTT. Broker. Publish. Subscribe. ThingSpeak use the extension UrsAI2MQTT
http://kio4.com/arduino/117F_Wemos_IOT_Cayenne.htm it is in Spanish,