If you are not using a jailbroken iOS device that received its own web server, the localhost URL will not work. I suspect that your link to localhost works in Safari on your Mac because it runs a web server serving files.
You need to specify the IP address for Mac in your link, for example
<a href="itms-services://?action=download-manifest&url=http://192.168.0.100:8888/hockey/hockey/appname_type/info.plist">Click here to donwnload</a></br>';
but replace 192.168.0.100 with the IP address of your Mac.
Please note that this will not work in the simulator, since you cannot install applications through itms-services
source share