referring to this code, that allows some more time when the app goes to background
www.b4x.com
does it need a UIBackgroundModes processing plist entry?
I've found it used in a project that has these plist, but I'm not sure if it's a requirement or not
[SOLVED] How to job.postString before app goes to background
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...

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?
B4X:
#PlistExtra: </array>
#PlistExtra: <key>UIBackgroundModes</key>
#PlistExtra: <array>
#PlistExtra: <string>processing</string>
#PlistExtra: </array>
I've found it used in a project that has these plist, but I'm not sure if it's a requirement or not