I’ve been using Linkshare links in my apps for a while now. It works fine.
I implemented the Apple’s suggestion to absorb any redirects and call the last URL.
For those looking for it, HERE IT IS.
I have a UIButton linked to a method that calls this:
[self openReferralURL:[NSURL URLWithString:link]];
where link is a NSString with the following value (my Linkshare link)
This works fine. When I tap the button, it immediately launch App Store App without opening Safari first.
But when I change the link to the GeoRiot link below, it opens up Safari first, and then only open the App Store. I can’t think of any reason why it is doing that.
Anyone can help? Can you share your geotarget link for comparison with mine?
Anyway, I have 1 UIWebview that opens up a webpage with Geotarget links, and that
works fine (ie. directly opens the App Store App).
I’m out of idea right now. I think the problem may lie in the GeoRiot link, but I have
no idea why or what I should do since with the Linkshare link it works fine.
I’ve been asking questions and answering them a lot these days, but for Andrea, here goes:
For those of you who are using georiot links, these methods/functions will work
well instead of the Apple Sample code.
And to use, just call:
Probably you should also use a URL shortener tool to clean up the long URL mess, but either way it works ok.