I am trying to save an ARWorldMap using persistence and save the session to Firebase Realtime Database. The data from ARWorldMap is of type NSArchivedData but Firebase can only save data of type:
- NSString
- NSNumber
- NSDictionary
- NSArray
How can I convert the NSArchivedData to any of the types above and extract the data from Firebase to restore the world map session? We have tried to convert the data into a string (using UTF-8 format), but it seems like we are loosing data.
Best regards, Casper