• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by tallyho 1 · Nov 02, 2010 at 04:52 PM · iphonebrowseropenurl

iPhone/iPad -> display URL -> iPhone/iPad

Hi, I'm wondering if Unity 3 allows an iPhone/iPad app to use Application.OpenURL("myURL"), show the page within a window (within Unity or as separate browser) and then somehow return to the Unity app? When I try this at the moment a browser window opens but it appears to close the Unity app and the only means of escaping the browser itself is to close it using the home button.

I have read a brief discussion concerning someone displaying a back button within an OnGUI call and this does appears to work when running the app with the Unity editor but on a device the Unity app doesn't display any 'back' button.

Thanks for any advice.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Bampf · Nov 02, 2010 at 06:21 PM

As far as I know this is a limitation of iOS. In older versions, your game closes and the browser opens. Your game is no longer running.

As of iOS 4, a form of multitasking was added. The user can easily return to apps that were interrupted by the launching of the browser or by a phone call. The last state of the app is restored as well so the user isn't starting over. iPad will be getting this feature soon with iOS 4.2.

The good news is that you don't have to do any work. Your Unity app will behave the same as any other app on the user's device, and they aren't going to blame you for the behavior.

There ARE apps that are able to render browser content themselves. These are typically RSS readers or social apps like twitter clients- not games. Unity doesn't come with this ability, and while in theory someone could make an add-on that would give this ability, I'd be surprised if anyone had bothered to do so.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bampf · Nov 02, 2010 at 06:28 PM 0
Share

See also: http://answers.unity3d.com/questions/2384/how-can-i-call-an-url The accepted answer mentions a way to display a static image of a webpage by using an external web service... It also mentions that a feature request exists on feedback.unity3d.com for adding HT$$anonymous$$L rendering to Unity. So although I argued in my answer above that it isn't a feature that games need, clearly not everyone agrees.

avatar image tallyho 1 · Nov 03, 2010 at 10:07 AM 0
Share

Looks like stinkbot can create an UIWebView to sit over and return to Unity ... might give it a go first myself though. Thanks for the feedback.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Unity IOS - Open a In-App Web Browser 2 Answers

open the web browser in unity iphone 1 Answer

streaming to iPhone and Android 0 Answers

Sending e-mail from iPad/iPhone doesn't work 1 Answer

will unity run on the android browser 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges