It seems the transition is sometimes faster than the plugin can take the screenshot.
The requests were asyncronous: plugin action wasn't a blocking call, so the state change happened immediately.
I changed the callbacks into promises using $q and in the every transition() call I chain the state change, so that only happens after the screenshot.
It seems the transition is sometimes faster than the plugin can take the screenshot. The requests were asyncronous: plugin action wasn't a blocking call, so the state change happened immediately.
I changed the callbacks into promises using $q and in the every transition() call I chain the state change, so that only happens after the screenshot.
125 #121 #108 #78 #77