ProcessArgument to input serverurl for a hybrid app in ios

Hello, I have a hybridapp which has has web elements wrapped up with native. I want to be able to pass processarguments to this such that I am able to pass the serverURL of the hybrid app also as an argument. example: say the hybrid app sample.ipa has serverurl www.google.com so that when the iPhone launches sample.ipa, I am able to see www.google.com inside it. Now I want to be able to pass argument serverurl=www.test.com through appium so that when appium next opens sample.ipa, I see www.test.com . Can someone please help

Found the solution from github and its working perfectly fine. Posting it here for reference to anyone that reaches here