You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Send version and platform in the User-Agent - #6477
The app now tells servers which app version and Android platform it is running on, both when it talks to Pocket Casts and when it fetches episodes from podcast hosts.
The new User-Agent strings are:
Calls to podcast hosts (episode streaming, downloads, artwork and transcripts): PocketCasts/<version> (Android), for example PocketCasts/8.26 (Android).
Calls to the Pocket Casts API: PocketCasts/<version> (Android; <platform>), where the platform is Phone, Wear OS, Automotive or TV.
No blocking issues. Every OkHttp client builds its User-Agent in InterceptorModule, so the new strings reach the Pocket Casts API and all podcast-host traffic (downloads, player, transcripts, artwork). The clean-and-retry header stripping still applies to them. Util.getAppPlatform caches its result and gets the application context, so building the interceptor in each @Provides call costs nothing extra.
Non-blocking
modules/features/profile/src/main/java/au/com/shiftyjelly/pocketcasts/profile/cloud/AddFileActivity.kt:747 When a user adds a file from a URL, the request still sends User-Agent: Pocket Casts because it bypasses the shared interceptors. If you want every outgoing request to use the new format, switch it to InterceptorModule.PC_PUBLIC_USER_AGENT (the profile module would need to depend on servers, or the constant could move to utils).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The app now tells servers which app version and Android platform it is running on, both when it talks to Pocket Casts and when it fetches episodes from podcast hosts.
The new User-Agent strings are:
PocketCasts/<version> (Android), for examplePocketCasts/8.26 (Android).PocketCasts/<version> (Android; <platform>), where the platform isPhone,Wear OS,AutomotiveorTV.Fixes https://linear.app/a8c/issue/PCDROID-869/send-pocket-castsversion-android-user-agent-when-playing-and
Testing Instructions
User-Agent: PocketCasts/<version> (Android; Phone).User-Agent: PocketCasts/<version> (Android).(Android)User-Agent.Screenshots
Checklist
./gradlew spotlessApplyto automatically apply formatting/linting)modules/services/localization/src/main/res/values/strings.xml