clariusdev / mobileapi

Android API Allowing IPC with the Clarius App
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

Can't bind to Clarius Service #1

Closed OgulcanCelik closed 3 years ago

OgulcanCelik commented 3 years ago

Hello Clarius Dev Team!

I'm trying to use the example in this repo, the official Claris App is running on the background, its connected to the device. However, I cannot connect to it, the bindService doesn't work, it gives the error

me.clarius.example V/MobileApiHelper: Connecting to Clarius service, package: me.clarius.clarius.master.developer.debug class: me.clarius.mobileapi.MobileApiService
me.clarius.example E/MobileApiHelper: Could not find the Clarius Mobile API service

So my guess is, the clariusPackageNameDebug and clariusServiceName are wrong, because it fails to connect here: https://github.com/clariusdev/mobileapi/blob/ae6a51778a8eefb6d240407ba4d42fa2a16c92ed/quickstart/src/main/java/me/clarius/mobileapi/quickstart/helper/MobileApiHelper.java#L106

So I checked the gradle.properties. The service name looks like me.clarius.mobileapi.MobileApiService and package name looks like me.clarius.clarius.master.developer.debug, they look.. odd? I'm using the Clarius App from the Play Store, it's package name is me.clarius.clarius, it also didn't work. Are these values valid while using the Clarius App from production or are they set for Clarius App in development?

Or, if the problem isn't here, can you guide me about what I am doing wrong? Thank you!

clariusk commented 3 years ago

Hi Ogulcan, the API has just been released as a preview for now, so it won't work with the Clarius App until we have released a new version - hopefully in the next few weeks.

OgulcanCelik commented 3 years ago

Oh, that makes sense, thanks.

In the meantime, we want to feel how the integration between Clarius and Nerveblox works clinically, so do you have any example repositories for the QT API? The listener repository includes only Python example as far as I understand.

clariusk commented 3 years ago

The Listen API also can developed using Qt, there are some examples - however we found this API works best on desktop (Linux, Windows, macOS), hence this new mobile API was developed for Android (perhaps something similar on iOS in the future)

OgulcanCelik commented 3 years ago

Okay, we are excited about the new API and the integration between Clarius and Nerveblox! The new API looks promising and I believe it's going to be easy to integrate since it's a native Android bound service. Thanks!