Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backend support for push notification sounds with custom extensions #2759

Merged
merged 10 commits into from
Aug 7, 2023

Conversation

vstpme
Copy link
Member

@vstpme vstpme commented Aug 4, 2023

What this PR does

Instead of always adding .aiff or .mp3 at the end of notification sound names depending on the platform (iOS vs Android), add them only if no extension is present already. This should make it possible to use sounds with custom extensions.

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • CHANGELOG.md updated (or pr:no changelog PR label added if not required)

@vstpme vstpme added the pr:no public docs Added to a PR that does not require public documentation updates label Aug 4, 2023
Comment on lines +187 to +189
# If sound name already contains an extension, return it as is
if "." in sound_name:
return sound_name
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main change of the PR

@vstpme vstpme changed the title Support mobile app notification sounds with custom extensions Add backend support for push notification sounds with custom extensions Aug 4, 2023
@vstpme vstpme marked this pull request as ready for review August 4, 2023 17:32
@vstpme vstpme requested a review from a team August 4, 2023 17:32
Copy link
Contributor

@joeyorlando joeyorlando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

engine/apps/mobile_app/models.py Outdated Show resolved Hide resolved
@vstpme vstpme force-pushed the vadimkerr/mobile-app-sound-extension branch from 3a90931 to ac895e6 Compare August 7, 2023 09:10
@vstpme vstpme added this pull request to the merge queue Aug 7, 2023
Merged via the queue into dev with commit 424b2b8 Aug 7, 2023
@vstpme vstpme deleted the vadimkerr/mobile-app-sound-extension branch August 7, 2023 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants