Page 3 of 5

Open Links in Safari (iOS)/Native Browser

Posted: Mon Apr 21, 2014 4:06 am
by Matt6607699

no, no I frames that I know of.
The app is shared with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.
App name is DejaWho, The my_connections page has the link out(depending on certain conditions being met, users have to have a shared connection in order for the URL to be loaded on button click. )
a rel="nofollow"http://appery.io/app/view/8060df67-a509 ... ons.html/a

Thanks!


Open Links in Safari (iOS)/Native Browser

Posted: Mon Apr 21, 2014 4:10 am
by Illya Stepanov

Thanks, we'll take a look.


Open Links in Safari (iOS)/Native Browser

Posted: Mon Apr 21, 2014 11:36 am
by Matt6607699

ok thank you


Open Links in Safari (iOS)/Native Browser

Posted: Tue Apr 22, 2014 1:21 pm
by Maryna Brodina

Hello!

Please post detailed steps to reproduce.


Open Links in Safari (iOS)/Native Browser

Posted: Tue Apr 22, 2014 2:57 pm
by Matt6607699
  • I export the app as an xcode project.

    • Connect my iphone or ipad to the computer via cable.

    • unzip and click the .xcodeproj file to open it.

    • I click on my app name in the project Navigator and then select deployment target as 5.0.
      -select phonegap template"My Iphone/ipad device name"
      -I click the play button and let it build. Click ok when prompted.
      -Build succeeded. The app then installs onto my device and opens automatically.
      -I navigate to the my connections make and hit the view profile button to open the users profile in a browser. This is where the URL only opens inApp.

      In order for the "View Profile" button is appear with a link, two different users have to create a connection with each other by logging into the app with their social network profile(facebook, linkedin or instagram).

      I'll add a static link button to the page for testing so that you don't have to do that whole connection process. I'll update when its done.


Open Links in Safari (iOS)/Native Browser

Posted: Tue Apr 22, 2014 3:34 pm
by Kateryna Grynko

Hi Matt,

Thank you, will wait for the update!


Open Links in Safari (iOS)/Native Browser

Posted: Tue Apr 22, 2014 3:58 pm
by Matt6607699

I added the Test Link button and tested it via xcode. The test link opens the url in safari so it works normally.

I then Changed the code on my other buttons from:

codevar URL = localStorage.getItem('local_connection_URL');
var Status = localStorage.getItem('connection_status');
if (Status==="connected"){
window.open(URL,"_system");
}else{
console.log("The connections has not been completed by both parties, waiting on other party");
}/code

to

code
var URL = localStorage.getItem('local_connection_URL');
var Status = localStorage.getItem('connection_status');
if (Status==="connected"){
window.open('http://www.facebook.com','_system');
}else{
console.log("The connections has not been completed by both parties, waiting on other party");
}
/code
Changing the variable in window.open() to a static address did not produce different results as it still opened 'http://www.facebook.com' inApp instead of safari.


Open Links in Safari (iOS)/Native Browser

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

Matt,

Try this please:
prewindow.open(url,'_blank');/pre


Open Links in Safari (iOS)/Native Browser

Posted: Tue Apr 22, 2014 5:06 pm
by Matt6607699

I changed all of the links to: window.open(url,'_blank');

They all opened windows inApp.

The test button opened inApp with a "done" button to close the window.
The other buttons opened inApp without a "done" button to close it.


Open Links in Safari (iOS)/Native Browser

Posted: Tue Apr 22, 2014 9:41 pm
by Matt6607699

Any other ideas? I'm sort of at a loss on how to get this one to work.