Closed evollu closed 6 years ago
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.
public class MyApp extends Application {
@Override
public void onCreate() {
Trustkit.initializeWithNetworkSecurityConfiguration(this);
}
}
ah I'm calling it in Activity.
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.
When app is closed though "back" button and resume,
onCreate
will be called again. If I putTrustKit.initializeWithNetworkSecurityConfiguration
inside onCreate as readme shows it throwsTrustKit has already been initialized
error.shall I add a try catch around it to avoid the crash?