title: Ionic 4+ Capacitor Angular: How to write platform-specific ts-code for ios and android?
body: <p>How to write platform-specific code in the ts-file? So code that is only valid for ios and code that is only valid for android? How can I determine whether the device runs ios or android as operating system?</p>
  
  <p>I use Ionic 4+ with Capacitor and Angular. </p>
  
  <p>Many thanks in advance!</p>