Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polar SDK 5.12.0 on iOS stuck in connecting... when doing connectToDevice #543

Closed
8 tasks
abbjetmus opened this issue Jan 26, 2025 · 5 comments
Closed
8 tasks
Labels
question Further information is requested

Comments

@abbjetmus
Copy link

abbjetmus commented Jan 26, 2025

Platform your question concerns:

  • Android
  • [ X] iOS
  • Other
  • Platform is not relevant for this question

Device:

  • Polar OH1
  • Polar Verity Sense
  • Polar H10
  • Polar H9
  • [ X] Polar 360
  • Device is not relevant for this question

Description:
Hi guys! Thank you for the help on this issue for doFirstTimeUse #542, upgrading to sdk version 5.12.0 fixed that issue. Unfortunetly I have another issue on iOS where I get stuck in connecting... state all the time when doing connectToDevice with Polar 360, works well with Polar Verity Sense. Everything works fine on Android with both Polar 360 and Verity Sense. I don't get any help from logs either. Do you have any suggestions how to fix that, or why that is?

  - PolarBleSdk (5.12.0):
    - Alamofire (~> 5.8.1)
    - RxSwift (~> 6.5.0)
    - SwiftProtobuf (~> 1.0)
    - Zip (~> 2.1.2)

Image

Also another question I have. I feel like connecting to the sensors in general is problematic when doing from bakground jobs, get timeout when connecting and so on. I saw an old issue about this
#82
should one use these function api.backgroundEntered(); and api.foregroundEntered(); for use case jumping back and forth between foreground and background?

@abbjetmus abbjetmus added the question Further information is requested label Jan 26, 2025
@abbjetmus
Copy link
Author

@rkangast @jimmyzumthurm sry for tagging you guys, working on an approaching deadline and release and wonder if you have any feedback on this question?

@jimmyzumthurm
Copy link
Member

@abbjetmus Hi, I suspect something is going wrong with the pairing between your Polar 360 and iOS device. Please see the notice about BLE connectivity in this page -> https://github.com/polarofficial/polar-ble-sdk/blob/master/documentation/products/Polar360.md#ble-functionnality

To eliminate that suspicion, could you try to perform factory defaults to your device ? (That could be done by pressing needle button under the wrist band while being connected to charger or use the SDK command for it), remove the pairing on your iOS device and then reconnect to your device and do the pairing again ?

@abbjetmus
Copy link
Author

abbjetmus commented Jan 27, 2025

@jimmyzumthurm I have already done the factory reset from Android device since it works well there. But doesn't help, the lights blinks according to doFirstTimeUse after reset from Android, removed pairing as well in bluetooth settings. My collegues have new sensorns never been connected and get the same issues. Can it be that this sensor Polar 360 has extended permission requirements on iOS? I can't even connect with Polar Flow App.

Image

Image

@abbjetmus
Copy link
Author

Yes you are right, issue was with pairing, and one of my iphone behaved strange. My collegue said it helped removing the sensor from Flow website. Final question regarding the background job thing.
I saw an old issue about this
#82
should one use these function api.backgroundEntered(); and api.foregroundEntered(); for use case jumping back and forth between foreground and background?

@rkangast
Copy link
Contributor

Hi there,

Those two APIs have been deprecated and removed from the SDK and thus cannot be used anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants