Save onesignal push notification to local storage when app is closed

Hello!

I am trying to save the data from onesignal push notification in my local storage when the app is closed. I am able to receive push notifications but it´s not working to save this to my local storage if the app is not running. Is it not possible to access local storage if the app is not opened? Please show me a way to do this. I try to do this on ios.

I don’t see how an app that isn’t running can do anything.

1 Like

Thank you for your answer. I found a solution.

please, what solution did you find?

how did you manage please? i’m trying to figure it out. Thanks