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

Clarify setting up TrustKit in the docs #82

Open
myklosbotond opened this issue Feb 10, 2021 · 1 comment
Open

Clarify setting up TrustKit in the docs #82

myklosbotond opened this issue Feb 10, 2021 · 1 comment

Comments

@myklosbotond
Copy link

Is your feature request related to a problem? Please describe.

We just ran into the problem described in #21: when the main activity's onCreate is called a second time an IllegalStateException is thrown. The solution described in the issue works, but I think this can be avoided.

Describe the solution you'd like

Make it clearer in the Getting Started docs in the "Initializing TrustKit with the Pinning Policy" section that the code snippet applies to the Application's onCreate method, rather than the MainActivity's method.

@alexanderdibenedetto
Copy link

Agreed with this, as it was a common enough issue that in the Xamarin version I created I had to add logic to prevent a second initialization attempt.

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

No branches or pull requests

2 participants