You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently wondering how I could best make use of this wonderful library on Android, or rather, calling the library's functions from Java and Kotlin.
I already successfully cross-compiled the mdtest binary for aarch64 and executed it as part of an Android application, piping a pair-phone +xxxx command into its input and reading out the resulting linking code. By this I could confirm that whatsmeow also works natively under Android, as I could see messages sent to the linked WhatsApp account in the Android application's log files.
Reading articles like Calling Go Functions from Other Languages and others gives me the impression that maybe writing a wrapper application in Go would be the way to go which would expose a C-native interface which I could then call from Android/Kotlin.
What do more experienced Go developers think about this? Should I drop this idea and directly use WuzAPI?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there!
I'm currently wondering how I could best make use of this wonderful library on Android, or rather, calling the library's functions from Java and Kotlin.
I already successfully cross-compiled the
mdtest
binary foraarch64
and executed it as part of an Android application, piping apair-phone +xxxx
command into its input and reading out the resulting linking code. By this I could confirm that whatsmeow also works natively under Android, as I could see messages sent to the linked WhatsApp account in the Android application's log files.Reading articles like Calling Go Functions from Other Languages and others gives me the impression that maybe writing a wrapper application in Go would be the way to go which would expose a C-native interface which I could then call from Android/Kotlin.
What do more experienced Go developers think about this? Should I drop this idea and directly use WuzAPI?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions