-
Notifications
You must be signed in to change notification settings - Fork 329
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
base: main
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
There was a problem hiding this 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
#if DEBUG | ||
return true | ||
#else | ||
guard !Self.isAppExtension, | ||
let application = Self.sharedUIApplication else { | ||
return false | ||
} | ||
return application.canOpenURL(url) | ||
#endif |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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
Checklist
purchases-android
and hybridsMotivation
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.