itinance / react-native-fs

Native filesystem access for react-native
MIT License
4.92k stars 965 forks source link

Question: Enable background fetch #266

Closed anshul-kai closed 7 years ago

anshul-kai commented 7 years ago

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?

wootwoot1234 commented 7 years ago

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

anshul-kai commented 7 years ago

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

wootwoot1234 commented 7 years ago

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

wootwoot1234 commented 7 years ago

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

anshul-kai commented 7 years ago

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

wootwoot1234 commented 7 years ago

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 .

itinance commented 7 years ago

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

anshul-kai commented 7 years ago

There you go guys!

itinance commented 7 years ago

Thanks a lot. Merged.