Problem with webview error of android apk when server is offline - webview

Well, hello there I am facing a problem with webview of a website.
Let me expand : I have created local server and which is working with webview based android apk, now when my server gets offline it is showing like this, where my website address or ip is visible to everyone. Is there any way to hide this with a blank screen / toaster / generic text anything.
P.S coding is on my android studio.
Main problem what i am facing

Related

Electron using screen sharing through Electron webview (loadUrl())

I developed a small Electron Dekstop application that handle's login on my webapp and then "load" the webapp through an Electron loadUrl().
We already implemented Jitsi meet in that webapp (with specific UI etc). Everything works fine except the screen sharing.
(The first development was years ago, and since Electron did not allowed custom chrome extension we just didn't bother to make the screen sharing work).
Since then a lot of changes happened and it seems like this project managed to make it work.
I am aware of the solution that allows electron to use the jitsi screen sharing through #jitsi/electron-sdk but i'm wondering whether a solution exists in my case (AKA Jitsi not being implemented directly in Electron, but through a loadUrl()).
Is there a chrome extension that I could add to my electron project allowing chromium to get the JitsiMeetElectron.obtainDesktopStreams function ?
Or is the only solution to implement from scratch jitsi in our Electron project ?
Thanks in advance.

Webpage crashing on any web browser for iOS device

I am trying to access webpage on various browser on iOS Device, but it seems that after loading some part of the webpage, it redirects automatically and then crash the page and shows the webpage was reloaded because a problem occurred for 2 seconds, and then show A problem repeatedly occurred on "URL for page as below"
I tried this URL on a desktop and it was not behaving well. I don't know if it is there rotating image code, or the JavaScript code they have running the "design your shoe" features. But this site had weird stops and starts and mouse jumps when I tried it.
I don't have an iOS device handy, but I'm thinking it is not you, it's the site.
Try it on another device.

iPad Safari Web Inspector crashing on page load

I have a video focused website made in wordpress. When we go to test the website on iPad we connect it to a mac laptop and open the safari developer tools to check if we have any errors and whatnot. Everything works on our homepage but when we go to any video post we have added, it crashes the developer tools window, and the browser on the iPad has a little drop down at the top saying "A problem occurred with this webpage so it was reloaded".
The page is fine on the iPad, there aren't any PHP errors in our logs, everything works fine functionally, so I can't figure out what is crashing it.
Any ideas? Any way I can troubleshoot this?
Thanks in advance :) And let me know if you need any more information!
I had this exact problem and solved it by updating both OSX Safari and the iPad to the latest versions. Now i can use the Web Inspector again.

Flex Mobile HTTP Request Error on apk file

I'm developing an android application using Flex Builder 4.6.
It's fairly complicated app and I'm using HTTPService for communication with the server.
It was working fine until recently it stops working after making the apk file.
So From desktop simulator, in debug-mode in the mobile, the HTTTPService just works fine but when I make a release build and install it in the mobile, it just doesn't work.
I tried to track down the error, it's just simply shows 'HTTP request error'.
For example here is the mxml code I'm using
<s:HTTPService id="sayHi" method="GET" result="sayHi_resultHandler(event)" fault="sayHi_faultHandler(event)"
url="https://zaawi.co.uk/developer/controller.php" useProxy="false">
<s:request xmlns="">
<h>sayHi</h>
</s:request>
</s:HTTPService>
I checked the url https://zaawi.co.uk/developer/controller.php?h=sayHi in the browser which works fine, as well as, in the simulator and debugging mode.
The server(php) sending response in xml format
print '<?xml version="1.0" encoding="UTF-8"?><data><hi>hello world</hi></data>';
It was working fine for almost a year and just stopped working recently.
Please let me know if anybody else had this problem and how can I resolve this.
Many thanks in advance
I had a similar problem a while ago, my HTTPService requests started to fail and i didn't got anything useful in the FaultEvent, but after hours of trying different things i noticed that i had the network monitor enabled in flex, and since i had nothing to loose, i disabled it a voila! The app worked again!
I think when you have the network monitor enabled, the app redirects all requests thru a local proxy or something and that way you can sniff the requests, but this seems to stay when you create a release version and mess all requests.
So if you have network monitor enabled, just disable it, and then try to build your app again.
It appears that it is related to how the captive runtime calls https endpoints. Someone over on this thread Adobe AIR mobile app fails when using HTTPS on Nexus tablet, but works on Kindle figured out that by switching from the captive runtime to using the shared AIR runtime, the error went away. You may also want to try the latest AIR SDK and see if that solves the problem (although I've been seeing issues with the apps working on iOS using the 3.8 beta build, so you may want to try 3.7 first).

PhoneGap location issues

I'm using PhoneGap 1.0 for iOS right now to do some coding with google maps. The system is also running on jQuery Mobile which I think is half the issue.
When trying to pull up the users location I get the following error in the console: Ignoring gap command with incorrect sessionKey; expecting: 615717337 received: (null)
I'm assuming that since the map page is an 'external' page the original phonegap call made on the home screen of the app isn't passing a session along to the other pages. Is there a way to retrieve this sessionKey?
It looks like the errors I was experiencing are normal and do not have effect on the geo location. There is currently a bug with the iOS Simulator and PhoneGap that causes geo location services to timeout on the simulator, but everything works as expected on an actual device.

Resources