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 111 forks source link

is it working with the latest React Native versions? #49

Open Richi2293 opened 6 years ago

Richi2293 commented 6 years ago

I need to check the status of the wifi, that is if it is connected to a specific wifi. Could this library fit my case? works well?

Thanks

xRahul commented 5 years ago

Not for me. Throwing 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
ndersh commented 5 years ago

@xRahul I get the same error. Relates to #57

nowarzz commented 5 years ago

@xRahul I got the exact same error as yours.

Richi2293 commented 5 years ago

I think it is due to the fact that it has not been updated for a long time and therefore no longer fully compatible with last react native versions (last android/iso versions)

danielsotopino commented 5 years ago

In node_modules/react-native-background-task/android/build.gradle I changed:

compileSdkVersion 23 -> 28

And now it works ok.