"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Cloud Reco: ICloudRecoEventHandler.OnInitError() not called when no net

I implemented the ICloudRecoEventHandler interface and want my app to show an error message for the user in case initialisation failed due to no network access.

For that I expected that OnInitError(TargetFinder.InitState initError) of ICloudRecoEventHandler gets called and I could check the initError parameter for TargetFinder.InitState.INIT_ERROR_NO_NETWORK_CONNECTION.

However, To test my code I pulled the network cable from my PC to provoke the error. I run my project but OnInitError(TargetFinder.InitState initError) is not being called. Instead OnInitialized() is being called as if everything is alright.

I restarted unity to make sure this is not some strange caching issue but no matter what I do, the fact that there is no network available does not cause OnInitError(TargetFinder.InitState initError) to be called.

So my question is, is this a bug or do I misunderstand something here?

 

 

 

 

I'm working on an App for android/iOS in Unity. I'm using a webcam while working in the unity editor. When I run my project in the editor with the network cable pulled the described behaviour occures.

Hello,

Thanks for the clarification.

First, Vuforia does not require a network connection to initialize. The CloudReco feature requires an Internet connection and is the only Vuforia feature that does.

Thank you for your reply.


Yes, you are right, I wrote Vuforia but ment CloudReco specifically. I'm still very confused about Vuforia's terminology since so far I could not find an overview of all it's components and how they relate to each other.

Hello,

Understood, and thanks for the information/clarifications.

Perhaps you already know this, but our Books sample app under Best Practices samples has a similar check for network connectivity in case you want to compare/contrast your design with ours.