We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

“Click here to enable iOS VR mode”

Home Forums General Questions “Click here to enable iOS VR mode”

  • This topic has 17 replies, 4 voices, and was last updated 3 years ago by Emma.
Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #33834
    johngrigni
    Customer

    I’m trying to create an AR version of an app, and I think I’ve copied it over correctly from the ‘Augmented Reality’ sample, but it doesn’t work. I’m trying it on iOS. I have a button that’s supposed to show up if AR mode is available, but it doesn’t show (see attachment). Since everything depends on that button being clicked, nothing happens. Even in XRViewer, I just get a red bar at the top that says “Click here to enable iOS VR mode”

    I’ve hosted it here:
    https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:d4c42d0559/applications/Gridscape-AR/index.html

    Attachments:
    You must be logged in to view attached files.
    #33840

    Hi,
    This module is shown because you activated VR compatibility module for your app. It will try to initialize the required iOS features for cardboard devices. To remove it simply delete webxr-polyfill.js file from you app and remove the following 2 lines from your app’s html file:

    
      <script src="webxr-polyfill.js"></script>
      <script>var polyfill = new WebXRPolyfill();</script>
    

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #33842
    johngrigni
    Customer

    Thank you!

    But the ARButtons collection still doesn’t show up.

    #33852

    Have you tried in the recent WebXR Viewer browser?

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #33893
    johngrigni
    Customer

    Yes, nothing happens.

    The buttons don’t show up. In fact, I remade the puzzle so they should show up, but get hidden if AR is unavailable. In other words, they are visible in the blender file, and only hidden by the puzzle. The first ‘show ARButtons’ is redundant.

    It works with the ‘Augmented Reality’ file with the same app on my phone.

    Attachments:
    You must be logged in to view attached files.
    #33909

    Hi,
    Can you please share your project so we take a look?

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #33910
    johngrigni
    Customer
    #33914

    Thanks, can you share source files as well? :)

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #33916
    johngrigni
    Customer

    <removed link>

    #33919

    Hi,
    I’ve checked your application and it works in AR mode like a charm. Tested it in WebXR Viewer on iPhone 7 (iOS 14). BTW does your phone support ArKit technology?

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #33921
    johngrigni
    Customer

    I’m using iPhone 8 Plus, using iOS 13.7. Do I need to upgrade to 14?

    #33923
    johngrigni
    Customer

    I just upgraded to 14, no change

    #33933

    Please check out the following link. I’ve uploaded your app to our network directory:
    https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:2cda667dca/applications/abc/Gridscape-AR.html

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #33934

    Looks like we found the root of the issue. It seams like WebXR Viewer does not support establishing AR sessions out of iframe-d applications. It means that the link I provided above should work for you.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #33942
    johngrigni
    Customer

    Thank you very much! That was driving me crazy!

    I happen to notice that Apple had an AR demo running as an easter egg for their October event, running in Safari on iOS. Do you know if they plan to make ARKit available to verge3D users? Or is it an issue of licensing fees?

    PS – I’m removing the link to the source code from this thread.

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.