If you decide to use isOnfidoProcess to selectively skip the initialization of certain instances during the Onfido process, be cautious not to access these uninitialized instances elsewhere in your Application class, such as in the onTrimMemory method, to avoid unexpected behavior. Be aware that the Onfido process uses your custom Application class for its own initialization. This feature is especially useful for optimizing the Onfido initialization process. The isOnfidoProcess extension function has been integrated into the Application class to prevent accidental reinitialization of instances within custom application classes. This will prevent initialization-related crashes such as: FirebaseApp is not initialized in this process To prevent re-executing the initializations you have in the Android application class, you can use the isOnfidoProcess extension function and return from onCreate as shown below: This means that when the Onfido SDK gets started, a new application instance will be created. After the release of version 17.0.0, Onfido Android SDK runs in a separate process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |