A method performed by a user device for handling timing conflicts associated with a random-access procedure for gaining access to a communication channel, the method comprising: receiving , from a base station , a message that grants the user device an occasion to transmit uplink data, the occasion including a second time period; determining (414; 802) that a first time period for the user device to transmit at least a data portion of a random-access procedure message to the base station overlaps the second time period ; determining (420; 804) a transmission precedence indicative of whether to modify transmission timing for the random-access procedure message or to instead modify transmission timing for the uplink data, wherein determining (420; 804) the transmission precedence is based on whether the message grants the user device an occasion that is (i) an occasion to re-transmit uplink data that the base station failed to receive or decode, or (ii) an occasion to transmit new uplink data; and based on the determined transmission precedence, either (440; 806) (i) when the occasion is an occasion to re-transmit uplink data that the base station failed to receive or decode, transmitting at least the data portion of the random-access procedure message to the base station during the first time period, or (ii) when the occasion is an occasion to transmit new uplink data, transmitting the new uplink data to the base station during the second time period. receiving , from a base station , a message that grants the user device an occasion to transmit uplink data, the occasion including a second time period; determining (414; 802) that a first time period for the user device to transmit at least a data portion of a random-access procedure message to the base station overlaps the second time period ; determining (420; 804) a transmission precedence indicative of whether to modify transmission timing for the random-access procedure message or to instead modify transmission timing for the uplink data, wherein determining (420; 804) the transmission precedence is based on whether the message grants the user device an occasion that is (i) an occasion to re-transmit uplink data that the base station failed to receive or decode, or (ii) an occasion to transmit new uplink data; and (i) an occasion to re-transmit uplink data that the base station failed to receive or decode, or (ii) an occasion to transmit new uplink data; and based on the determined transmission precedence, either (440; 806) (i) when the occasion is an occasion to re-transmit uplink data that the base station failed to receive or decode, transmitting at least the data portion of the random-access procedure message to the base station during the first time period, or (ii) when the occasion is an occasion to transmit new uplink data, transmitting the new uplink data to the base station during the second time period. (i) when the occasion is an occasion to re-transmit uplink data that the base station failed to receive or decode, transmitting at least the data portion of the random-access procedure message to the base station during the first time period, or (ii) when the occasion is an occasion to transmit new uplink data, transmitting the new uplink data to the base station during the second time period. <EOS>