I have the Stack Overflow app (and the Stack Exchange app) installed on an iPhone. When I
- view a SE page of one of my communities other than Stack Overflow in the mobile web browser (Safari), and
- click on an item in the "Inbox" or "Achievements" popup which refers to a Stack Overflow posting
then the corresponding comment/posting is opened in the Stack Overflow app and not in the web browser.
On the other hand, if I do the same from a Stack Overflow page in the mobile web browser then the corresponding comment/posting is opened within the web browser.
I think that links in the web browser should also be opened in the web browser. That the behaviour is different depending on from which community the link is clicked makes no sense (to me).