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

Open email webview #25

Merged
merged 3 commits into from
Nov 4, 2022
Merged

Open email webview #25

merged 3 commits into from
Nov 4, 2022

Conversation

mfmurray
Copy link
Contributor

  1. Added logic to listen to url from webview and check if url is "mailto" to then open default email inbox
  2. Added constant for Feature Flags

let encodedData = try encoder.encode(frameworkFeatures)
return String(data: encodedData, encoding: .utf8) ?? "{}"
} catch {
print("ROWND: Couldn't encode Framework Features")
Copy link
Contributor

@mhamann mhamann Nov 3, 2022

Choose a reason for hiding this comment

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

You can use something like: logger.warn("Failed to encode framework features: \(String(describing: error)))") here to provide better formatting and error details (although it theoretically won't ever fail).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. We'll need to merge the Hub PR before this gets merged. The JS fails without the rownd.setSesssionStorage api

Copy link
Contributor

@mhamann mhamann left a comment

Choose a reason for hiding this comment

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

See the one line comment for improved error logging. Otherwise, looks good.

@mhamann mhamann merged commit 1d3c963 into main Nov 4, 2022
@mhamann mhamann deleted the open-email-webview branch November 4, 2022 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants