Reputation: 5104
Is there any way to persist non-serialisable values in react native?
I am building a calling app using SIP js, everything works fine. Now i want to implement the call receiving functionality when the app is killed (The thing below is what I think can help me to reach my goal. I don't know whether I am going right or no, so any other ways are accepted too).
Now to achieve this, I want to persist the userAgent session so that I can use the same session in background. So when receiving a notification when the app is killed (notifications are already implemented), i can use the same userAgent session.
Upvotes: 1
Views: 75
Reputation: 151
You can’t directly store complex objects like a userAgent session in storage. Instead, save the key details and recreate the session when needed. For background tasks, consider using background services depending on your platform.
Upvotes: 0