The problem occurs when I split the apk and generate an obb file.
Starting the App and navigating to the Scene where I use Wikitude everything seams normal. The Camera feed is active and no errors are thrown. The Problem however is Wikitude won't recognize my tracking Images.
Can the wtc file be my Problem. Wikitude needs it in the Streaming Assets and those are put into the obb.
I am great full for all help and tips.
So everything is running normally when you build an .apk file? Also please provide further details on which SDK version you're using and if this is happening with the sample app as well?
Thx and greetings
we are using SDK 8.0.0 and experience the same problem in your sample app.
Building just the apk results in normal behavior but splitting it causes the undesired problem.
Note: we are using ARM64 and exchanged the files as stated in the docu.
I've just tested the sample application with sdk 8.2.0 and could get following error:
I've also tested the sample application as is. No settings changed just splitting the Application Binary and the error still comes up (Unity 2018.2.18f1)
It seems that the wtc file could not be found anymore after the apk split.
We'd like to reproduce this behavior internally. Are you using Split Application Binary in Unity, or some other process?
Yes we are using Split Application Binar in Unity.
Thanks for your help.
Looking forward to your response,
Which version of Unity are you using?
as stated above we are using Unity 2018.2.18f1
Unfortunately, the solution to this is a bit more complex. The way to work around this problem at the moment is to extract the wtc files from the obb jar and place them in a temporary folder. Then, on the ImageTracker.TargetCollectionResource, you can enable the UseCustomURL property and set the TargetPath to the new path, adding the "file://" prefix.
I've attached a simple script that can be added to the same GameObject as the ImageTracker and does this automatically. This is just an example of how this can be done, but improvements can still be made.
Please let us know if this fixes the issue for you. In the future, we'd like to take care of this internally.