Plugin Midi Input Connection not Working in Ableton

Hello! I am creating an FX plugin that requires external midi input to control its parameters. The plugin works fine in the audioPluginHost but it doesn’t operate properly in Ableton Live 10. I am exporting it as VST3. Is there a way of ensuring a connection between a connected midi device to the plugin. Any help will be greatly appreciated.

Thank you