Фоновое местоположение не работает в выпуске iOS (React Native) - отлично работает в отладкеIOS

Программируем под IOS
Ответить
Anonymous
 Фоновое местоположение не работает в выпуске iOS (React Native) - отлично работает в отладке

Сообщение Anonymous »

Я разрабатываю приложение React Native, где мне нужно отслеживать местоположение пользователя в фоновом режиме. Я использую: < /p>

Код: Выделить всё

react-native-background-actions< /code>
react-native-community/geolocation

Проблема:

[*] Android: Фоновое место Обновления вообще < /li>
< /ol>
Что я уже сделал: < /strong> < /p>
  • включенные фоновые режимы → Обновления местоположения в xcode < /li>
    Добавлены необходимые режимы в info.plist: < /li>
    < /ul>

    Код: Выделить всё

    NSLocationAlwaysAndWhenInUseUsageDescription
    We need access to your location even when the app is in background.
    NSLocationWhenInUseUsageDescription
    We need access to your location while you're using the app.
    NSLocationAlwaysUsageDescription
    We need access to your location at all times.
    < /code>
    
    Requested location permissions properly in JS
    [*]Using BackgroundActions.start() with a long-running async task
    [*]Confirmed that the code works perfectly in iOS debug mode
    [/list]
    Build Info:[/b]
    [list]
    [*]Built with Xcode for release (archive → export IPA)
    [*]Installed via TestFlight and manually on device
    [/list]
    [b]Possible Cause?[/b]
    Is this related to entitlements, provisioning profile, or anything that gets stripped in release mode?
    Question:
    What could be preventing background location from working in iOS release builds?
    
    Is there something extra that needs to be done for react-native-background-actions
    или geolocation для правильной работы в релизе?
    Любая помощь будет очень оценена!>

    Подробнее здесь: https://stackoverflow.com/questions/796 ... fine-in-de
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»