React-native-fs: Question: Enable background fetch

Created on 9 Mar 2017  Â·  9Comments  Â·  Source: itinance/react-native-fs

The docs say to enable background fetch for your project in XCode using the provided link where the following three steps are specified:

  1. Enable background fetch in Info.plist
  2. Set background fetch interval in didFinishLaunchingWithOptions
  3. Add a callback like performFetchWithCompletionHandler

Do all three of these steps need to be performed manually? If I understand correctly, the callback may be implemented by react-native-fs. Is that correct?

Most helpful comment

There you go guys!

All 9 comments

I have the same question. Did you ever figure this out?

No, I've been waiting on someone who may know the answer.

I'm going to try it out without doing step 3 on your list. I'll report back but if I forget, remind me.

Yup, tested. It works. No need for the third step.

Thanks for the update @wootwoot1234. Appreciate it! I'll leave this open for the authors to update the docs with this information.

It's an open source project, why don't you update the docs and do a pull
request. :)
On Mon, Apr 3, 2017 at 1:06 PM Anshul Koka notifications@github.com wrote:

Thanks for the update @wootwoot1234 https://github.com/wootwoot1234.
Appreciate it! I'll leave this open for the authors to update the docs with
this information.

—
You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
https://github.com/johanneslumpe/react-native-fs/issues/266#issuecomment-291224633,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZnGRvAfUp7p_pqpePQjuP7Dw1E2mdAks5rsTUKgaJpZM4MYpEh
.

as @wootwoot1234 said, will @a-koka propose the final solution into the readme that we can close this issue that way? :) thank you very much

There you go guys!

Thanks a lot. Merged.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

onzag picture onzag  Â·  3Comments

1556173267 picture 1556173267  Â·  3Comments

MuppaAkhil picture MuppaAkhil  Â·  3Comments

crobinson42 picture crobinson42  Â·  4Comments

PimDeWitte picture PimDeWitte  Â·  4Comments