4

So what's been making me halt the development on my devrant client for a while:

I can't find a good way of having what android has with activities - move away from the activity, then come back and it is still in memory in the state you left it in. (scroll position, all loaded content, ..)

Is there any non angular and all that, way of having the same function in cordova?

I've thought of caching the content and then retrieving it with an expiry timestamp, similar to redis.

Another way would be fucking around with z-index, seems the closest to activity behaviour, but absolutely far from great and what angular seems to be doing.

Comments
  • 2
  • 1
    I use ractive in Cordova/phone gap *almost* how redux is used in react. A big state manager. When receiving pause event, I write the whole data object to local storage. On deviceready and resume I read it. Idk if this helps your situations specifically though
  • 1
    @jeeper that would reset the scroll position though and end up being essentially what I mentioned as the redis'esque flush method, right?

    Basically my issue is, that if a user would go back to the homepage that it wouldn't itself maintain state.

    I would have to constantly keep track of scroll position, which sounds really awkward.
Add Comment