This code will initialize db on iOS.
Context in ENG-2071
Details
Details
- Reviewers
marcin tomek - Commits
- rCOMM4e11a2611ec4: [native/iOS] initialize database on app start
Tested on simulator and iOS.
- Created malformed db (e.g. simulate bug described in ENG-1910)
- Open the app - should be terminated
- Open again - app should delete database and perform soft-logout and continue running with proper structure
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- error-handling-2
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/ios/Comm/AppDelegate.mm | ||
---|---|---|
204 ↗ | (On Diff #20019) | Why do we want to catch here? As of my experience try - catch in this particular place might not be useful. Application is backgrounded, sot even if the app crashes user is not that directly affected. Additionally, we loos opportunity to receive meaningful crash log and we let application continue to work with possible persisting error in the database. |
Comment Actions
remove try {} catch() {} for background notifs
native/ios/Comm/AppDelegate.mm | ||
---|---|---|
204 ↗ | (On Diff #20019) | Good point with that, removing this |
native/ios/Comm/AppDelegate.mm | ||
---|---|---|
72–73 | Can we put this into attemptDatabaseInitialization? |