Log in or register to post comments

OnTrackableStateChanged after Suspend

July 9, 2018 - 9:38am #1

Vuforia SDK Version: v7.2.20 -

Description with steps to reproduce: Unity: 2018.2.0f1
Vuforia: 7.2.20
XCode: 9.4.1
iPhone: 6s
iOS: 11.4

Settings:

Behavior in Background is set to `Suspend`

Reproduce:

Detect a target.
Close app via Home Button
Double Tap Home Button and bring app into foreground.

Problem:

This triggers `OnTrackableStateChanged` with last detected target (before leaving the app) as if it is still visible (but it is not).

```
public void OnTrackableStateChanged(
TrackableBehaviour.Status previousStatus,
TrackableBehaviour.Status newStatus)
{
String trackableName = mTrackableBehaviour.TrackableName;

if (newStatus == TrackableBehaviour.Status.TRACKED)
{
OnTrackingFound(trackableName);
}
else if (newStatus == TrackableBehaviour.Status.NO_POSE && previousStatus == TrackableBehaviour.Status.NO_POSE)
{
// Initial start of application
// Do nothing
}
else
{
OnTrackingLost(trackableName);
}
}
```
-

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

Mobile OS and Version: iOS 11.4 15F79 -

Mobile Device Manufacturer and Model name: iPhone 6s MKQP2ZD/A -

Do the Vuforia Sample Applications show the same behavior?:

OnTrackableStateChanged after Suspend

July 9, 2018 - 10:49am #2

Update:

 

Please close this ticket. The problem was a Coroutine in the application logic.

Log in or register to post comments