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

Ble auto connection problem in ios

Hello Nordic

I am developing our device. It uses SDK 14.2.0 and s332 SoftDevice.

This device communicate our app by using ble as peripherals.

I thought that our project was outgoing to success.

But I have the problem. That is auto connection in ios.

Our device must be bonded with app. That is because we have the Apple Notification Service.

Bonding is OK while app is running. even if app is not running, ios ble layer try to connect our device that is boned with app. 

I want to disconnect with app if app is not running.

I do not know how to solve the problem. 

If you know solution, please let me know the solution.

I'm sorry I do not have good english skills.  

Parents
  • Hi,

    iOS always reconnects to peripherals with ANCS automatically. I do not believe it is possible for an app to change this behavior.

    What is the reason you want the phone to only connect if the app is active?

    If the point is to let the peripheral know that the user is using the app, then another approach could be for the app to write to a specific characteristic in the peripheral whenever the app is started. You could also consider writing to a characteristic whenever the app is closed so that the peripheral can know that the user is no longer using the app on the iOS device.

    Best regards,

    Einar

Reply
  • Hi,

    iOS always reconnects to peripherals with ANCS automatically. I do not believe it is possible for an app to change this behavior.

    What is the reason you want the phone to only connect if the app is active?

    If the point is to let the peripheral know that the user is using the app, then another approach could be for the app to write to a specific characteristic in the peripheral whenever the app is started. You could also consider writing to a characteristic whenever the app is closed so that the peripheral can know that the user is no longer using the app on the iOS device.

    Best regards,

    Einar

Children
No Data
Related