'Debug embedded browser view in native Facebook iOS app
My web application is malfunctioning when running inside the native Facebook app for iOS (clicking in a link does not open Safari, but an embedded browser inside the app).
When running the iOS emulator, in my desktop safari I have the option to attach the debugger to mobile Safari... So I was wondering if it was possible to do the same with an embedded view running in an iPhone connected with the USB cable.
Another problem that I've seen is that the Facebook app makes a very aggressive caching of any web content, so I cannot refresh the page and see if my changes work. The only way I have found to clean the web cache of the native iOS Facebook app is uninstalling and installing it again. A solution for that will be very welcome too.
Solution 1:[1]
I think the solution to this problem is to use http://jsconsole.com with remote debugging. It will stream in exceptions and log statements remotely.
Solution 2:[2]
I am using this. It works fine to me https://github.com/MicrosoftDX/Vorlonjs very easy to install
$ npm i -g vorlon
$ vorlon
after installation, you need to add this to your app
<script src="http://localhost:1337/vorlon.js"></script>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Justin Ratner |
Solution 2 | Christian |