RSA.GenerateKeys function not work in Android and IOS

Why doesn't RSA.GenerateKeys function work in Android and IOS ??

RSA.GenerateKeys takes a lot of computing time and on Android and iOS, the application seems to be unresponsive, so the OS asks us to close it.

Tnx