Giter VIP home page Giter VIP logo

Comments (8)

LennonR avatar LennonR commented on June 19, 2024 1

@mikearmstrong001 I just tried with the regular Mesh Sample from the preview folder and same issue. Works fine with my android test device and on desktop. Also, attached is a screenshot of the debugging console. There is an error.

mobilesafarimeshbug

In case it matters, I'm using ngrok to do the localhost tunneling.

from react-360.

johnnyshankman avatar johnnyshankman commented on June 19, 2024 1

@amberroy I can attest to @gaelduplessix's diagnosis, it's Mobile Safari's lack of fetch support which is required to make the request for the .obj file in ObjectLoader.

Polyfill will work, but I suggest doing npm install whatwg-fetch --save and then adding import 'whatwg-fetch' to client.js so that the Mobile Safari client side has a polyfill for fetch but index.html stays clean.

from react-360.

LennonR avatar LennonR commented on June 19, 2024

Just tested this with an Android Samsung Galaxy 5 and Chrome and it worked fine.

from react-360.

mikearmstrong001 avatar mikearmstrong001 commented on June 19, 2024

Thanks, will check this. FYI to track these problems I usually use Safari's web inspector which allows you to debug a usb connected iOS device.

Was this on all meshes including the MeshSample that we provided?

from react-360.

amberroy avatar amberroy commented on June 19, 2024

Thanks I'm able to repro this as well, will investigate.

from react-360.

gaelollivier avatar gaelollivier commented on June 19, 2024

Turns out it's just Safari missing fetch support. I tried adding a polyfill and it works nice :)

All you have to do is include this file in MeshSample/vr/index.html. You can do this by copying it next to index.html and adding this script tag before any other scripts:

<script src="./fetch.bundle?platform=vr"></script>

from react-360.

andrewimm avatar andrewimm commented on June 19, 2024

RN Packager should have been polyfiling the fetch API where necessary when it does all the other ES6 polyfilling. I'll check the packager pipeline.

from react-360.

andrewimm avatar andrewimm commented on June 19, 2024

Fixed in a previous release.

from react-360.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.