hi all
i ' m using the following code :
but the sub fetch_download is never reached ... what am i missing?
i ' m using the following code :
#Region Project Attributes
#ApplicationLabel: Nosayba
#Version: 1.0.0
'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
#iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
#iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
#PlistExtra: <key>UIBackgroundModes</key><array><string>fetch</string></array>
#End Region
Private Sub Application_Start (Nav As NavigationController)
Page1.Initialize("Page1")
Page1.RootPanel.LoadLayout("Layout1")
Page2.Initialize("Page2")
Page2.RootPanel.LoadLayout("Layout2")
Page3.Initialize("Page3")
Page3.RootPanel.LoadLayout("Layout3")
PVC.Initialize("pvc", Array(Page1, Page2, Page3))
App.KeyController = PVC
App.RegisterUserNotifications(True, True, True) 'request permission for notifications
App.ApplicationIconBadgeNumber = 0
Dim no As NativeObject = App
no.RunMethod("setMinimumBackgroundFetchInterval:", Array(60))
End Sub
Private Sub Application_FetchDownload
'will run every 10 min to detect requests.php , and then jobdone and then notify and then complete
ReadOLDListOfMapsREQ
end sub
but the sub fetch_download is never reached ... what am i missing?