The answer to the question, "Is there a software lock on charging aftermarket batteries?" is a qualified no. After the iPhone X, Apple started pairing batteries with phones, including the X, XS Max, XR and later models. Which means changing the battery, whether genuine Apple or aftermarket, means you get a "non-genuine" parts warning and you lose the ability to view battery health information.
+
The answer to the question, "Is there a software lock on charging aftermarket batteries?" is a qualified no. After the iPhone X, Apple started pairing batteries with phones, including the XS, XS Max, XR and later models. Which means changing the battery, whether genuine Apple or aftermarket, means you get a "non-genuine" parts warning and you lose the ability to view battery health information.
However, to the best of our knowledge, none of that prevents the battery from working correctly. It's our understanding that even with the warning and the loss of information the batteries still charge and power the phone just as they always did. So as tempting as it is to blame Apple's pairing policies, in your case I'd suggest looking for a hardware issue.
First thing to do is unplug the battery and check the motherboard connector for any bent, broken or missing pins. Normally I'd tell you to check the connector on the battery's flex cable as well, but having tried two different batteries that's not necessary since it's highly unlikely they'd both be broken in exactly the same way. Use a magnifying glass and a bright light and take a good look.
Anyway, next step is to clean everything with 90% or higher concentration of isopropyl (rubbing) alcohol.
Finally, check the components mounted on the board surrounding the battery connector; it's not unheard of for components to get knocked off in the process of trying to fit the battery plug into the socket.
As a last resort, let me check with you: were the two batteries you tried both from the same manufacturer? It's possible the particular battery you got for some reason just isn't compatible with your phone. If nothing else helps, it might be worthwhile to just go on a random AliExpress or eBay seller and pick up a different battery; heck, you could even get one from here on iFixit - at least you'd know for sure you're getting a quality battery with a guarantee.
Rereading your question, it also occurs to me that there could be an issue with the charging port you replaced; however I put that at a somewhat low probability as it wouldn't affect the wireless charging. You could try unplugging the lighting flex cable and see if the wireless charging works under those circumstances to try and rule that out as the cause.
Give some or all of those suggestions a try then come back and let us know what you find. After that we can see if we can figure out what your next step should be.
The answer to the question, "Is there a software lock on charging aftermarket batteries?" is a qualified no. After the iPhone X, Apple started pairing batteries with phones, including the X, XS Max, XR and later models. Which means changing the battery, whether genuine Apple or aftermarket, means you get a "non-genuine" parts warning and you lose the ability to view battery health information.
However, to the best of our knowledge, none of that prevents the battery from working correctly. It's our understanding that even with the warning and the loss of information the batteries still charge and power the phone just as they always did. So as tempting as it is to blame Apple's pairing policies, in your case I'd suggest looking for a hardware issue.
First thing to do is unplug the battery and check the motherboard connector for any bent, broken or missing pins. Normally I'd tell you to check the connector on the battery's flex cable as well, but having tried two different batteries that's not necessary since it's highly unlikely they'd both be broken in exactly the same way. Use a magnifying glass and a bright light and take a good look.
Anyway, next step is to clean everything with 90% or higher concentration of isopropyl (rubbing) alcohol.
Finally, check the components mounted on the board surrounding the battery connector; it's not unheard of for components to get knocked off in the process of trying to fit the battery plug into the socket.
As a last resort, let me check with you: were the two batteries you tried both from the same manufacturer? It's possible the particular battery you got for some reason just isn't compatible with your phone. If nothing else helps, it might be worthwhile to just go on a random AliExpress or eBay seller and pick up a different battery; heck, you could even get one from here on iFixit - at least you'd know for sure you're getting a quality battery with a guarantee.
+
Rereading your question, it also occurs to me that there could be an issue with the charging port you replaced; however I put that at a somewhat low probability as it wouldn't affect the wireless charging. You could try unplugging the lighting flex cable and see if the wireless charging works under those circumstances to try and rule that out as the cause.
+
Give some or all of those suggestions a try then come back and let us know what you find. After that we can see if we can figure out what your next step should be.
The answer to the question, "Is there a software lock on charging aftermarket batteries?" is a qualified no. After the iPhone X, Apple started pairing batteries with phones, including the X, XS Max, XR and later models. Which means changing the battery, whether genuine Apple or aftermarket, means you get a "non-genuine" parts warning and you lose the ability to view battery health information.
However, to the best of our knowledge, none of that prevents the battery from working correctly. It's our understanding that even with the warning and the loss of information the batteries still charge and power the phone just as they always did. So as tempting as it is to blame Apple's pairing policies, in your case I'd suggest looking for a hardware issue.
First thing to do is unplug the battery and check the motherboard connector for any bent, broken or missing pins. Normally I'd tell you to check the connector on the battery's flex cable as well, but having tried two different batteries that's not necessary since it's highly unlikely they'd both be broken in exactly the same way. Use a magnifying glass and a bright light and take a good look.
Anyway, next step is to clean everything with 90% or higher concentration of isopropyl (rubbing) alcohol.
Finally, check the components mounted on the board surrounding the battery connector; it's not unheard of for components to get knocked off in the process of trying to fit the battery plug into the socket.
As a last resort, let me check with you: were the two batteries you tried both from the same manufacturer? It's possible the particular battery you got for some reason just isn't compatible with your phone. If nothing else helps, it might be worthwhile to just go on a random AliExpress or eBay seller and pick up a different battery; heck, you could even get one from here on iFixit - at least you'd know for sure you're getting a quality battery with a guarantee.
Give some or all of those suggestions a try then come back and let us know what you find. After that we can see if we can figure out what your next step should be.