Start a new topic

Upgrade to SDK 9.10 throws errors

Hi,


after upgrading Wikitude JS SDK from 9.7 to 9.10 it stopped working.

On 9.7 everything works perfectly fine, but on newer versions we are getting these errors:

"Uncaught ReferenceError: AR is not defined", source: data:text/html, (1)"


We Followed migration notes and did everything noted there. I do not see any changes required in JS files?


We are using NuGet packages inside VisualStudio and Wikitude JS SDK is used with Xamarin app.




Hi,


The specific error you mention usually happens when something in the JS file is not implement in a correct way. May I ask you the steps you followed when upgrading the version?


Best regards,

Aitor.

Hi,


Thanks for your reply.

I understand that it is something in JS file but that is impossible to track, as everything is working on 9.7 SDK.

The steps we did are quite simple, update Nuget package in Visual Studio Nuget package manager, so nothing special there...

Are you testing with Android or iOS? In any case, did you check our migration notes: https://www.wikitude.com/external/doc/documentation/latest/xamarin/migration.html#migrate-to-910? It is possible that you need to apply some changes into the project before using 9.10.


Best regards,

Aitor.

Tried both Android and iOS app, it's the same, and there is definetly some part of JavaScript code that is not working on new SDK version...

We have done migration as stated in notes, but no change.

I see. Are you using one of our samples as a starting point to include AR in your application? If so, which one? Maybe by reviewing this specific sample, we can find where the issue is coming from. Otherwise, I would need to have access to the sample (html, js, css) you are using in order to reproduce your issue and find a solution for it.


Best regards,

Aitor.

We have an update on this.
App with the same JS files and workflow is working on iOS with SDK version 9.10 and 9.12, but on Android it is not working.


We have these errors on console:

[WKTD] >ERROR: [Runtime][00:08:53.953.363] > Resolving timed out after 2000 milliseconds (code 28)

[WKTD] >ERROR: [Runtime][00:08:53.953.551] > Error executing network connection (code 1002) (underlying error: Resolving timed out after 2000 milliseconds (code 28))


....


[WKTD] >ERROR: [Runtime][00:00:02.102.141] > SSL connection timeout (code 28)

[WKTD] >ERROR: [Runtime][00:00:02.102.491] > Error executing network connection (code 1002) (underlying error: SSL connection timeout (code 28))

[WKTD] >ERROR: [Runtime][00:00:05.355.614] > Resolving timed out after 2000 milliseconds (code 28)

[WKTD] >ERROR: [Runtime][00:00:05.355.765] > Error executing network connection (code 1002) (underlying error: Resolving timed out after 2000 milliseconds (code 28))


....


Sometimes we also get this:

[ConnectivityManager] StackLog: [android.net.ConnectivityManager.unregisterNetworkCallback(ConnectivityManager.java:4797)] [org.chromium.net.a.f(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:438)] [Rb.c(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:870)] [org.chromium.android_webview.AwContentsLifecycleNotifier.onLastWebViewDestroyed(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:65)] [J.N.MQGusfGb(Native Method)] [sa.run(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:53)] [Bl.handleMessage(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:172)] [Dl.a(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:158)] [org.chromium.android_webview.AwContents.f(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:148)] [fa.run(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:1695)]

[ConnectivityManager] StackLog: [android.net.ConnectivityManager.unregisterNetworkCallback(ConnectivityManager.java:4797)] [org.chromium.net.a.f(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:438)] [Rb.c(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:870)] [org.chromium.android_webview.AwContentsLifecycleNotifier.onLastWebViewDestroyed(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:65)] [J.N.MQGusfGb(Native Method)] [sa.run(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:53)] [Bl.handleMessage(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:172)] [Dl.a(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:158)] [org.chromium.android_webview.AwContents.f(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:148)] [fa.run(chromium-TrichromeWebViewGoogle6432.aab-stable-511209734:1695)]

..........

So something in newer version of SDK is preventing Android app from connecting probably to wikitude architect.js or some other initialization and it is causing error: "Uncaught ReferenceError: AR is not defined"...


One very important thing to note: our app downloads package files to phone internal storage and starts AR wikitude experience from there. When we put those files in android Assets folder and package it directly with app (like you do in your samples) it works. Unfortunatelly that breaks core functionality of our app and we cannot proceede with that.

But as we said, our app worked perfectly fine prior to newer version of SDK, and on iOS there is no problem with this.

Do you have any knowledge on this matter, or similar issues reported?

Login or Signup to post a comment