Why are my iOS app's session lengths 30 min + in Google Analytics?

后端 未结 4 1686
感情败类
感情败类 2020-12-29 15:02

More importantly, how do I fix it?

It\'s as if backgrounding the app doesn\'t end the session.

4条回答
  •  -上瘾入骨i
    2020-12-29 15:45

    to end the session when the app goes to background, use

    applicationWillResignActive
    

    and maybe put about:blank or something in your webview. (assumption ;))

    save the location and reload it in

    applicationDidBecomeActive
    

    or read more here

提交回复
热议问题