How to handle popups in native app in ios using Appium Desktop

Iam using the latest version of Appium Desktop for native app ios using Ruby webdriver.
I need suggestions about handling the popup window please…
-I have tried using Desired capabilities,autoAcceptAlerts to true but it dsnt work on the latest Appium version
-Tried window handles to switch to the window and then click on the button on the popup window