Questions tagged [gomobile]

Gomobile is an experimental toolset for using Go on iOS and Android. Gomobile can be used to create entire apps, or as a library to be used by native code.

GoMobile is an experimental toolset, that enables Go/Golang code to run on Android and iOS devices.

94 questions
0
votes
1 answer

File is not recognized after generating the ".APK" file from Go to Android using gomobile tool

I am working on a project in which i need to generate an APK file form a Golang code base using gomobile tool. the plan is to be able to run it on android tablet. When I install the apk file on the tablet, through the Android Studio I get the…
Ashkanxy
  • 2,380
  • 2
  • 6
  • 17
0
votes
0 answers

how to implement client listener in Android using golang object?

Problem description: I am working on a small project in which i need to port the existing mqtt client library from Golang to Android. I found using gomobile repository as an option to prevent duplicating the same functionality in different…
Axy
  • 23
  • 4
0
votes
1 answer

How to make HTTP request in gomobile

I am trying out gomobile and want to send some data to a webserver before the app starts. I am using the basic example app template included in gomobile. I added the code at the start of main: func main() { client := &http.Client{} req, _ :=…
Bram Vanbilsen
  • 5,763
  • 12
  • 51
  • 84
0
votes
1 answer

How to run binary linux file in android?

I have built an golang linux program without GUI, only input and output. I want to build an android program to run it. Do not use termux, because I want to embed it in the android program. (Users do not need to download the binary file.) Or building…
lz1998
  • 1
  • 1
0
votes
0 answers

swift vs objc JSON encoding

I am using a GOlang library with mobile bindings. One of the models from GO library takes a data as a parameter. If should be utf8 encoded JSON string. When I am encoding that JSON in objc everything works fine but I cannot instantiate that model…
barola_mes
  • 1,532
  • 2
  • 13
  • 16
0
votes
1 answer

Reverse Java bindings with gomobile and fyne.io

I have a fairly simple application that in theory should use Android Java API to get the location ( inspired by this answer ): package main import ( "Java/android/content/Context" "Java/android/location/LocationManager" …
jdevelop
  • 12,176
  • 10
  • 56
  • 112
0
votes
1 answer

generate .xcframework file with gomobile

Is it possible to generate .xcframework file with gomobile? I built the .framework file with gomobile with the following command: gomobile bind -target ios -o ../frameworks/MyFramework.framework After that I tried to build .xcframework file with…
Nikko Vacci
  • 71
  • 1
  • 3
0
votes
0 answers

gomobile bind -target=ios golang.org/x/mobile/example/bind/... libc++ error

warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] In file included from calib3d.cpp:1: In file included from…
Yue.Piao
  • 11
  • 5
0
votes
1 answer

Network extension log

I have sample Go example like this: import "github.com/jedisct1/dlog" func Hi() { dlog.Init("HI", dlog.SeverityNotice, "DAEMON") dlog.Noticef("Hi ") } I build this project to with Go mobile, and call it from an iOS app, and everything is…
0
votes
1 answer

installing gomobile on mac OS Sierra 10.12

I am trying to install gomobile on mac OS Sierra 10.12. I have go version 1.7.1 installed. After doing the steps given below : go get golang.org/x/mobile/cmd/gomobile gomobile init I get the following errors gomobile: go install…
M.Nair
  • 243
  • 2
  • 9
0
votes
1 answer

Why does golang gomobile basic example sets 3-float size for a vec4 attribute?

Golang gomobile basic example [1] uses VertexAttribPointer to set 3 x FLOATS per vertex. However the vertex shader attribute type is vec4. Shouldn't it be vec3? Why? Within render loop: glctx.VertexAttribPointer(position, coordsPerVertex, gl.FLOAT,…
Everton
  • 12,589
  • 9
  • 47
  • 59
0
votes
1 answer

Can gomobile build app be published on appstore

gomobile build is a simple go mobile tool to build app, it is easy to build ios / android app cross platform, but can gomobile build an app (ios/android) to be published on the App Store or Google Play? Here is a document to show how to publish go…
hui zhang
  • 123
  • 8
0
votes
1 answer

Gomobile bind delegate/callback behaviour

Anyone know if it is possible, using gomobile bind, to implement some sort of delegate behaviour when exporting to iOS? i.e. i have a go library that handles network requests for an iOS app, and i need it to be done asynchronously so that it doesn't…
Daniel Ruhman
  • 123
  • 2
  • 13
0
votes
1 answer

gomobile callback (forward realtime downloaded content to android)?

I am studying on how to develop android sdk with gomobile, here is my use case: The sdk will handle the file download and it will send its realtime received content to andoird, how could this be done? I tried something like this, return a…
seaguest
  • 2,510
  • 5
  • 27
  • 45
0
votes
1 answer

GOMobile "event/touch" Packages

How can I use gomobile "event/touch" packages? I want to get respective touch co-ordinate, and this return touch co-ordinate will used in ios/android. Please suggest how to do this. If any sample application in available please suggest. Thanks.