App forced stop after installation but works fine in AI companion

Basic_Switch_on_off (1).aia (2.3 KB)

App forced stop after installing but it works fine in AI companion

This is my aia file i removed api key and url for safety
please give me the solution

Your blocks look harmless:
blocks

The only straw I can grab at is in the missing Firebase component server data and a guess at your location based on your name.

Having a Firebase server component with a URl of a database server different from us-central can cause a crash at startup.

I am unsure how the Companion avoids that.

use logcat to find out what's goig on

Taifun