Install APK

I have installed apk the result of an ionic build
in the application, we can search for data from MySQL.
the case is,
when the apk is installed on Xiaomi, data from mysql can appear,
well when I install it on a Samsung cellphone, the data doesn’t appear,
what’s that? Has anyone experienced it like that?
even though the HP settings Install unknown apps are on