Making a Unity Plugin utilizing the Nearby Connections API #3933
Unanswered
BernatRosello
asked this question in
Q&A
Replies: 1 comment
-
|
The Android implementation is not open source, but you can access the api through Google play services: https://developers.google.com/nearby/connections/overview |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I've been trying to build a plugin for Unity that implements Nearby Connections as a transport layer for use with netcode libraries, enabling local multiplayer support with the characteristics of Nearby Connections. Thing is I decided to use this public fork of the internal Google Library because I thought of adding support for cross platform connections down the line.
I have written my wrapper around the library and built a custom target for android on bazel using the Android NDK, though I've come at the realization that there appears to be no platform implementation for Android on this repo, so whenever the dynamic library is called from my Unity plugin the Android nativeloader finds that symbols called by the C implementation of connections:core (//connections/c:nc) are undefined (those of 'nearby::api::ImplementationPlatform').
I'm really stumped and starting to believe I won't be able to have a somewhat cohesive project for the different platform targets (nevermind the issues I've found along the way of not even being able to build the windows targets defined in the repository).
I'm wondering if there is just something I don't know leading me to doing things wrong or if building a dynamic library from this repo is impossible without specifying my own platform implementations?
Beta Was this translation helpful? Give feedback.
All reactions