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.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
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.
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
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.
You can still use links. On click, you would need to get "href" value to call the function described above.
Excellent, I will try this.
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.
Hi,
For mailto links try standard Link component without calling the function described above.
Please show us an example of geo link.
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.
We are sorry about our low performance, this will be fixed in late August.
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?