In the question you link to the code opens a link:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.myApp.com/appInstalled"]];
This opens Safari at a specified page on your server. The only thing that page does is to set a cookie and then redirect back to your app (using the custom URL scheme). This needs to be done by the webpage that is loaded (so using the returned headers & HTML).
The purpose of this is to store the cookie in Safari (that is where it would be required in the future - and it should have an expiry date far in the future). I don't think you can store the cookie in Safari from the app (sandboxing).
You will see a switch to Safari, but it should switch back to your app almost immediately.
You should be able to redirect with javascript in the returned HTML page:
<script type="text/javascript">
<!--
window.location = "gameswap://?d"
//-->
</script>
or with HTML (in the section):
<meta http-equiv="refresh" content="0; url=gameswap://?d" />