I keep getting a " No SIM Inserted" message on my S4, I have replaced the SIM card a few times but it keeps happening no matter which ROM I'm on. It usually goes away after a battery pull.

I am aware that this might be a hardware issue but still would like to see if any one here can suggest fix

Sent from my SGH-M919 using XDA Premium 4 mobile app

If it was my phone I would start off fresh and clean.
Go into the phone's settings under "accounts" and click on "backup and reset"
from there click on "Factory data reset".

After doing that the phone will boot normally but it will be a clean boot without any
of the playstore apps, without your gmail account and so on, if it had a custom rom
flashed (using cwm/twrp) it will still have the same rom in it but without any extra's
which the custom rom or you might have added.

Check out the sim card issue, see if it still has the problem.
If not then you can start all over again installing stuff from playstore. etc.

If it still has the sim card issue what I would do is find/download and
Odin flash the stock specific official firmware for the phone.

That way your phone will or should be working just like the day you
first got it unless you actually do have a hardware issue.

Always be sure to make a nandroid backup of your rom before doing anything else.

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?