I have an iPhone XS Max with two physical sim cards, but this problem will also happen with the eSim+physical sim variation.
Some operators don't allow for editing the APN. This is annoying, as small virtual operators that use a big operator as their network, have the problem that the APN can't be edited, and so data won't work. There is a way around this, by making a mobileconfig file to force the APN to work. There are sites like this, or you can do it manually; it works great. You need to install it as an unsigned profile.
However, on a dual sim iPhone, this is only taken into account for the "first" sim card, not for the second card. There must be a key to address the 2nd APN, but I don't know how. I currently have one SIM card with this problem and I had to physically put it in the first slot for the mobileconfig APN switcher to use it.
Anyone know what the key could be here?
Below such a file for information.
<plist version="1.0">
<string>netgprs.com</string>
</dict>
<key>PayloadContent</key>
<string>netgprs.com</string>
<key>AuthenticationType</key>
<string>CHAP</string>
<key>Username</key>
<string/>
<key>Password</key>
<string/>
</dict>
<key>APNs</key>
<string>netgprs.com</string>
<key>AuthenticationType</key>
<string>CHAP</string>
<key>Username</key>
<string/>
<key>Password</key>
<string/>
</dict>
</array>
<key>PayloadDescription</key>
Provides customization of carrier Access Point Name.
</string>
<key>PayloadDisplayName</key>
<string>Advanced Settings</string>
<key>PayloadIdentifier</key>
<string>netgprs.com</string>
<key>PayloadOrganization</key>
<string>netgprs.com</string>
<key>PayloadType</key>
<string>com.apple.cellular</string>
<key>PayloadUUID</key>
<string>6B08253E-D5BB-4FC4-A5CD-825FB965B5AA</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDescription</key>
Installation of Internet access settings. If you have set a lock screen passcode, it will be asked now.
</string>
<key>PayloadDisplayName</key>
<string>netgprs.com</string>
<key>PayloadIdentifier</key>
<string>netgprs.com</string>
<key>PayloadOrganization</key>
<string>netgprs.com</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>560EB0FF-BE89-46C7-8DC9-6CA77E1A4453</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>