0

i am currently working on a Hybrid app, for android and ios. Which uses a inappbrowser plugin with phonegap 3.0. I need to hide the url and navigation button. its working in ios as per the post Cordova InAppBrowser - How to disable URL and Navigation Bar?

How can i do the same for Android project

Thanks in Advance! Arun Sathyan

Community
  • 1
  • 1
Arun
  • 21
  • 1
  • 6

2 Answers2

0

you have to use this in html page see this

http://docs.phonegap.com/en/2.3.0/cordova_inappbrowser_inappbrowser.md.html

function onDeviceReady() {
     var ref = window.open('http://apache.org', '_blank', 'location=no');
     ref.addEventListener('loadstart', function() { alert('start: ' + event.url); });
     ref.addEventListener('loadstop', function() { alert('stop: ' + event.url); });
     ref.addEventListener('exit', function() { alert(event.type); });
}
Rohit
  • 3,401
  • 4
  • 33
  • 60
  • i'm using phonegap 3.0 with inappbrowser. I have already tried 'location=no' and its working only in ios, not in Android. – Arun Oct 09 '13 at 08:56
  • but this is command of html no effect is it on ios or in android – Rohit Oct 09 '13 at 08:57
  • Yes, that is correct, but here this is handled by plugin right? Can we do anything on the plugin code just like i did in Xcode. – Arun Oct 09 '13 at 09:03
  • this is the cod ei tried var ref = window.open(encodeURI('PhoneAP.html'), '_blank', 'location=no'); – Arun Oct 09 '13 at 09:08
0

in config.xml file, make sure pattern of your URL matches in allow-intent tag.

<allow-intent href="http://*/*/*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*" />