Heads up! We're sunsetting this forum to streamline our community space.

join us on Discord for support, updates, and all things Snap AR! See you there!

Thor

Comments

  • Hi @Mikalai @JacekC , I was successful with sending data via the remote API. Now I found that Lens Studio is complaining as soon as I want to send something that isn't an int, float or a string (primitive). Is it at all possible to send an array of primitives or even an object via remote API?
  • Hi @Mikalai , I think I'm getting closer. However, the doc you shared is for native apps. I'd like to share information from a website with a lens which is embedded into the same website. Do you have any doc/examples for that? Cheers [Edit] I assume this is the doc I'm looking for:…
  • Thank you @JacekC , follow up question. In the example you shared it looks to me like the catFactService is injected into the Lens. And I assume the Lens calls this service using a predefined API endpoint. What would that endpoint configuration look like got this to work? Is the 'Cat Fact Lens' available as a template?…
  • Hi @JacekC, thank you for your reply. I've checked out the remote-api documentation and understand that this allows to call remote APIs via web service calls and to send GET/POST requests to web-services which is great. However, what I'm missing is a way to communicate directly with the website on which the lense is…
  • Hi Michael, thank you. I had granted the permissions and had done a click to get the sensor permissions popup. What was missing was the instructions to use the back camera. await session.setSource(mediaStream,{cameraType: 'back'}); However, this also means that I should not use: const source =…
  • Hi @JacekC , thank you for your reply. Unfortunately it also doesn't work with the proposed lenses. Could you please have a look at my code? Maybe you can figure out where I'm going the wrong way. `window.addEventListener("load", async () => { try { // The JSON_WEB_TOKEN can be found in the SnapKit Portal, where it's…