Insane workaround to get the confirmation dialog working on iOS.