Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

244
Visualizações
Async storage in IOS gets automatically cleared

I've used async storage to persist data in my IOS app built using react-native. I have used functions like AsyncStorage.setItem() etc to set, read, delete data. The async storage in my app is used to store the downloaded songs of a playlist.

Some users have reported that the songs stored in the cache gets deleted automatically in IOS. The data is there for some time but after 3-4 hours the cache is cleared automatically. Hence, they've to download the playlist again after sometime. The async storage works fine in Android, the data is persisting. I checked the official documentation but they have not mentioned this problem of automatic cache clearing for IOS.

I wanted to understand is this some kind of memory optimisation feature of IOS where the async storage is cleared by itself ? and Can we disable this kind of automatic deletion of async storage in IOS?

This is the async storage version I've been using.. "@react-native-community/async-storage": "1.9.0"

Can anyone please help with what the problem might be and suggest me some solutions.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda