How to run socket.io in the background on iOS in a React Native app?

前端 未结 4 1813
轮回少年
轮回少年 2021-02-07 02:36

I am using socket.io in an iOS React Native(v0.20) app. The app tracks my location, and when my position changes it emits a message to a server. If the

4条回答
  •  灰色年华
    2021-02-07 03:01

    In your picture of the Info.plist, it only allows the following three background modes:

    1. Background fetch

    2. Location updates

    3. Remote notifications

      You should allow "Audio and AirPlay" mode and it seems like "App plays audio or streams audio/video using Airplay".

提交回复
热议问题