The real precedent for this is the removal of the drone strikes tracker app on the grounds that it was "political".
https://tech.yahoo.com/general/articles/apple-finally-approv...Which predates Trump and was happening under the Obama presidency. The real lesson there is that the application of the Jack Bauer principle ("good guys" are allowed to freely torture and murder "bad guys" without legal process) would eventually leak back into the mainland US. The same excuse - the concept that foreigners do not have rights - enables ICE to be incredibly abusive. And of course citizenship then becomes something that can be taken away by such a trivial matter as a cop deciding to throw away your ID. You might be able to prove you're a citizen if you had due process, but now you're a noncitizen you're not entitled to that.