Skip to content

Instantly share code, notes, and snippets.

View aparajita's full-sized avatar

Aparajita Fishman aparajita

View GitHub Profile
export default class AppDelegate extends UIResponder { // eslint-disable-line
applicationPerformFetchWithCompletionHandler(application, completionHandler) {
console.log('App is running in background')
// Check for new data
const newData = true
// If new data exists, initiate a local notification
if (newData) {
// Let the OS know that there were new data and complete the task