Start a new topic

Plugin#cameraFrameAvailable is not called when using InstantTracker with SMART enabled


I am using a simple native plugin to be able to feed the camera frames back to my android activity (in order to be able to stream the video feed.

This all worked fine up until the point that I tried using InstantTracker. I'm testing on a Samsung S8 with ARCore installed so platform assisted tracking was enabled.

When I disabled SMART on my InstantTrackerConfiguration, it worked again as before.

Could you propose an alternative method to get the frames when SMART is enabled? Or can this be fixed in the next release (if so, will this take long?)

I've attached the plugin and this is my wikitude initialization code:

* Initialize Wikitude AR Tracking
private void initWikitude() {
wikitudeSDK = new WikitudeSDK(this);
NativeStartupConfiguration startupConfiguration = new NativeStartupConfiguration();

wikitudeSDK.onCreate(getApplicationContext(), this, startupConfiguration);

// if the device doesn't offer platform assisted tracking capabilities (ARCore) -> disable SMART
InstantTrackerConfiguration configuration = new InstantTrackerConfiguration();
// configuration.setSMARTEnabled(wikitudeSDK.getTrackerManager().isPlatformAssistedTrackingSupported());
instantTracker = wikitudeSDK.getTrackerManager().createInstantTracker(this, configuration);

// register Plugin in the wikitude SDK and in the jniRegistration.cpp
wikitudeSDK.getPluginManager().registerNativePlugins("wikitudePlugins", "wikitude_frame_plugin", new PluginManager.PluginErrorCallback() {
public void onRegisterError(int errorCode, String errorMessage) {
Log.v(LOG_TAG, "Plugin failed to load. Reason: " + errorMessage);

// sets this activity in the plugin
(708 Bytes)


this issue will be fixed in the next version of the SDK. Unfortunately i can not give you a date on when it will be released yet.

Best Regards,


Ok, thanks for your feedback.
Could you provide at least a rough estimate for the new version?

We would be interested to get a one-time fee license for our app, so it would be great to have a version with this issue fixed.

Hi Yannick,

you can download the beta of SDK 8.0 from in the "Beta" tab.

Best Regards,


Hi, a while back I tried the beta version, but I didn't get it to work.

There were quite some incompatibilities with my current code.

So I've gone with another approach which eliminates the need for a native plugin.

I can enable SMART now, but I'm getting an error:

W/AnchorServiceClientFactory: The API key for use with the Google AR service could not be obtained!
E/bbd: *~*~*~ Channel {0} was not shutdown properly!!! ~*~*~*
                                                                                  Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
                                                                              java.lang.RuntimeException: ManagedChannel allocation site
                                                                                  at bbe.<init>(PG:4)
                                                                                  at bbd.<init>(PG:4)
                                                                                  at bbd.<init>(PG:1)
                                                                                  at aui.a(PG:63)
                                                                                  at Method)
                                                                                  at<init>(Unknown Source:22)
                                                                                  at Source:10)
                                                                                  at com.wikitude.tracker.internal.TrackerManagerInternal.isPlatformAssistedTrackingSupported(Unknown Source:4)
                                                                                  at android.os.Handler.handleCallback(
                                                                                  at android.os.Handler.dispatchMessage(
                                                                                  at android.os.Looper.loop(
                                                                                  at java.lang.reflect.Method.invoke(Native Method)

  How can we fix this? I didn't find much information about Google AR API keys

Hi Yannick,

we are aware of an issue when using SDK 7.2.1 when the ARCore app with version 1.0 or higher is installed on the device. This will be fixed with the SDK 8.0 release. 

There are some changes in how to make ARCore work with the SDK that are described in the migration guide.

All of this is already included in the SDK 8.0 Beta.

Best Regards,


Login or Signup to post a comment