magento2 – Magento 2 custom shipping method carrier is not showing after selecting the method from dropdown in order shipment backend

I have installed my Shipping Tracker module in Magento 2.3.5p1, I
have added a custom Shipping method which is showing in the dropdown
in the backend on the Order shipment page as below,

Note: This issue is only on Magento 2.3.5p1, it’s working fine for Magento 2.3.4


After selecting the custom shipping method, the carrier is showing Custom Value instead of the method name, Although it is showing for default methods. Check below screenshot,


You can check the inspect element in the below screenshot so you can
have more idea,


Here is the code for adding a custom shipping method to dropdown,


<?xml version="1.0"?>
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="MagentoShippingBlockAdminhtmlOrderTracking">
        <plugin name="carrier_options_backend_shipment" type="VendorShippingtrackerPluginBlockAdminhtmlOrderTracking" sortOrder="5" />


namespace VendorShippingtrackerPluginBlockAdminhtmlOrder;

class Tracking
    public function __construct(
        VendorShippingtrackerHelperData $shippingTrackerHelper
    ) {
        $this->shippingTrackerHelper = $shippingTrackerHelper;

    public function afterGetCarriers(MagentoShippingBlockAdminhtmlOrderTracking $subject, $result)
        $customCarrier = $this->shippingTrackerHelper->getCustomCarrierTitle();
        if (!empty($customCarrier)) {
            foreach ($customCarrier as $code => $carrierTitle) {
                $result($code) = $carrierTitle;
        return $result;

Helper Method getCustomCarrierTitle()

public function getCustomCarrierTitle()
        $j = 15;
        $customCarrier = ();
        for ($i=1; $i <= $j; $i++) {
            $enable = 'shippingtracker_section/custom_shippingtracker_'.$i.'/custom_shippingtracker_enable_'.$i;
            $Title = 'shippingtracker_section/custom_shippingtracker_'.$i.'/custom_shippingtracker_title_'.$i;
            $carrierEnable = $this->getConfigValue($enable);
            $carrierTitle = $this->getConfigValue($Title);
            if ($carrierEnable) { // config value 
                if ($carrierTitle) { // config value
                    $customCarrier('customcarrier'.$i) = $carrierTitle;
        return $customCarrier;

I have also tried overriding the
MagentoShippingBlockAdminhtmlOrderTracking class, but I don’t
see my custom shipping method in the dropdown so I don’t think that’s
working as well.

Any help would be appreciated.