How to pass arguments to the mobile application via appium?

Is there any way to pass general data to the application via appium? The only way I can think to do this is to use the appium “push file” operation to send a file to the app directory on the device, and then read from that during application startup. However - the “push file” operation does not work on many android devices without resorting to using adb shell commands. Does anyone have any other ways to do this kind of thing?

You could try appium:optionalIntentArguments

You can create tcp socket connection between appium server and the app.