This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

1 peripheral (nRF) 1 central (iOS or Android) but 2 concurrent apps

Following situation:

My device acts as central (connecting to ble sensors) and as peripheral (transmitting and receiving data from mobile). Several services (Heart Rate, Speed and Cadence...) are implemented to suit most apps on Android and iOS, but I need an additional application to handle notifications (transmitting from mobile to device). As far as I can see, I have no possibility to connect with 2 apps to one gatt server... any solutions to this problem?

I know it's not a nordic specific question...but maybe I'm missing the point. Is there a sweet solution for this setup? As I'm implementing device and app I'm not limited to one side, except that stock apps should still see a heart rate and speed/cadence service.

best regards, Michael

Parents
  • Hi Michael,

    I don't think you can share same server between apps.

    But may I ask why you need to have a separated app to handle notification, can't a background service of the same app do that ?

  • Yes, I could implement a service with an AIDL interface (on Android) for example, but I would loose the functionality to connect my device to apps which already support basic ble profiles. All apps would have to implement my custom AIDL or my custom service. And that's bad :(

Reply
  • Yes, I could implement a service with an AIDL interface (on Android) for example, but I would loose the functionality to connect my device to apps which already support basic ble profiles. All apps would have to implement my custom AIDL or my custom service. And that's bad :(

Children
No Data