Page 2 of 3

refresh Panel contents on mobile camera success

Posted: Wed Jul 03, 2013 1:09 pm
by Deon

I guess life would be boring if it was perfect.

Thank you again for your prompt assistance.


refresh Panel contents on mobile camera success

Posted: Sun Apr 20, 2014 5:01 pm
by RobertJay

Hi, can I just get confirmation that when the Cordova webview is operating, the target web page shows but there is still NO way of allowing the user to return to another app page. I'm talking about a totally web app running on e.g. an iPhone. This is a huge shortcoming, since it would seem to mean that the app has to be entirely reloaded. Hopefully someone has some kind of solution. Thanks.


refresh Panel contents on mobile camera success

Posted: Tue Apr 22, 2014 12:10 am
by Illya Stepanov

Hi Robert,

Please can you clarify your problem, specify steps to reproduce it.

And we will study it and will give answer.

Thanks & regards.


refresh Panel contents on mobile camera success

Posted: Tue Apr 22, 2014 2:54 am
by RobertJay

Thanks very much, Illya.

When running my pure-web app (http://robertjay.app.appery.io/) on my iPhone, I’m attempting to display a URL from another site. From the page shown below...

http://screencast.com/t/HLqnN4QRy

... I select the Cordova WebView option (since I want the page to be displayed in my app, and the two other options display the page outside of the app).

The result is shown below:

http://screencast.com/t/EHbaGwQGPs

This is exactly what I want, except there appears to be no way for the user to see a button or link to get them back to one of my other pages. Their only option seems to be to reload the app.

To reproduce, do this:

  1. Load the app

  2. Choose current location

  3. Choose map from header

  4. Choose Cordova Webview

  5. Press show map

    The properties of the Cordova Webview option are shown below.

    http://screencast.com/t/UguLQvv7

    And the JavaScript for the show map click event is shown below:

    http://screencast.com/t/PrXAD3SI

    Thanks very much for your help.


refresh Panel contents on mobile camera success

Posted: Tue Apr 22, 2014 2:19 pm
by Maryna Brodina

Hello!

Unfortunately you can't have button "Back" when you work with Cordova WebView.
But you can use InAppBrowser plugin with button "done"
prevar win = window.open("http://www.urbanmapping.com/demos/drilldown.html", '_blank', 'location=yes');/pre


refresh Panel contents on mobile camera success

Posted: Tue Apr 22, 2014 2:44 pm
by RobertJay

OK... so I think you're saying that I must choose the last (not first) radio button as shown on my first image to have any kind of "done" button. But how do I add the "done" button you mention?


refresh Panel contents on mobile camera success

Posted: Tue Apr 22, 2014 4:06 pm
by Kateryna Grynko

Hi Robert,

This JavaScript code opens another browser with button "done" on your mobile device:prewindow.open("http://www.urbanmapping.com/demos/drilldown.html", '_blank', 'location=yes')/pre


refresh Panel contents on mobile camera success

Posted: Tue Apr 22, 2014 4:28 pm
by RobertJay

The opened window does not have a "done" button that I can see. What do you think is going wrong?


refresh Panel contents on mobile camera success

Posted: Tue Apr 22, 2014 7:24 pm
by Kateryna Grynko

Hi Robert,

You can use:prewindow.open('http://www.example.com','_blank','location=yes','closebuttoncaption=back');/preFind more here:
http://cordova.apache.org/docs/en/2.9...


refresh Panel contents on mobile camera success

Posted: Tue Apr 22, 2014 8:00 pm
by RobertJay

Still no luck, Katya. As I mentioned, my app is pure web (not native or hybrid iPhone) - could that be why the back button is not showing?