Android APK can't connect to localhost backend

Hey guys,

I’m developing an application with Ionic/Angular as frontend and Java Spring boot as backend.

When they’re both running om my laptop the communication between them works perfectly. Currently i’m trying with the APK (both debug and signed) on my mobile phone, but it cannot make any calls to my backend. I have tried all the above suggestions but with no success.

Whitelist plugin is added, permissions are set, access-origins (*) is set and allow-navigation (set to wildcard). Am I missing something?

Thanks in advance!