Not just "factory".
For me it is a matter of being prone to break anything I touch (so guns tend to go back to the factory for repairs of all sorts). The owner's manuals do tend to advise you use factory ammo / saami-certified, and may advise against aluminum / steel case, no reman or reload, no +P+. Some, like HK, will tell you the warranty is effectively voided by certain ammo. It is up to you. If the gun has a failure, and you have to send it back, you will probably be asked what ammo was in use, and the answer may determine if they handle it as warranty, or expect you to pay.
I have settled on a few types of ammo that meet the specs of all the manufacturers, and actually work in the guns I have, so that I don't have to worry about being caught with a gun / ammo combo that doesn't work.
Good example - my EMP 9 will not run ZQI Nato rounds due to the very hard primers. Every other gun down to the Shield run it without issue. The EMP 9 may get sold, depends on how long those cases of ZQI last. It has been back to SA twice, they say it is in spec, and they don't like ZQI. Oh well ....