Page 1 of 3

Links don't work when built for iOS

Posted: Wed Jul 31, 2013 3:45 pm
by Kapow36

Links don't open when I test it on my iPhone. Not a one. I use window.open, links, href tags and navigator.app.loadUrl.


Links don't work when built for iOS

Posted: Wed Jul 31, 2013 4:42 pm
by Kateryna Grynko

Hi,

ChildBrowser is a PhoneGap plugin. It works on installed app only (ipa/apk) and wont work on browser.

Create new JavaScript asset with the following code:
codefunction myNavigate(url) {
var cb;
if (window.plugins) {
cb = window.plugins.childBrowser;
}
if (cb != null) {
cb.showWebPage(url);
} else {
window.open(url);
};
}/code
To call use:codemyNavigate('http://appery.io/');/code


Links don't work when built for iOS

Posted: Wed Jul 31, 2013 4:47 pm
by Kapow36

ok, but how about links? (the ui object) I have services mapping to links in the which I couldn't do well with custom javascript.


Links don't work when built for iOS

Posted: Wed Jul 31, 2013 7:13 pm
by Kateryna Grynko

You can still use links. On click, you would need to get "href" value to call the function described above.


Links don't work when built for iOS

Posted: Wed Jul 31, 2013 7:55 pm
by Kapow36

Excellent, I will try this.


Links don't work when built for iOS

Posted: Thu Aug 01, 2013 5:01 pm
by Kapow36

This works part of the time. I've tested it on android so far and standard web links work great, but mailto links and geo links as well as an https link don't open the way they should. The browser says that they do not exist.


Links don't work when built for iOS

Posted: Thu Aug 01, 2013 6:33 pm
by Kateryna Grynko

Hi,

For mailto links try standard Link component without calling the function described above.
Please show us an example of geo link.


Links don't work when built for iOS

Posted: Fri Aug 02, 2013 4:07 pm
by Kapow36

Hmmm, I'm still doing some testing with this. I've found that links do work, but you have tap and hold in ios. Next thing I'm going to test is href tags in a label. I just wish I could test right now. Appery site has been really finicky lately. Is there anything for fixes soon? I'm having to work on my project at night because it is too slow during the day.


Links don't work when built for iOS

Posted: Fri Aug 02, 2013 4:31 pm
by Kateryna Grynko

We are sorry about our low performance, this will be fixed in late August.


Links don't work when built for iOS

Posted: Mon Aug 05, 2013 5:22 pm
by Kapow36

I'm still having trouble with links. They used to work on my android, but now they just don't respond. I have the links mapped to a service, and links do work fine on a test app I made, but not on the app itself. Any ideas?