title: How to get the default iOS browser name?
body: <p>The Stack Overflow app detects the name of my jailbrokenly-set default browser (Chrome). How can I achieve the same thing in objective-c and swift? </p>
  
  <p>(Just the name, not the ActivityView code)</p>
  
  <p>Example:</p>
  
  <p><img src="https://i.stack.imgur.com/s7No5m.jpg" alt="chrome"></p>
  
  <hr>
  
  <p><strong>Update:</strong> I went into Settings > Stack Exchange and found this:</p>
  
  <p><img src="https://i.stack.imgur.com/LktnHm.jpg" alt="settings"></p>
  
  <p>It looks like the app defaults to Safari, but <strong>iff</strong> Chrome is installed then links will be sent to that browser. Chrome is most likely detected by the <code>canOpenUrl</code> method described in the answer below. </p>