finish static method

void finish(
  1. String taskId
)

Signal to the OS that your fetch-event for the provided taskId is complete.

You MUST call finish in your fetch callback provided to configure in order to signal to the OS that your fetch action is complete. iOS provides only 30s of background-time for a fetch-event -- if you exceed this 30s, the OS will punish your app for spending too much time in the background.

Implementation

static void finish(String taskId) {
  _methodChannel.invokeMethod('finish', taskId);
}