Use for questions about using GeckoView, an open-source library that allows you to render web content on Android using the Gecko web engine. Created and maintained by Mozilla and the community open source community. More info https://geckoview.dev/
Questions tagged [geckoview]
71 questions
2
votes
1 answer
Could not get unknown property 'geckoviewChannel' for object of type
I am following the GeckoView quick start guide : https://mozilla.github.io/geckoview/consumer/docs/geckoview-quick-start or https://wiki.mozilla.org/Mobile/GeckoView
So I created a new project in Android Studio, empty activity, API 18, and added…

Diego
- 569
- 1
- 9
- 28
2
votes
0 answers
How to use GeckoSessionSettings correctly
I am totally new to Java but tried to make a really simple app which displays a website inside a GeckoView.
I could archive to load a website inside a GeckoView but once I try to change some Settings (UserAgentMode to DESKTOP) the app crashed once I…

user1658080
- 631
- 1
- 7
- 18
2
votes
1 answer
GeckoView send event or start function (Android)
I have built the GeckoView into my app. It works quite well so far. Now I want to send an event to the script in GeckoView when the backbutton ("onBackPressed" ) is pressed.
Is it possible to start a Javascript function of an open page within a…

arivdev
- 21
- 1
2
votes
1 answer
How to implement GeckoView?
I want to implement GeckoView into my app but I always get the following errors:
When I just implement it as described in this Link: https://wiki.mozilla.org/Mobile/GeckoView
The following error occurs when installing the app:
Installation failed…

Chris
- 147
- 1
- 11
1
vote
0 answers
geckoview Android display or download pdf file
Geckoview display or download pdf file
My apk car search pdf files on google, then you can click to download it with BroadcastReceiver, it work ed well with old version of geckoview.
The I decided to use a recent version of geckoview…

Christophe
- 11
- 1
1
vote
1 answer
Failed to resolve: org.mozilla.geckoview
Im trying to implement geckoview into android app.
My project is just empty activiy from android studio menu
build.gradle(:app)
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdk 32
…

Don Yanda
- 65
- 7
1
vote
1 answer
Block images from particular domain in GeckoView android
How can i block image loading from specific domain in GeckoView?
I tried searching equitant method like setLoadsImagesAutomatically from webview in GeckoView but no luck.
I found few links like this and this.
Can we block image loading by injecting…

Divyang Panchal
- 1,889
- 1
- 19
- 27
1
vote
1 answer
Output GeckoView web extension console.log to Android logcat
Is it possible to have console.log in background and content scripts output into Android logcat?
GeckoView runtime settings contains javaScriptEnabled, which works for non extension console outputs. Their Messaging Example also showcases…

Allan W
- 2,791
- 4
- 23
- 41
1
vote
1 answer
Messages between HtmlPage and AndroidApp using GeckoView
Unfortunetly, I using a platform where WebView is not available, so, I can't make use of the simplicity of JavascriptInterface to interact from my webpage with my app.
Is there a complete (straight forward) example out there explaining how to…

Flavio Lenz Cesar
- 11
- 1
1
vote
0 answers
Sending Proxy Authentication requests with Geckovew on Android
I am building a proof of concept browser using Geckoview on Android. As part of the requirement I need to be able to configure it to authenticate with a proxy server. I have tried various config options but cannot seem to get a dialog to popup with…

schezel2000
- 11
- 3
1
vote
0 answers
How to inject JS into GeckoView in Android?
Before migration to version 77.0.20200603183750 of GeckoView so we were using version 71.0.20191208234333 so we had to change imp. of WebExtension instance, it was taking just one parameter which is the location of JS…

Zafer Celaloglu
- 1,438
- 1
- 17
- 28
1
vote
1 answer
Native messaging with web content using GeckoView Android
I am trying to create a hybrid app using only GeckoView as webview. I am following this link to establish communication between native and HTML/Javascript. I am using Connection-based messaging. So far I am able to receive a message from native and…

code-reader
- 33
- 1
- 7
1
vote
1 answer
Getting a GeckoSession's tab id?
I am trying to create 2 GeckoSessions to represent two tabs.
I have a web extension with a background script. I want to send a separate message to each tab's content script, but for that I need to know the tab id (I don't want to send the messages…

Z T
- 543
- 1
- 7
- 26
1
vote
1 answer
How to get current page URL with gecko?
I am trying to make my android web browser open only specific urls. Because of that, I want to check if loaded url meets the requirements, and according to that to do something. I saw many answers about WebView, but since I have to use open source…

Andrija Randjelovic
- 35
- 10
1
vote
1 answer
GeckoView Android Pixel 2 Errors
I integrated GeckoView version 70.0.20190712095934 nightly into a sample app. It works totally fine (-> website shows up) on my old Nexus 5 with Android 6. But if I run the same app on my Pixel 2, the page doesn't load at all. I already tried using…

Francis
- 343
- 2
- 5
- 16