Modify iOS plugin to take filename as an argument