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

Capacitor Android GeckoView #183

Open
Losses opened this issue Nov 11, 2022 · 14 comments
Open

Capacitor Android GeckoView #183

Losses opened this issue Nov 11, 2022 · 14 comments

Comments

@Losses
Copy link

Losses commented Nov 11, 2022

Platform Request

Name: android-geckoview
Package: @capacitor-community/android-geckoview

Description

We've successfully implemented an integration of ionic and Geckoview, and would like to contribute the source code to capacitor-community.

@hurda21
Copy link

hurda21 commented May 3, 2023

Would love this as a feature! We're trying to do something similar due to WebGL issues in Chromium.

@Losses
Copy link
Author

Losses commented May 5, 2023

Would love this as a feature! We're trying to do something similar due to WebGL issues in Chromium.

Try this: https://github.com/recative/recative-system/pkgs/npm/capacitor-geckoview

@lincolnthree
Copy link

Does anyone have any results to report back from using Gecko? Interested in if this is actually a viable option.

@Losses
Copy link
Author

Losses commented Jan 15, 2024

Does anyone have any results to report back from using Gecko? Interested in if this is actually a viable option.

We used to use it in production, it works well but needs a lot of tricks. If you want to try it, make sure to have enough time to fight with the system you are not familiar w/, good luck.

@ewguo
Copy link

ewguo commented Jan 15, 2024

Would you mind giving some examples or general direction of the tricks that were needed? E.g. were they mostly to do with tying Native APIs to GeckoView, stuff within GeckoView itself, or something else?

I think this is potentially huge for Capacitor/Android (see ionic-team/capacitor#3899), especially since WebView appears to be getting slower with newer Android versions.

@Losses
Copy link
Author

Losses commented Jan 25, 2024

Would you mind giving some examples or general direction of the tricks that were needed? E.g. were they mostly to do with tying Native APIs to GeckoView, stuff within GeckoView itself, or something else?

I think this is potentially huge for Capacitor/Android (see ionic-team/capacitor#3899), especially since WebView appears to be getting slower with newer Android versions.

Ehhh.... our team members are schedule a meeting to discuss about how to make a detailed document, it will take times to be finished

@pjamessteven
Copy link

My app works great on iOS but Android can be really hit or miss. For example with WebView 103 (default on my One Plus Nord device) it's a laggy mess. Loading the SPA in Chrome or installing WebView 122 beta from the play store makes it buttery smooth. I don't really want to release an app where users on older WebView versions have a bad experience. I'm going to have to really strip it down to make it usable on older WebView versions.

I'm really interested in the potential of capacitor-geckoview to solve this problem. I found @Losses repo but it looks like it's for Capacitor v4 (https://www.npmjs.com/package/@web-media/capacitor-geckoview?activeTab=code). Unfortunately I'm using v5. I also can't find any hints on how to actually use it or implement it anywhere. I would be really interested to hear more about how to implement this!

@ewguo
Copy link

ewguo commented Feb 29, 2024

I've made a simple Capacitor-Geckoview app with Capacitor v5.6 here: https://github.com/imslp/capacitor.geckoview

In addition to using Geckoview it showcases accessing local files and using SQLite. It works well enough but is by no means polished, PRs welcome of course.

@gaurav21r
Copy link

@Losses Is this made by you / your team? https://www.npmjs.com/package/@web-media/capacitor-geckoview?activeTab=readme

I can't find the Github repo for this. Is this Open Source? Would love to help if it is. Would still appreciate a reply if it isn't So I can stop searching :)

@Losses
Copy link
Author

Losses commented Aug 4, 2024

@Losses Is this made by you / your team? https://www.npmjs.com/package/@web-media/capacitor-geckoview?activeTab=readme

I can't find the Github repo for this. Is this Open Source? Would love to help if it is. Would still appreciate a reply if it isn't So I can stop searching :)

Yeah, it's our work, with a lot of updates, the update repo is here! https://github.com/Web-Media-Foundation/infrastructure

@gaurav21r
Copy link

Wow! Thanks a ton @Losses !!!! I believe the latest version is here then?

https://github.com/Web-Media-Foundation/infrastructure/tree/master/packages/capacitor-geckoview

Are you guys at Web Media Foundation open to me trying to open a PR to update it to work with capacitor 6.0+ ?

My plan is to diff capcitor itself between 5.7.0 (as pointed to by your package.json) to 6.1.1 the latest release in Capacitor.

I have no idea of the effort involved but would be great if you could point me in the right direction. Its very important for our company and would love to collaborate if we have a shared vision for this.

@Losses
Copy link
Author

Losses commented Aug 5, 2024

Are you guys at Web Media Foundation open to me trying to open a PR to update it to work with capacitor 6.0+ ?

Sure!

I have no idea of the effort involved but would be great if you could point me in the right direction.

We have tried to upgrade a version before, it not a very hard task, good luck!

@gaurav21r
Copy link

@Losses Thanks for your prompt replies, will discuss with my team and start work. Hope to run by some minor issues with you 😅

@Losses
Copy link
Author

Losses commented Aug 5, 2024

@Losses Thanks for your prompt replies, will discuss with my team and start work. Hope to run by some minor issues with you 😅

Feel free to draft issues in the repo of web-media-foundation if you meet any trouble!

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

No branches or pull requests

6 participants