Closed
Bug 1101292
Opened 10 years ago
Closed 6 years ago
Save and load the amount of times that the Dialer has been launched
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Firefox OS Graveyard
Gaia::Dialer
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: drs, Unassigned)
References
Details
(Whiteboard: [planned-sprint c=?])
To hint the favorite contacts only the first 10 times that the Dialer has been launched, we will have to save and load the launch count in an indexedDB. We should provide the launch count to the handler code, which will signal the UI code to either show or hide the favorite contacts banner depending on how high it is, and other criteria.
Reporter | ||
Updated•10 years ago
|
Whiteboard: [planned-sprint] → [planned-sprint c=?]
Comment 1•10 years ago
|
||
As discussed on IRC it would be best if we ha had a single DB for this stuff and the call log (with different stores naturally) but the DB naming might not be optimal right now; so it would be OK to stick with two databases provided we can prove we don't harm startup time too much (in theory we shouldn't, but as the saying goes, in theory, theory and practice are the same, in practice they're not).
Reporter | ||
Comment 2•10 years ago
|
||
In that case, we can prototype it first and see how much it impacts load time. We have a lot of wiggle-room between where we are now and our target, though we want to stay as low as possible. As we discussed, I suggested doing something like this: ```js var launchCountDB = indexedDB.open('dialer'); ``` Since the name of the indexedDB itself is very vague, we could potentially expand this DB to be used for other purposes as well. But since it's currently only needed for the launch count, it would make most sense to name variables using it with `launchCount` instead. The variable names can be renamed fairly easily, but renaming the indexedDB itself would require a migration.
Comment 3•6 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•