Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
This question was closed Apr 08, 2013 at 02:06 PM by Fattie for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by mkielczyk · Apr 05, 2013 at 10:45 AM · androidparametersurl schemes

accessing custom url parameters on android

Im looking for some way to access data passed with custom uri in unity script (like scheme://myapp?data1=xxx&data2=yyy). Is there anything similiar to Application.srcValue that is working on Android?

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

  • Sort: 
avatar image
-2
Best Answer

Answer by mkielczyk · Apr 08, 2013 at 02:06 PM

Since no one answered my question, i found answer by my own and wrote little plugin holding whole uri in static var. Suprisingly its working very well.

Comment
Add comment · Show 5 · 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 oferei · May 19, 2013 at 11:46 AM 2
Share

can you please post/explain your solution? how do you create a custom url scheme for a unity application? how do you handle it?

avatar image Bunny83 · May 19, 2013 at 12:29 PM 0
Share

Right, this answer doesn't really answer the question for the community, thus it's not really an answer to the question.

However mkielczyk was last seen 9 days ago, so it's unlikely to get a response any time soon.

avatar image mkielczyk · May 19, 2013 at 07:05 PM 0
Share

creating custom url scheme is simple. you must add just 1 line to your manifest, where activity you want to belanched is defined, like in this example.

android:scheme parameter defines your protocol name (above is http, but you probably want ur own, unique name). you can skip android:host part, then you get nice and short custom url scheme like: launchmyapp://?parameters by adding just one simple line with

 <data android:scheme="laynchmyapp" />

in activity you wisch to start with it.

getting parameters from unity is bit harder. u must write plugin extending unityplayeractivity (tutorial)

from plugin u can access full starting url and expose it as static member that can be accessed from unity script

avatar image oferei · Jun 10, 2013 at 05:09 AM 1
Share

Thanks.

Anyway, while it seem simple, it took me a while to put all the pieces together. For anybody interested, here's a comprehensive guide I wrote: Serverless Authentication with Instagram

avatar image Bunny83 · Jun 10, 2013 at 06:28 AM 1
Share

@bahenni: Thanks for your post, I'm sure it will be helpful for others.

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to open the game on an android device using a URL? 0 Answers

How to read URL parameters from Unity WebGL Build 4 Answers

How to get Updated Context in Unity3D Android when app is open from Backgroung? 1 Answer

Open another app with intent url on Android 1 Answer

Openning deep link to a Facebook Messenger on Android 1 Answer


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