Fixed detach from in iOS and added in Android.