You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
java.lang.IllegalStateException: TrustKit has already been initialized #21
When app is closed though "back" button and resume, onCreate will be called again.
If I put TrustKit.initializeWithNetworkSecurityConfiguration inside onCreate as readme shows it throws TrustKit has already been initialized error.
shall I add a try catch around it to avoid the crash?
Hey @evollu are you calling Trustkit. initializeWithNetworkSecurityConfiguration in the onCreate of your app or an activity? It should work if you use it inside the one of your application.
Hey @evollu are you calling Trustkit. initializeWithNetworkSecurityConfiguration in the onCreate of your app or an activity? It should work if you use it inside the one of your application.
Activity
jobot0 commentedon Sep 12, 2017
Hey @evollu are you calling
Trustkit. initializeWithNetworkSecurityConfigurationin theonCreateof your app or an activity? It should work if you use it inside the one of your application.evollu commentedon Sep 12, 2017
ah I'm calling it in Activity.
Lynnette1 commentedon May 24, 2019
Can you clarify this statement.
Hey @evollu are you calling Trustkit. initializeWithNetworkSecurityConfiguration in the onCreate of your app or an activity? It should work if you use it inside the one of your application.