- Home /
Web based AR app
I've been asked by a client to create an Augmented Reality App that can run via their website. It will need to be accessible on iOS and Android phones and incorporate ARKit, ARCore and Vuforia.
I have developed apps for iOS/Android stores before but don't know where to start with a web based one as I have very little experience with website coding.
I would appreciate any help if you've had experience with this!
So, a few questions I have:
Is the coding process the same as developing for the stores? i.e. once the App launches from the website, is it the same as if one had downloaded an App from the store?
Does ARKit, ARCore and Vuforia work on a web based app? If so, do I need to do 2 separate apps, one for Android and the other for iOS, or would I need to code both in and detect what device the user has?
How does the App integrate into the website, would this require me to code in some HTML or would it be a package, similar to how you submit to the stores?
I would also appreciate any examples of existing web based apps to have a look at.
Many Thanks
Answer by jackerlo · Mar 21, 2019 at 11:47 AM
Hi Holly,
I've previously created some webvr experiences( use mozilla webvr assets to get understandings).. I'm digging my hands on ar now , hence came across this, did you ever got to solve this problem?
you wouldn't need to build a different app for ios and android, also no html coding required but is helpful to know in later stages of putting it up over a server. You'll most probably be exporting it via webgl or babylon js( both of export options are available in unity).
Im currently trying to find answer to this as well, if vuforia build will run(should imo), and accessing proper geo and camera through web api's.
Hey Jackerlo,
Any advice you can give to someone getting their feet wet in Web AR?
Answer by ToughNutToCrack · Oct 27, 2020 at 11:54 AM
I know this is an old question and I hope you've found a good solution. Anyway, we are working on a library to create web AR experiences from Unity.
Video: https://youtu.be/bcw7mwjXgpE Repo: https://github.com/ToughNutToCrack/ARWT Info e Doc: https://toughnuttocrack.it/arwt
Answer by karthickannan · Jan 21, 2020 at 11:07 PM
Hope you are doing good. Did you guys find any solution to use AR on web. I've found lot of content showcasing the development on Android (using ARCore) and Apple (using ARKit), but I'm struggling to get and resource/leads to follow them to develop a ar application on web using unity. If you find anything on this, kindly help me out. Thanks in Advance.
Answer by JDelekto · Jan 20, 2020 at 10:22 AM
One thing that you can look into is AR.js and A-Frame (I have not personally tried this, it is a suggestion). There was an older blog post about using AR with A-Frame here: https://aframe.io/blog/arjs/.
In order to communicate with the A-Frame JavaScript library, one can write a wrapper .jslib file that your Unity scripts can call in order to use the APIs. There is a good reference to do this here: https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html.
The HTML page you have hosting your Unity application will need to load those libraries and add any of the necessary markup required.
Answer by tonyboutwell · Oct 12, 2020 at 09:43 AM
Can you export for web ar or not? I have read Vuforia does not support it so does that leave AR Foundation? Really need an answer to this before we invest a lot of development time. Thanks in advance.
Your answer
Follow this Question
Related Questions
AR Foundation: different behaviours depending on build platform bug 0 Answers
Play web game through mobile device 1 Answer
Playing video on a cube ? 1 Answer
Project not pushing to Android or iOS 1 Answer
Send HTML email to native email client 3 Answers