Running angularJS in Captive Network Assistant (WISPr) on iOS and OSX

I know from previous projects that Apple Captive Network Assistant (also known as WISPr client) works with a restricted browser, see How to debug a browser in the Captive Portal? and Ajax on Captive Network Assistant on iOS and OSX .

My hotspot is working with angularJS webpage. On Windows Phone 8.1 and OS X Lion my angular page works fine. On my iOS 8.3 there must be a JavaScript error in the code because I can see the angular variable variables {{myVar}}

in the code, which means the angular framework is not loaded properly.

Any idea what could be causing it?

+3


source to share


2 answers


solved

The reason was not found by me, but by a friend. It turns out the CNA browser (WISPr client) does not allow the use of the local memory of the browser... Whenever you try to write some data to local storage, the application crashes. So the solution is to switch from local storage to regular cookies, or perform user agent detection in JavaScript and exclude the CNA browser (WISPr clients) from using local storage.



Many thanks to @chedabob, the idea of ​​checking for JS enabled resulted in local checking of the store. Consider your support carefully.

+1


source


You can use WeinRe for remote debugging, but if the root of your problem is the Captive Portal view doesn't work with Javascript, it probably won't help.



https://people.apache.org/~pmuellr/weinre-docs/latest/

+1


source







All Articles