Hi @bosuntechnology and @eddyoc
Someone (not sure if this is you, @bosuntechnology) posted a comment on an issue on GitHub with the same error:
What I’m finding is that I must have the
await Location.startLocationUpdatesAsync(BACKGROUND_FETCH_TASK); code to make background fetch work for iOS. However when I use that then unregistering the task fails with
Invalid task consumer. Cannot unregister task with name 'background-fetch' because it is associated with different consumer class. . I’m guessing this is because the task started as a
backgroundFetch task type and got changed to a
location task type.
Any idea why calling
Location.startLocationUpdatesAsync(taskName) is necessary to get background fetch working for iOS @tsapeta ?
Can one of you create a snack that demonstrates the problem and then create an issue here explaining the problem with a link to the snack?
Then post the link to the issue in this thread.