podbird forgets episode position on close

Bug #1725377 reported by Joe Liau
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
podbird
Fix Released
Undecided
Daniel Kutka

Bug Description

Podbird Version 0.8

Device: Bacon
Channel: ubports/15.04/devel

Steps to reproduce:
- Play episode in pod bird
- Close podbird
- Re-open podbird and play episode

What happens:
- Episode starts from the beginning again

Expected:
- Episode picks up from where last listened

Revision history for this message
Wayne T (wayneoutthere) wrote :

I'm on Mako Nexus 4 and it works as you expect in your bug report so this must be a bug with your device only. Another question, why is this respository/project on launchpad and not on github? Thanks!

Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

One thing to be aware of is that it's only possible for Podbird to remember your position if it's in the foreground when it's closed. Otherwise the Ubuntu Touch lifecycle policy will have suspended it and it'll have no opportunity to save the current position.

Revision history for this message
Joe Liau (joe) wrote :

Thanks for the comment, Michael. That does indeed seem to be the issue. Closing in the foreground does keep the position.

So, is this a bug with Podbird, or with Ubuntu Touch lifecycle policy?

Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

It's a limitation of the life cycle policy, there's nothing Podbird can do when suspended so there's no way of working around it (other than exempting Podbird from the life cycle management completely). Ideally I think apps should be woken up and sent a termination signal when the user closes them to allow them to save state.

Revision history for this message
Joe Liau (joe) wrote :
Revision history for this message
Joan CiberSheep (cibersheep) wrote :

I can confirm this issue on latest versions of Podbird / OS

Currently:
 - Device E5 HD
 - OTA 9
 - Podbird 0.8.2

- Play a downloaded 'episode X'
- Close app or play 'episode Y'
- Replay previous 'episode X'

Playback start at the beginning of the episode (except some really rare occasions)

Log: http://paste.ubuntu.com/p/sc3qKb2jXy/

Revision history for this message
Joan CiberSheep (cibersheep) wrote :

Addendum:

It looks like the position data is stored in the db

downloadedfile

/home/phablet/.local/share/com.mikeasoft.podbird/podcasts/todopoderosos-44-los-hermanos-coen-tapacubos_mf_29272167_feed_1.mp3

published

1539351258000

position

1537

Revision history for this message
Joan CiberSheep (cibersheep) wrote :
Revision history for this message
Alan Evans (theare) wrote :

It would seem that the Queue table in the SQLite DB is being emptied upon quitting the app, or phone reboot

Whether the app is in the foreground or the background when it is closed doesn't appear to be relevant

The table is wiped in either case

While the app is open and episodes are queued for laying the Queue table is populated, but the data is lost & the table emptied whenever the app is closed.

The data in the Podcast table on the other hand persists between sessions

Revision history for this message
Daniel Kutka (dano6) wrote :
Changed in podbird:
assignee: nobody → Daniel Kutka (dano6)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.