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

[Customer Center] Hack week: add contact support button to customer center #4641

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ekurutepe
Copy link
Contributor

Checklist

  • If applicable, unit tests
  • If applicable, create follow-up issues for purchases-android and hybrids

Motivation

It seems like we have the ability to open system email client to contact support but we were not surfacing this for the users. See the discussion: https://revenuecat.slack.com/archives/C072SLPSTQS/p1736178563670389

Description

Adds a user tappable ContactSupportButton to customer center at the top level for all purchase states.

@ekurutepe ekurutepe requested review from aboedo and vegaro January 8, 2025 21:56
@RevenueCat-Danger-Bot
Copy link

RevenueCat-Danger-Bot commented Jan 8, 2025

1 Error
🚫 The PR is tagged with pr:RevenueCatUI only. Please add another appropriate label.
Label Description
pr:feat A new feature. Use along with pr:breaking to force a major release.
pr:fix A bug fix. Use along with pr:force_minor to force a minor release.
pr:other Other changes. Catch-all for anything that doesn't fit the above categories. Releases that only contain this label will not be released. Use along with pr:force_patch, or pr:force_minor to force a patch or minor release.
pr:RevenueCatUI Use along any other tag to mark a PR that only contains RevenueCatUI changes
pr:next_release Preparing a new release
pr:dependencies Updating a dependency
pr:phc_dependencies Updating purchases-hybrid-common dependency

Generated by 🚫 Danger

Copy link
Member

@aboedo aboedo left a comment

Choose a reason for hiding this comment

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

Love it!! Left one question

Comment on lines +68 to +76
#if DEBUG
return true
#else
guard !Self.isAppExtension,
let application = Self.sharedUIApplication else {
return false
}
return application.canOpenURL(url)
#endif
Copy link
Member

Choose a reason for hiding this comment

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

curious about this part - shouldn't it still be false for app extensions even when in debug?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a hack to make this return true in SwiftUI previews. Otherwise it would just return false since previews can't open URLs.

Copy link
Contributor

@vegaro vegaro left a comment

Choose a reason for hiding this comment

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

I do think we have to add the contact support button but with this changes, it will be hardcoded for everyone.

Instead I think we should make it one of the paths in the dashboard (same as "Manage subscriptions", or "Request a refund"), so it's optional and dynamically added by the ManageSubscriptionsButtonsView

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants