#Lenses rendering issue on Mac only for Prod Environment

21 messages · Page 1 of 1 (latest)

restive seal
#

I have integrated the camera-kit with my web-app(Next.js). It is working fine for staging on all devices. But for prod it do not work on Mac. It is working fine on mobile devices. Haven't verified for windows.

It either return black screen or hangs after rendering first frame (with lens).

The integration is live on aznabee.com

restive seal
#

Found out that its probably a whitelisting/security issue. I understand restricting for webview , but on desktop the adress is same a mobile, so why is it not allowing ? I used "https ://www.aznabee.com/" as the whitelisted url. Also i cannot find any way to add new urls. It just says "Can't add a Platform Identifier for an approved Application". Can't i add and get a re-approval?

split dune
floral ledge
#

Hey @restive seal -- this actually is not expected. Do you have any sample code you can share for us to take a look at?

#

To confirm, this is a Camera Kit Web integration, correct?

restive seal
#

Hi , sorry for late reply. Yes its Camera Kit Web integration. I am still stuck at this. @split dune i created one more app and whitelisted the required addresses, but still black screen. And now it is not working even for mobile. The staging token is working fine for same addresses.

aznabee.com
https ://www.aznabee.com

these are the two addresses i used.

floral ledge
#

what happens if you remove await on your CameraKitSession.play call?

#

Tough to say exactly what's going on here without a clean repro. If you can extract the Camera Kit logic into a small project on github, I can take a look and figure out what's going on

restive seal
#

yes i tried to share the code here, but it rejected. I will share the github link in a moment

floral ledge
#

OK 1 sec

restive seal
floral ledge
#

Alright, there's a lot of logic in here that's fighting Camera Kit's intrinsic logic and some canvas handling is causing it to drop off.

#

Camera Kit will handle all of the sizing and there are methods for fps limit + setting render size, etc

#

this should work

restive seal
#

Thanks!! Will try this and revert. One thing is staging token was working perfectly fine with current implementation. Do camera kit handle prod environments differently?

floral ledge
#

no would be the same.

#

not sure what might cause that hm

#

hopefully the above simpler approach will work for you though