Automattic / Automattic/pocket-casts-ios

Listening progress wasn't updating when the app was playing in the background

Open
#606 6 comments 0 reactions 0 assignees View on GitHub
[Type] Bug playback
Dominant language
Swift
Stars
1.8k
Forks
198
Avg merge
17h 20m
Merged PRs (30d)
103

Description

### Expected behavior

The listening progress updates even when the app is playing in the background.

### Actual behavior

The app showed that the episode was only played for 17 seconds while it was playing until the end in the background.

> Here is a log file right after listening to a podcast fully in the background and having it not advance to the next podcast. In addition I just came back into the app right now to see what was happening and it’s showing that it’s only 17 seconds into the podcast that I just finished listening to and “playing” but it’s hung.

Reported in 5788222-zd-woothemes.

### Steps to reproduce the behavior

Not reproducible

### Logs

Relevant log section:

```
2022-12-13 18:59:50 Sent position 14 status 2 for episode Inflation Cooling, SBF Arrested to server
2022-12-13 19:00:22 saving played up to 14.428175944 for episode Inflation Cooling, SBF Arrested
2022-12-13 19:00:54 saving played up to 14.428175944 for episode Inflation Cooling, SBF Arrested
2022-12-13 19:01:14 Refresh complete found 1 new episodes
2022-12-13 19:01:14 Total user files 0, total size 10000000000 used size 0
2022-12-13 19:01:14 UpNextSyncTask: Syncing Up Next, sending 0 changes, modified time 1670974179680
2022-12-13 19:01:14 UpNextSyncTask: Server returned not modified to Up Next sync, no changes required
2022-12-13 19:01:15 SyncTask: sending 7 changed items to the server
2022-12-13 19:01:15 Received subscription status paid : 1, platform : 3, frequency : 2, giftDays : 0, expiryDate : 2023-01-15 00:00:00 +0000, supporterPodcasts : 0
2022-12-13 19:01:15 Sync succeeded
2022-12-13 19:01:15 Archive episode 246 - Ideaflow - Jeremy Utley, fireNotification? false, removeFromPlayer? true
2022-12-13 19:01:26 saving played up to 14.428175944 for episode Inflation Cooling, SBF Arrested
2022-12-13 19:01:59 saving played up to 14.428175944 for episode Inflation Cooling, SBF Arrested
2022-12-13 19:01:59 Sent position 14 status 2 for episode Inflation Cooling, SBF Arrested to server
2022-12-13 19:02:31 saving played up to 14.428175944 for episode Inflation Cooling, SBF Arrested
2022-12-13 19:03:03 saving played up to 14.428175944 for episode Inflation Cooling, SBF Arrested
```

From the above, we can see that the time played stuck at 14.428175944. Full log can be found in the MC Encrypted Logs tool with UUID E077390D-0B41-4AAE-AD66-1798374A7A16.

##### Reported on iPhone12,3, iOS 15.7, Pocket Casts 7.29
Note: The user initially reported the issue in the app version 7.27

Contributor guide

Open the contributing guide

Research direction

No source file or test is named, and the report says the issue is not reproducible. Start by reviewing the supplied log and investigating background playback progress persistence on the reported iOS configuration. Done means listening progress continues updating during background playback and the next podcast advances normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.