Comments (3)
@gedw99 Hi! I will outline the options that we have for cross-platform development of applications (not games).
The first and the best option is https://github.com/therecipe/qt.
Qt itself is a powerful framework that allows to do many things avoiding writing native platform code, but still keep the ability to use platform-native stuff like sensors, payment and advertising APIs and so on. The guy did amazing job creating the bindings and it runs seamlessly across many platforms in a single build. The Go code is the only code you'll need to write. Since you have a web app, you can boot into Qt's WebView to display the UI.
As for gomobile, they are good option to use when you already have lots of Java/Obj-C code and want to integrate some of Go libs into the project. The tool is mostly for experienced mobile developers who just want to try Go sometimes. They provide a framework that hides platform details, but they also may be to restrictive and limited due to this and can't be used for crazy experimenting stuff.
Now, about my projects. They are not achieving the same goal as gomobile, but rather fill the niche that gomobile doesn't suit well. First of all, android-go provides stateless and absolutely explicit 1:1 bindings to Android NDK. It's a low-level approach, but it's more flexible as you are free to do crazy stuff, for example initialize your own EGL context or don't initialize it at all. It is not good for SDK and Java interaction because I have no such plans and it's the topic of gomobile. It's good when you want to add some Go code and want know how it works, with no extra dependencies and under-the-hood magic. The same goes for ios-go, I did two projects to run Vulkan / GLES surfaces with minimum mental overhead, they are not conventional apps.
I hope this answers your questions :)
It seems that my packages are not an option for your case.
from android-go.
@xlab
thanks for taking the time to look at this.
I played around with https://github.com/therecipe/qt.
I agree that the developer behind it is awesome, and really helpful.
I must admit i did not know that it supports a webview.
That would mean i have killed many problems in one hit:
- On mobile, no need for JAVA, Objective C code to write the RPC plumbing code.
- On Desktop, no need for Electron / Gallium.
I really need to check how the QT WebView connects to my golang code.
At the moment i use GRPC and GRPC-gateway to expose all the code, which is probably really different to how QT WebView wants to work.
from android-go.
will close..
from android-go.
Related Issues (20)
- Update examples to match new build system HOT 4
- error callfn HOT 4
- 404 to example in readme
- Error stdlib.h trying to build example directory HOT 2
- Documentation ?
- example-egl build fails
- Notifications using other api HOT 1
- Exposing golang direct to Flutter HOT 3
- Example link with the info how to set up environment for Android Demo App is broken
- android project update is not working on debian
- gles2 runtime error: cgo argument has Go pointer to Go pointer HOT 1
- EGL bug. Opengl ES version Mismatch HOT 5
- internal/callfn error when running main.go file HOT 6
- Error "Sorry com.go_android.minimal stopped"
- llvm/prebuilt/darwin-x86_64/bin/clang: No such file or directory HOT 6
- Binding to Fyne UI framework HOT 2
- Take photo
- Pointer type uint32 is too small for 64bit compilation (*_Ctype_ulong) HOT 1
- App: Add asset streaming HOT 3
- App: Add getting asset directory contents HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-go.