I am building a business app and would like to do the following:
-
Like us on Facebook: should open their FB page in the Facebook app
-
Follow us on Twitter: should open their twitter profile page in the twitter app
-
Get directions to the store: should open the map app (or Google maps app) with directions to pre-filled store location
I have found drips and drabs on how to do some of this (mainly the FB one although it crashes the FB app when I try it). I also read in another forum post that the URL schemes with system.openURL() is broken in iOS9 (https://forums.coronalabs.com/topic/59503-changes-to-calling-url-schemes-via-systemopenurl-under-ios9/?hl=%2Bopen+%2Bother+%2Bapps).
I can currently just open each link in the web browser but this doesn’t give the “cool factor” of opening the different apps.
Can anyone provide the answer on how to do each one? And will it still work under iOS9?
Thanks!