Vibrate iOS when BLE device is detected while the app is in the background

PaulDistonPaulDiston USUniversity ✭✭✭✭

Is it possible to vibrate an iOS device when a BLE device is detected when the app is in the background?

I have set the UIBackgroundModes to bluetooth-central and therefore my code that reacts to the presence of a BLE device executes however the call to CrossVibrate.Current.Vibration(vibrationTime) does not then vibrate the device.

Any ideas what I may be missing?

Tagged:

Best Answers

  • PaulDistonPaulDiston US ✭✭✭✭
    edited November 2017 Accepted Answer

    @rene_ruppert said:
    I don't think this is possible directly. But your options might be:

    • Try enabling "background audio" as a background mode in info.plist
    • Send a local notification to the user which will then vibrate

    Try enabling "background audio" as a background mode in info.plist seems to have done the trick.

Answers

  • PaulDistonPaulDiston USUniversity ✭✭✭✭
    edited November 2017 Accepted Answer

    @rene_ruppert said:
    I don't think this is possible directly. But your options might be:

    • Try enabling "background audio" as a background mode in info.plist
    • Send a local notification to the user which will then vibrate

    Try enabling "background audio" as a background mode in info.plist seems to have done the trick.

Sign In or Register to comment.