I do not know before hand which network provider's SIM card is going to be inserted into my device, so my current method is to just have a python script create multiple connections while iterating through a list of APNs of providers in the country such as -
for APN in APNS:
sudo nmcli connection add type gsm ifname '*' con-name CellularCon apn <APN>
Is there a better way to do this? Can the APN be resolved by NetworkManager itself?
AT+COPS?
.