Closed christocracy closed 7 years ago
[1.1.0]
minimumFetchInterval
.js
main
package.json
Note This version requires a breaking change to the AppDelegate definition (See the README
AppDelegate
README
app.ts
import * as app from 'application'; +import {BackgroundFetch} from "nativescript-background-fetch"; +if (app.ios) { + class MyDelegate extends UIResponder implements UIApplicationDelegate { + public static ObjCProtocols = [UIApplicationDelegate]; + public applicationPerformFetchWithCompletionHandler(application: UIApplication, completionHandler:any) { + BackgroundFetch.performFetchWithCompletionHandler(application, completionHandler); + } + } + app.ios.delegate = MyDelegate; +} app.start({ moduleName: 'main-page' });
[1.1.0]
minimumFetchInterval
for intervals > default 15 min..js
inmain
declaration inpackage.json
Note This version requires a breaking change to the
AppDelegate
definition (See theREADME
app.ts