app detects whether to connect to the sms-portals