Is there a way for a privileged Firefox OS app to detect if the WiFi is connected to a network? I am aware of https://developer.mozilla.org/en-US/docs/WebAPI/Settings but that API is only for certified apps. All I need to do is detect whether the phone is connected to a network or is not connected.
You need to use the Network Info API, which provides you with values about the bandwidth (Mb/s estimate) and if the current connection is metered (mobile data vs Wifi).
metered should be enough to tell if the user is on wifi. There is no need to read the Settings! This API is even accessible for web apps.
Check the window.navigator.onLine property
Related
I'm facing an issue while trying to record a mobile native application using Loadrunner (Remote application via Loadrunner proxy).
I am using a client provided laptop / mobile devices for testing.
Initially, I was not able to record the mobile app via LR proxy using the client's laptop, but I was able to do the recording using my personal laptop. After raising tickets and having multiple sessions with the helpdesk team, we figured out that we are able to record the mobile app by disabling the VPN on the client laptop, but fail when the VPN is enabled (as the IP address is being changed to the VPN network).
Disabling the VPN is against the client security policy and I don't even have the admin rights to disable it.
As suggested by the helpdesk team, I have tried installing pulse secure and connecting the mobile device to the VPN (so that the mobile and laptop would be under the same client network), but it failed to record.
Network team wouldn't work on the issue as it is not related to network elements (routers, switches and firewalls, etc.), but to the user end-point.
I am not able to do recording with Jmeter or capture traffic using Fiddler as well with the VPN being connected in the laptop. All of the mentioned tools were able to do the recording from my personal laptop.
We are now stuck without any option to proceed further.
Please comment if anyone has faced the issue or has insights on the next steps that I need to approach this.
I am working on a network controller based on Raspberry Pi 2. I have nicely working WiFi AP, DHCP server, captive portal (via DNSmasq) and a web server. The unit is fully offline, no internet access is available.
My only problem now is that users need to initiate interaction by running their browser and typing in a random domain so they are served my content.
I was searching the internet for a way to make my iPhone initiate captive network assistant, but couldn't find a way to do so on iOS 8.
Given that my network is offline with no access to the internet it is clear to me that my iPhone detected a captive portal as it presumably pings many websites in order to determine it's online status. Why doesn't it display my login screen automatically?
Our windows store app allows user to manage (create or dial) VPN profiles.
For this functionality we use
RAS Api (create and dial VPN profile)
RAS Api
Wlan Api (listen to wifi networks) - will be changed to classes with Windows.Networking.Connectivity in windows8
Wlan Api
We face following troubles for Windows Store application:
RAS API functions don't work properly under windows store application template (as example RasEnumDevices return error code 5 - Access Denied).
However it works good from desktop application launched on windows 8.
Question: how we could get RAS API to work under window store applications? If that is absolutely impossible - is there any other way to create VPN connection in app developed for Windows Store?
All user's VPN profiles stored by Windows OS in "..\Microsoft\Network\Connections\Pbk\rasphone.pbk", file could be found on file system manually, but we don't have access to this file via API, either we can't access it directrly. Current workarround uses own created PBK file located in users profile folder.
Question: how we could get access to system VPN connections stored in OS.
Thanks.
Hotspot Shield VPN for Windows offers private browsing to ensure the privacy of your web session.
Check it out here: http://www.anchorfree.com/hotspot-shield-VPN-download-windows.php
From this question I know it is possible to send data from a WP7 to the computer is connected via WCF service. I have a solution set up to this and it works quite well. The only problem is I must either hard code the name of the host computer or allow the user to configure it on the device themselves.
I would prefer to have this happen automatically, so is there a way to detect the name of the computer that the WP7 is connected to.
No, there is no way to query information about the host machine from within your app.
There would be a large potential security hole if an app could query information about the PC it was connected to.
I'm trying to find a way of automatically discovering and communicating with a local network service running on desktop/laptop. Much like the Zune's wifi sync feature.
iPhone can do this using Bonjour service. Is there anything like that on WP7 platform? Any other suggestions?
There is currently nothing like this available in the SDK.
Network operations are currently very limited and you're restricted to HTTP based connections. I'm not sure how useful that would be for the scenario you describe.