Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: is that possible to force the use of PWA elements on Android Capacitor App ? #89

Closed
Aarbel opened this issue Sep 2, 2021 · 4 comments

Comments

@Aarbel
Copy link

Aarbel commented Sep 2, 2021

Problem

The native Camera API make hybrid apps crash on many Android devices
cf

Need

Using WebRTC image capture is more stable on Android devices, so is there a way to force use of PWA elements on Android environment ?

@jcesarmobile
Copy link
Member

You can use PWA elements directly instead of using Capacitor Camera plugin, check Camera's plugin web implementation if you have doubts/problems.
But you can't force Camera plugin to use the web implementation, unless you fork the plugin and remove the native implementation.

@Aarbel
Copy link
Author

Aarbel commented Dec 13, 2021

@jcesarmobile Camera is really not stable for many Android devices (cf the Camera bugs I listed above).

If I provide a fork to Camera plugin with this possible option (ie "don't use camera plugin on Android, use WebRTC instead") will you merge it?

@jcesarmobile
Copy link
Member

jcesarmobile commented Dec 13, 2021

no

sadly web camera is far from the features the native camera offers and I don't think the issues you mention are so common
I explained how to do it in case you want to do it, but it's not something we will do in Camera plugin, after all, this is a separate repository and you can use it instead of camera plugin.

@Aarbel
Copy link
Author

Aarbel commented Dec 13, 2021

@jcesarmobile this issue concerns nearly 50% of Android users, but it's hard to reproduce on simulator as it's a RAM problem.

Most of Android devices have now a too big Camera, in comparison with how the internal specific OS uses the RAM to take pictures. I will test back Camera plugin, but that's really a big thing now in the hybrid ecosystem. Native Cordova Camera plugin makes app crash really often on these devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants