All of a sudden I can no longer view live mode on my phone when I am away from the WiFi in the house. It still works fine on my partners phone just not mine? Any ideas how to fix it?
1 Like
With permission ACCESS_WIFI_STATE
declared in AndroidManifest.xml
:
<uses-permission
android:name="android.permission.ACCESS_WIFI_STATE"/>
One can use the WifiManager
to obtain the IP address:
Context context = requireContext().getApplicationContext();
WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
String ip = Formatter.formatIpAddress(wm.getConnectionInfo().getIpAddress());
This Works.
2 Likes
Please Vote for ‘Feature Request’ to get Rings attention to the issue:
Thanks.
One can use the WifiManager
to obtain the IP address:
Context context = requireContext().getApplicationContext();
WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
String ip = Formatter.formatIpAddress(wm.getConnectionInfo().getIpAddress());