M martin24 Member Licensed User Longtime User Jul 27, 2017 #1 I successfully implemented background fetches based on https://www.b4x.com/android/forum/threads/background-fetch-downloads.56022/ But how can I stop them? A Google search shows that using the value UIApplicationBackgroundFetchIntervalNever will stop background fetches, something like: [application setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalNever]; How can I do this in B4i? Thanks, Martin
I successfully implemented background fetches based on https://www.b4x.com/android/forum/threads/background-fetch-downloads.56022/ But how can I stop them? A Google search shows that using the value UIApplicationBackgroundFetchIntervalNever will stop background fetches, something like: [application setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalNever]; How can I do this in B4i? Thanks, Martin
Erel B4X founder Staff member Licensed User Longtime User Jul 28, 2017 #2 You can get this value with: Code: Copy Dim no As NativeObject = Me Dim d As Double = no.RunMethod("getNever", Null).AsNumber Log(d) End Sub #if OBJC -(double)getNever { return UIApplicationBackgroundFetchIntervalNever; } #End If Upvote 0
You can get this value with: Code: Copy Dim no As NativeObject = Me Dim d As Double = no.RunMethod("getNever", Null).AsNumber Log(d) End Sub #if OBJC -(double)getNever { return UIApplicationBackgroundFetchIntervalNever; } #End If