Virgil Security Help Center
Group 65Go to Virgil Security
All Collections
Developer Reference Guide
Firebase
How to store the encrypted history on Firebase server (for JS, iOS, Android)?

How to store the encrypted history on Firebase server (for JS, iOS, Android)?

demo-firebase-js, Firebase, JS, iOS, Android
Dmytro Matviiv avatar
Written by Dmytro Matviiv
Updated over a week ago

You can comment out the specified block of code which gives you the opportunity to store the encrypted history on Firebase server. By default, the history is deleted after the message was delivered to the receiver .

For JS:

1. https://github.com/VirgilSecurity/demo-firebase-js/blob/f902954fd50f6449a8cd6a3336c8ddd46905629e/src/models/MessageListModel.ts#L28

2. https://github.com/VirgilSecurity/demo-firebase-js/blob/f902954fd50f6449a8cd6a3336c8ddd46905629e/src/models/MessageListModel.ts#L87-L98

For iOS:

1. https://github.com/VirgilSecurity/demo-firebase-ios/blob/master/Firebase%20Chat%20iOS/Helpers/Firebase/Firebase%2BMessages.swift#L48

2. https://github.com/VirgilSecurity/demo-firebase-ios/blob/master/Firebase%20Chat%20iOS/Controllers/Chat/DataSource.swift#L97

For Android:

1. https://github.com/VirgilSecurity/demo-firebase-android/blob/2fc322e570ad0b2731d69a046f95adabf283bb0d/app/src/main/java/com/android/virgilsecurity/virgilonfire/ui/chat/thread/ThreadFragmentPresenter.java#L235-L238

2. https://github.com/VirgilSecurity/demo-firebase-android/blob/2fc322e570ad0b2731d69a046f95adabf283bb0d/app/src/main/java/com/android/virgilsecurity/virgilonfire/ui/chat/thread/ThreadFragmentPresenter.java#L255-L275

Did this answer your question?
Virgil Security Help Center
  • Home
  • Blog
  • Pricing
  • Documentation
  • Slack
Intercom We run on Intercom