at-internet / atinternet-apple-sdk

AT Internet mobile analytics solution for Apple devices
http://www.atinternet.com
MIT License
25 stars 47 forks source link

Access didBecomeActive #119

Closed choli closed 3 years ago

choli commented 3 years ago

We have the issue that we would like to send an event when coming back to the app. Unfortunately this is not possible being fired after the ApplicationDidBecomeActiveNotification that you use to update the session. Is it possible to send a tag after your LifeCycle handling? Thanks :)

nsagnett commented 3 years ago

Hello,

I just created a branch called fix/lifecycle to your issue

When you catch applicationDidEnterForeground notification, you can call this new Tracker function:

tracker.applicationDidEnterForeground()

to enforce lifecycle computing at the good moment :)

choli commented 3 years ago

Very nice, works the way we would expect it to work.

nsagnett commented 3 years ago

Good news !

I will integrate in the future version, probably released next week

nsagnett commented 3 years ago

Hi,

The fix has been integrated and available in 2.23.4 version

Regards,