James Isaac

Results 37 comments of James Isaac

I would recommend using a more specific library for this purpose, e.g.: https://github.com/transistorsoft/react-native-background-geolocation

@artemukolov What code are you trying to execute in your task?

I'm not sure why the automatic linking process didn't work for you. Just tried on a clean project (also on Windows) with no issues. You can carry out the Android...

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...

Have you installed and linked the `react-native-background-fetch` library? As described in the installation steps: https://github.com/jamesisaac/react-native-background-task#ios This library doesn't provide its own native module for iOS (it just proxies the other...

Please try running the following command: ```bash $ adb logcat *:S ReactNative:V ReactNativeJS:V BackgroundTask:V ``` And paste your logs here (if it doesn't provide you enough of a clue to...

@48memory Then the Android library probably wasn't linked correctly. Make sure these changes were made by the react-native link command: https://github.com/jamesisaac/RNBackgroundTaskExample/commit/718b3d2cfe1fa1a649ddb285be921ad8974dff26

I haven't had the time to keep this updated with the latest vesrsions of Android etc unfortunately, as it doesn't align with my current work. Hopefully I will have a...

Try using the "Simulate Background Fetch" feature of Xcode, documented here: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html#//apple_ref/doc/uid/TP40012848-CH4-SW5 Were you using a simulator or device? From what I understand the Simulator doesn't run background code by...

Can you try out with Simulate Background Fetch and just confirm that works first? If it does, it's probably a sign that the task is set up properly, but Apple's...