Hi, I would like to send to an http server when the user has pressed the Back Button. If i send the request in the Application_Background, the app seems to be 'backgrounded' before the request has been sent. (I dont see the request on the http server ...) Is it a way to workaround ? I had...
www.b4x.com
B4X:
Sub Application_Background
Dim nativeMe As NativeObject = Me
nativeMe.RunMethod("moreBackgroundTime", Null)
End Sub
#If OBJC
- (void)moreBackgroundTime {
UIApplication* app = [UIApplication sharedApplication];
UIBackgroundTaskIdentifier bgTask = [app beginBackgroundTaskWithExpirationHandler:^{
[app endBackgroundTask: bgTask];
}];
}
#end if
does it need a UIBackgroundModes processing plist entry?