I'm trying to port phonegap Android app to bb10, The issue is android web-view doesn't follow Same Origin Policy so app works fine on Android. But seems BB10 web view follows Same Origin Policy. so application doesn't work properly in BB10 devices. Is there any way to disable this SOP in BB10 within Android code or java script?
EDIT:
Small Clarification on this:
Phone gap application opens a HTML/Java Script file inside a web view. So now I'm going to port Phone gap Android app to BB10. Standard web browsers follow "Same Origin Policy" But seems android web view doesn't follow the policy so thats why we are able to call ajax request within web view.
but bb10 web view behaviour is different it seems.
so is there any one who tried to port Android Phonegap application to BB10 successfully? And how to cater SOP in BB10?
Related
I have some geolocation code on a web page and all it does is to show a pointer on my geolocation.
For testing is works fine on my local computer when I just open the .html file on my web browser.
The problem is that I need to test it when moving so I want to open it on my mobile.
I have tried enabling location services on my mobile but still no marker.
The problem is that this is not a cordova or mobile app, just a web page and I don't have host with https so my question is...
How do I get the geolocation on my web page to work on my mobile for testing purposes? Are there any browsers or settings (iphone) that will stop this geolocation restrictions so I can test my code?
Use USB debugging then [as long as you don't need your server] you can unplug your mobile and wander around.
Browsers enforce https when using getUserMedia. I am working on a web app made to be used on a local network rather than actually connecting to the internet so going for a typical TLS cert won't really work. If I use a webview in an iOS app, would getUserMedia work when pointing the view at an IP address serving a website?
The LinkedIn Android app embedded web browser is not loading pages shared from our web site/web app. It appears our site's javascript is not loading completely, or not being run.
As a result, clicking through on a shared link within the LinkedIn Android app leads only to a page with our page loading indicator.
Here is an example of a link that cannot be viewed on the LinkedIn Android app's web browser, while working fine in the LinkedIn iOS app's web browser:
https://journey2health.com/articles/propaganda-shouts-truth-whispers-zEApck
It seems likely the Android app is using a WebView control to display information shared from third party sites. Is anyone aware of documentation regarding known limitations of the Android app's WebView or ways to troubleshoot this problem?
Check out this link, the problem lies within your Javascript.
https://www.linkedin.com/help/linkedin/answer/46687/making-your-website-shareable-on-linkedin?lang=en
Android WebView does not have have a limitation that would cause this.
So my react web application loads perfectly fine on Android Chrome Browser, and other browsers such as UC Browser, Safari on iOS.
However, recently we found that the web application loads blank page when opened using Android Native/Stock/Default Browser ( The blue globe icon ) found on any Samsung / Lenovo devices.
I was able to use weinre / ngrok to attach web debugger, but I was not able to find any errors. The browser would just stop requesting for more static assets and stop doing anything.
I ran another test for my internal web application which is also a react web app (same config), and it loads fine on Android Native/Stock/Default Browser. I'm looking for clue as to what may cause this browser to stop requesting from the webserver...
Thx
Title says it all. There is little documentation on this. Do not want to violate terms of service.
According to the AdSense policy documentation, AdSense for content cannot be used in an application. Basically, if it's not in a webpage with a domain based URL, it's not to be used with that program. If you have an application written in Android, iOS or Microsoft Windows Mobile, there's an SDK from AdMob for ads in apps. That's your only choice with AdSense.