runAppInBackground() returns earlier on iOS 8.4

In iOS 7 and even iOS 8.1, AppiumDriver’s runAppInBackground() worked as expected. But in iOS 8.4, this call returns earlier than the number of seconds passed to it as parameter. For example, if I do driver.runAppInBackground(8), the call returns just after 1646ms.

A search led me to this thread where adrianmatean@ has posted the workaround from Calabash, which is making the call in a loop as the subsequent call succeeds. Since AppiumDriver’s runAppInBackground() returns void, I can’t write the same loop in Java without resorting to the iOS specific javascript.

Anyone else have the same problem? Thoughts?