Driver.getcontexthandles() gives [NATIVE_APP,WEBVIEW,SAFARI]. But driver.context("SAFARI") fails

I am trying to verify the native controls in iOS safari for particular website
When I tried verifying the source code I observed that deiver.getcontexthandles() is giving “SAFARI” where as driver.context(“SAFARI”) fails.

How can I access the native controls in safari browser.