How to create BDD Cucumber Appium Java framework for android and iOS?

Hello Team,

I am trying to create BDD Cucumber Appium Java framework whichis support for both android and iOS app. I tried so much but unable to suceed. Anyone have idea how to pass device name as paramters in cuucmebr hooks.
Thank you in advance