To date, when you called up the Swisscom Customer Center or the My Swisscom app you were automatically logged in. This took place because the applications recognise your SIM card. If you wish to continue to use the automatic login, you must reconfirm this once:
You can do so by selecting the option NATEL® login in the My Swisscom app under “Login”, ordering the SMS code there, entering this and then ticking the “Automatically via SIM” option.
Should you make your smartphone available as a personal hotspot to third parties, please deactivate automatic login in advance. In this way, you ensure that these individuals cannot view any of your personal data.
Thanks for the info. I dont really consider this a solution but more a "dirty workaround". I do not really understand why anyone would solve it this way. I would think it is possible to aks the phones network state before initiating the autologin process. I guess all you do now is check if the connection has a swisscom 3g network ip to decide on the autologin.
Permissions required to access network state:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Now check following utility class NetworkUtil. It has method getConnectivityStatus which returns an int constant depending on current network connection. If wifi is enabled, this method will return TYPE_WIFI. Similarly for mobile data network is returns TYPE_MOBILE. You got the idea!!
So something along these lines (yes its not real code):
IF ("IP = swisscom 3g network ip range" and "phone state = TYPE_MOBILE)
For now atleast all users will be informed about the risks they take.