"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

Vuforia::init takes long time on restricted network

Hi, I have an application that init and deinit a lot when switching views and I encountered a problem if the network that the device connects has restricted (outgoing/incoming traffic blocked) or no internet access. 

From what I was able to establish Vuforia::init takes ~10 seconds to return 100 result with blocked ethernet connection while with unblocked or no connection it takes ~1 second.

I assume that the license key check or some other process is trying to communicate over the network and since in this case the device has network access there is a long response timeout or the request is resent over a period of time.

My code for the initialization:

[quote]Vuforia::setInitParameters(licenseKey)

int progressValue = 0;

do {

progressValue = Vuforia::init();

} while (progressValue >= 0 && progressValue < 100)[/quote]

Pleas advise on how to address the problem.

Best regards,

Albert

Hi,

I tested the behaviour on iOS with the phone in airplane mode and did not observe any loadtimes differences.

Could you please confirm the following:

1. Vuforia SDK version

2. Device and os:

I've also tested with Vuforia Native Sample  app with the same result.

 

Is there a way to handle/workaround this? We have clients with company network rules preventing outside network communication.

Hi,

Unfortuantely I don't believe there is a workaround available, besides not deinit Vuforia at all when switching scenes.

I raised a bug with the dev team.

Thank you.

Vuforia Engine Support

mcotora

Thu, 10/15/2020 - 09:12

In reply to by mcotora

Hi,

Actually :) I spoke to soon. We believe the issue might be related to the device profiles.

Hi,

That helps, thanks, although I have a couple follow up questions:

mcotora

Wed, 10/21/2020 - 08:20

In reply to by AlbertB

Hi,

In regard to your questions.

1. It will run in the same mode that it currently runs. The SDK is shipped with device profiles but sometimes we make changes to improve performance or address bugs and this is why it checks for updates.

2. I don't believe so.

Hi,

Thanks for a fast reply.

It looks like there is one more thing to confirm before I can go forward with the implementation:

When are the updates to device profiles applied? Is it on the next initialization?

Best regards,

Albert

Hi,

The web address is: sdksync.prod.vuforia.com

It checks for new profiles, downloads them and afterwards applies them. 

Hi,

That answers all the questions I had, and solves my the issue for me.

Thanks a lot mcotora,