jamesisaac / react-native-background-task

Periodic background tasks for React Native apps, cross-platform (iOS and Android), which run even when the app is closed.
MIT License
1.1k stars 110 forks source link

Update dependency to make it support higher version of background fetch #41

Open fattahmuhyiddeen opened 6 years ago

jamesisaac commented 6 years ago

I believe I limited the dependency to that version, as it was the last version before their APIs changed. So using a later version of the library would require more changes: updating the API calls, major version bump, etc.

Is there some specific reason you want to use a higher version than 2.0.x?

xRahul commented 6 years ago

2.0.x is not working for me. linking it is throwing errors. Also, react-native run-android is not working with the latest react-native package. Getting these errors:

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/Users/slx/Documents/GitHub/NotifyAvailabilityUpgrade/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

:react-native-background-task:processReleaseResources FAILED