How to handle permission popups in Real Devices with Appium Cucumber on LambdaTest cloud?

Tell me how I can handle permission popups in Real Devices with Appium Cucumber on LambdaTest cloud.

Hello Tom,

You can easily handle permission popups in Real Devices with Appium Cucumber on LambdaTest cloud.

Appending the code in first.config.yml:

server: "mobile-hub.lambdatest.com"

common_caps:
  "user": "username"
  "accessKey": "accesskey"
  "project": "First Cucumber Android Project"
  "build": "build-1"
  

browser_caps:
  -
    "platformName": "iOS"
    "platformVersion": "12.0"
    "deviceName": "iPhone 8"
    "app": "lt://"
    "name": "first_test"
    "isRealMobile": "true"
    
    #GRANT PERMISSIONS FOR ANDROID
    "autoGrantPermissions": "true"

    #ACCEPT ALERTS FOR IOS
    "autoDismissAlerts": "true"

    #DISMISS ALERTS FOR IOS
    "autoAcceptAlerts": "true"

Download and use the GitHub repo:

https://github.com/payalgulati909/appium-ruby-cucumber-permissions