zappar-xr / universal-ar-unity

58 stars 13 forks source link

After updating 3.0 project not working in iOS Safari. #7

Closed ti-hardikshah closed 2 years ago

ti-hardikshah commented 2 years ago

Describe the bug I am working with Unity 2019.4.33 || 2020.3 || 2021.2.6

To Reproduce Add Zap work using git and Add sample file Open Scene Image traking Build WebGL and test on iPhone safari

Expected behavior The app should work but get stuck at the black screen even not ask for camera permission.

Smartphone (please complete the following information):

nfynt-zap commented 2 years ago

Hi @ti-hardikshah,

We weren't able to reproduce the same over iPhone safari! Can you confirm

Also note if you're upgrading from older UAR version, you would need to update your Unity scene as well. As this is a major release and there are major changes compared to older version especially with respect to Tracking and camera, and other editor level changes. Please refer to CHANGELOG.md to compare the new developments, and README.md to understand the new flow.

Regards,

ti-hardikshah commented 2 years ago

Hello @nfynt-zap I am just using an Inbuilt pipeline and building sample demo, it works on Chrome but not working on safari. Give me 15 min I'll update Video as well as a testing link.

I am using Unity 2020.3.24, as well I had tests on 2019.4.36 and unity 2021.2.6

I am not using SRP.

Its work on iPhone 11 but not working on iPhone XR, I had tested on 2 different OS version: 15.2 & 14.8

ti-hardikshah commented 2 years ago

@nfynt-zap Here is the testing link: https://fpzjo.zappar.io/2948006917381701143/6.5/ and Here is a video link : https://youtu.be/mj_9Z7ejNKs

nfynt-zap commented 2 years ago

Hi @ti-hardikshah,

Can you provide a minimum reproducible unity project for this?

I am afraid it might be project specific than anything to do with UAR! We tested the sample scene with iPhone XR on ios15.1 and iPhone 6 on ios 12.5 and it seems to work fine.

Also, did you try clearing your browser cache and taking a debug build to see what's wrong. At least on my iPod ios15.1 the site and permission loads fine but the unity scene update is extremely sluggish!

nfynt-zap commented 2 years ago

Also I notice the project is using WebGL 2.0 which is only supported on ios15.1 and above devices and not an ideal choice at the moment for Safari. You may wanna try using WebGL 1.0 graphics API from Unity WebGL player settings for better support.

ti-hardikshah commented 2 years ago

I had set Auto in graphics API, let me try with WebGL 1.0. I had set Auto because in unity 2021 WebGL 1.0 is depricated

and before 15 days all work well even in XR safari.

ti-hardikshah commented 2 years ago

Even I have tested with WebGL 1.0 setting unity 2021.2.6 with ZapWork 3.0.0 but still does not work.

ti-hardikshah commented 2 years ago

@nfynt-zap Here is the demo project link https://we.tl/t-dcE2sEEsrM Unity 2019.4.33 for the same version I am facing the same issue.

ti-hardikshah commented 2 years ago

@nfynt-zap I had noticed one more thing, for a few tests it work well for iPhone XR safari, but after a few iterations of the update build it stop working in safari. so I had clean Safari catch from setting but still not working

nfynt-zap commented 2 years ago

@ti-hardikshah Thanks for sharing the project.

It seems you were using Zappar WebGL template on Unity 2019, where it should have been Zappar2019 (please refer to docs).

Here's the build I published using the same project: https://rqkek.zappar.io/56995127745125615/0.1.2/ Can you confirm it works fine on your end? I tested on iPod ios15.1 and Android and everything seems normal.

ti-hardikshah commented 2 years ago

@nfynt-zap I have tried both for 2019. and for unity 2020 I am using the Zappar template only.

ti-hardikshah commented 2 years ago

Using your testing link I am getting this error on iPhone XR Skype_Picture_2021_12_21T15_07_47_665Z

nfynt-zap commented 2 years ago

We were able to test this on iPhone XR and didn't encounter this on our end.

Can you try the following steps next:

If it still doesn't work please reach out to us via forum or email where the support team can better assist with your project.

I'll be closing this issue now since this doesn't seem to be related to UAR and we can't reproduce it on our end. Feel free to reopen in case you find it related to UAR or specifying older version fixes your issue.

Regards,