Log in or register to post comments

OnTrackingFound After Sleep Button

April 19, 2016 - 8:28pm #1

Vuforia SDK Version: 5.5.9 -

Description with steps to reproduce:

Just spent several hours dealing with this annoying bug.  Unity version 5.3.4 and Vuforia 5.5.9 .  

OnTrackingFound fires after sleep button is pressed while viewing a trackable item.  This should obviously never fire if device is asleep and screen not on.

Not a huge deal for simple projects since OnTrackingLost seems to get called but we are doing some complex hierarchical scene loading and need stuff like this to fire correctly.  We couldnt get scenes to unload correctly before going to sleep becuase of this tracking found bug.

Thankfully onapppause gets called before ontrackingfound.  Workaround is to set a bool in OnAppPause and check to see if app is in paused state before calling ontrackingfound.









Development OS (Mac OS X, Windows, Linux): OS X -

Mobile OS and Version: iOS 9.2.1 -

Mobile Device Manufacturer and Model name: Iphone 6s -

Do the Vuforia Sample Applications show the same behavior?: Yes, remote debug on iOS and set a break point in ontrackingfound. Hold device up to image target, let it track, and then press sleep button. You'll see it gets fired after button is pressed.

OnTrackingFound After Sleep Button

April 26, 2016 - 9:04am #3

After pressing the sleep button on iPhone 6s Plus while image target is being tracked results in this in OnTrackableStateChanged:

newStatus - TRACKED

previousStatus - NOT_FOUND


OnTrackingFound After Sleep Button

April 25, 2016 - 7:31pm #2

What are the values of the previousStatus and newStatus in the OnTrackableStateChanged() after sleep button is pressed and before OnTrackingFound() is called?

TrackableBehaviour.Status previousStatus
TrackableBehaviour.Status newStatus


Log in or register to post comments