Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Links don't work when built for iOS

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Links don't work when built for iOS

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

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Links don't work when built for iOS

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Links don't work when built for iOS

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

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Links don't work when built for iOS

Excellent, I will try this.

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Links don't work when built for iOS

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Links don't work when built for iOS

Hi,

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

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Links don't work when built for iOS

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Links don't work when built for iOS

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

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Links don't work when built for iOS

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?

Return to “Issues”