ActiveLook / ios-sdk

iOS SDK for ActiveLook eyewear
https://www.activelook.net/
Apache License 2.0
10 stars 8 forks source link

connectionCallback given to DiscoveredGlasses.connect() is not called #13

Closed pierrerougeotf closed 4 months ago

pierrerougeotf commented 2 years ago

The console displays Central Manager did connect to glasses… but the callback is not triggered

goutallier commented 2 years ago

Tried using both discoveredGlasses.connect(...) and sdk.connect(using...), and the connection callback is always called. I have to try after a FW update now...

from @pierrerougeotf :

Pas sûr que je puisse forcément apporter quelque chose ou que ça se résume à ce que j’ai peut-être vu dans le code, mais ayant un peu regardé d’où pourrait venir le problème coté SDK, je suis dispo pour échanger 10/15 mn si vous le souhaitez. (En gros, si j’ai bien lu, le connectionCallback? n’est pas appelé dans tous les paths des callbacks du glassesInitializer.initialize ). Si vous êtes déjà bien au delà de ce constat, je n’apporterai probablement rien. :slightly_smiling_face: → still digging...

sw5813 commented 1 year ago

I've run into the same issue as @pierrerougeotf- the callback is not getting triggered using the latest SDK (4.3.0)

SylvainRomillon commented 1 year ago

Hi,

Thank you for your interest. In our demo app we don't see this issue : https://github.com/ActiveLook/demo-app/blob/main/ios/example/GlassesTableViewController.swift#L90

If you have sample code, could you share it with us so we could investigate further

sw5813 commented 1 year ago

Hi @SylvainRomillon, I tried looking at your demo app, but it looks like with the latest update an SDK token is now required. Where can I get this token from to run the demo app?

SylvainRomillon commented 1 year ago

The SDK token is not mandatory to develop an app. It allow developers to update glasses firmware with their own app. You can leave it blank.

sw5813 commented 1 year ago

Confirming that after following the implementation example in the demo app, I'm no longer running into this issue