How can I create a webview app that display a specific page of any website (I know to create this much), but if user click the home button on that page, I wish to block that navigation. For example, if I am displaying a wikipedia page that says about mit ai2 on my app and if the user decided to navigate back to the home page of wikipedia, I wish to block that option.
You probably need a holding page with an iframe for the actual pages, and a juicy pile of javascript to handle any button clicks in the iframe page, if this is at all possible.
For example,
in this app, I wish to display only the page 'Mechkumar'. Even if user try to click home or store, I don't want to offer that to user. Only the page Mechkumar should be shown to users.
Or otherwise, when user click the home page then within 5 seconds my app has to open the page Mechkumar 3d automatically. App has to check if the user is in 'mechkumar' page for every 5 seconds, if the user is not in 'mechkumar' page, it has to open 'mechkumar' page.
This
should be enough, to prevent going either forward or back, but not working here...
Alternatively this:
(Clock set to 50msecs)
Will keep you on the same page, or at least return you to it, if a link is clicked
Thankyou very much. It worked well when i clicked on home but when i clicked on store, the Screen is becoming blank without showing any page, So, i copy pasted the same GotoURL block. Now, it is working very well. Thankyou.
SOLUTION 1:
FIRST I TRIED THIS AS YOU SAID:
THEN I TRIED WITH MINOR CHANGE:
IT WORKED.
SOLUTION UPDATE 2:
I modified little because I wish to block only home url (and one more selective url), so users can navigate to other url pages.
&
SOLUTION UPDATE 3:
Finally I created blocks like this.
&
I modified little because I wish to block only home url (and one more selective url), so users can navigate to other url pages.
&