PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, September 29, 2022

[FIXED] What storage options exist for React Native apps on tvOS?

 September 29, 2022     ios, react-native, react-redux, redux, tvos     No comments   

Issue

I have a React Native app built for tvOS that uses redux-persist, however, I see the following message in the console every time my state changes:

Persistent storage is not supported on tvOS, your data may be removed at any point.

And yes, in fact, after testing, my app lost its state overnight. Clearly Apple TV apps have some way of storing information, like who the user is. Are they all are using some API that provides the current user's Apple ID and then storing their app state in the cloud? Are there other options for storing state locally on the device?


Solution

Currently, you can only use this to get 500kb of persistent storage on tvOS with react-native.

https://github.com/kevinresol/react-native-default-preference



Answered By - Relaed
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing