In the latest Google SEO office hours session, Gary Illyes answered how Google decides when to show links in Google Search to a company’s mobile app. The short answer is deep linking; if Google can find there is an official app for that company or product, it will find it through deep linking and associate that to your knowledge graph.