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

Trying out the Capacitor GeckoView but the GeckoView is not getting bundled #3

Open
tohyf opened this issue Nov 16, 2024 · 0 comments

Comments

@tohyf
Copy link

tohyf commented Nov 16, 2024

Describe the bug

First and foremost thanks to your team for making the Capacitor GeckoView this page, it looks like a promising solution to bundle a webview inside an apk for Android platform that has very old non-updatable webview.

However I am unable to get the GeckoView bundled in the apk, it always uses the system webview.

To Reproduce
Steps to reproduce the behavior:

  1. Create new a vite+svelte app (typescript)
  2. Add capacitor v5.7.0 to the app
  3. followed the steps 1,2,3 on this page https://github.com/Web-Media-Foundation/infrastructure/tree/master/packages/capacitor-geckoview (adding stuff to package.json, build.gradle and editing the capacitor.config.ts),
  4. "npm run build" and "npx cap sync" .
  5. Then finally I build the android app inside Android studio, and launched it in Android 7.1.1 emulator (x86). It launched the app but with blank grey background. The errors in the logcat indicated javascript errors typical of old webview not supporting newer js syntax ( such as Msg: SyntaxError: Unexpected token ? ).
  6. I checked the apk file, it is only about 5MB, which I believed it doesn't include the GeckoView engine in it.

Expected behavior
It should bundle the GeckoView and the apk size should be much larger than 5MB, and should be able to run modern javascript without requiring polyfills.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: emulator
  • OS: android 7.1.1
  • Version 7.1.1

Additional context
Add any other context about the problem here.

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

1 participant