GithubHelp home page GithubHelp logo

Does this work in PWAs about ngx-webcam HOT 7 CLOSED

basst314 avatar basst314 commented on July 26, 2024
Does this work in PWAs

from ngx-webcam.

Comments (7)

basst314 avatar basst314 commented on July 26, 2024

Hi @OrangeDrangon,

Please be more specific what you mean.

Did you encounter any issues?
If so, please provide more information and/or a minimal code sample that reproduces the issue.

Thanks

from ngx-webcam.

OrangeDrangon avatar OrangeDrangon commented on July 26, 2024

Let me explain. Your outstanding plugin works every where I have tested it except for on IOS after I add it to the home screen. I was wondering if this was on your end or mine. Or just the platform in general. My guess is that it is IOS but I was just curious. I will get my code on GitHub in the upcoming hours

from ngx-webcam.

basst314 avatar basst314 commented on July 26, 2024

The ngx-webcam plugin works on iOS, as long as the OS is up-to-date enough. I believe Apple added the required APIs in iOS >=11.

Please verify that your iOS device is running the latest OS version.

Thanks

from ngx-webcam.

OrangeDrangon avatar OrangeDrangon commented on July 26, 2024

I am running Ios 12 it only does not work when I add the app to the home screen if that makes sense. And in the main browser it works

from ngx-webcam.

basst314 avatar basst314 commented on July 26, 2024

I tried it with the demo page that is linked in the readme. I did the following:

  • opened the demo link on the iPhone in safari
  • added the web page to the home screen
  • closed safari
  • opened the home-screen bookmark
  • safari opened and asked for webcam permissions
  • after clicking „allow“ the webcam was shown successfully

Please verify the steps yourself. Launching the same url in the same browser from within the browser or homescreen should not make any difference.

from ngx-webcam.

OrangeDrangon avatar OrangeDrangon commented on July 26, 2024

This problems occurs when I have an app manifest.json and a service-worker.js making it a PWA. After further research I believe this is a limitation of PWAs on Apple's end. Here is an example so you can mess around with it.

Repo
Website

This PWA was not working when added to home screen on IOS not tested on Android as of now.

from ngx-webcam.

basst314 avatar basst314 commented on July 26, 2024

I noticed that when adding your website to the home screen, iOS doesn‘t save the whole URL but just the base url.

This
https://orangedrangon.github.io/PWA-Snapchat/

Becomes this link on the homescreen:
https://orangedrangon.github.io/

When opening from the home screen it says that there‘s no webpage under this address, because the path information is not preserved.
That may be the issue.

You could try to work around it by having it hosted on a private domain that i.e. forwards to the right path, or just run your app under the domain without additional path i formation in the url. This might work.

However it doesn‘t seem to be a limitation with this library but a behavior of PWAs.

Thanks

from ngx-webcam.

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.