Is there any headless browser that support geolocation?
I know Phantomjs doesn't support that feature.
If no, how programs that uses geolocation (prey project & lockit tight) work?
I'm interested in client-side geolocation using WiFi positioning & triangulation.
Can any moderator create a tag for WiPS (Wi-Fi Positioning System), if it's appropriate?
IP Geolocation using IP address done from server-side works for all headless browsers because it can retrieves user IP address instantly on request.
I do not see any HTML5 or Wifi-based Geolocation yet on headless browsers.
Related
I followed the tutorial on learnforge.autodesk.io and was able to create a functioning app that accesses data from Construction Cloud and displays them using Forge viewer. The problem is, I'm not able to access Autodesk's login screen behind a firewall (which usually happens when sales team visits a client's office).
For what it's worth, I'm using ExpressJS for backend and have HTTPS enabled. The firewall at client's site also blocks access to virtual machine services like Parsec.
I don't even know exactly what the problem is (or how to troubleshoot), all I know is that this login link:
https://developer.api.autodesk.com/authentication/v1/authorize?response_type=code
&client_id=<client_id>
&redirect_uri=<callback_url>
&scope=<scope>
doesn't work behind a firewall (it works fine through mobile data hotspot though).
So is there anything I can do on my end to make it work?
If that's not possible, what must the client do in order to access my app from behind their firewall?
[blocked] Access to geolocation was blocked over insecure connection to http://www.hnsjb.cn.
Should I change my website to the https protocol?
iOS 10 and also desktop Safari 10 seem to require https connection now. Safari also seems to be more strict than what Chrome did earlier. No mixed content warnings are allowed, Chrome allows e.g. map tiles to load over normal http.
I could not find any guideline specific to Safari, but this issue has been discussed by other web browsers as well.
In particular, the announcement about Google Chrome blocking geolocation over an insecure connection, published on developers.google.com in April 2016, under the last paragraph “I really need to use Geolocation. What should I do?”, advises:
If you would like to use the HTML5 Geolocation API, or if your site already uses the Geolocation API, please migrate the pages making Geolocation API calls to HTTPS, ensuring that they’re used in a secure context.
It's common when developing a web application to want to test it on mobile devices to ensure touch fallbacks and responsiveness.
As it happens, it's easy to do this over a Wi-Fi network. You just join the network on both your computer running the localhost and the mobile device you want to access it on and then enter the url on your mobile device:
http://<YOUR_COMPUTERS_IP>:3000
replacing <YOUR_COMPUTERS_IP> with your computer's ip address and 3000 with the port you are using.
This worked for basic routing.
The site i'm now working on however uses dynamic subdomains (users get their own subdomain) so is there any way to configure this to work with any subdomain?, so that you would be able to access
http://<SUBDOMAIN>.<YOUR_COMPUTERS_IP>:3000
on both your mobile and computer.
You can't put a subdomain onto an IP address directly, but there is a service called xip.io that was built to do just this.
http://<SUBDOMAIN>.<YOUR_COMPUTERS_IP>.xip.io:3000
Does IOS provide API to write a proxy program for IPad /IPhone to process web requests from Safari, Chrome, Firefox and also apps that work with UIWebView?
Can this proxy also work as a daemon? I need this proxy to periodically create web usage statistics and generate summary reports.
I run a website which customises content by the user's location at a country level, so that users from different countries see different content. To determine a user's location, we run the IP address presented by the client in the REMOTE_ADDR header against MaxMind.com's GeoIP database. For desktop traffic this generally returns us adequately accurate data.
However, for users browsing from mobile devices, things are different. For example, the same user has come through from a South African IP address on desktop, and a United Kingdom address on his Blackberry. We know that he is physically in South Africa. On investigation, his UK IP address belonged to Research In Motion Limited, which is obviously the UK-based Blackberry service. His web requests on his Blackberry handset must be routed through RIM in the UK.
We've looked through the request headers to see if the actual origin IP address was shown in a header other than REMOTE_ADDR but have not found anything.
Any suggestions?
Many thanks!
When using BIS or BES, traffic is routed through a proxy server, run by RIM in case of BIS, or the company hosting the BES server. You could try using HTML5 location features.