Currently I am working on a some kind of analytics sdk and we measure session lengths. But in WP when i send an http request inside PhoneApplicationService.Closing event handler, it is never completed even i await the asynchronuous operation.
I checked the Google Analytics implementation at https://www.codeplex.com/ but bumped into the comment // there is no way to get a deferral in WP so this will not actually happen until after we return to the app
So what to do to make that request complete? Or what is the perfect way to measure session lengths accurately and in realtime.
Thanks