iOS App Store Pass Parameters in Store Download Link

試著忘記壹切 提交于 2019-11-28 16:05:29

This is now easier with the coming iOS 9, because cookies can be shared between Safari and the in-app Safari View Controller! Simply keep a cookie in the browser and track the last link clicked on. Then when the user opens your app, open up an invisible Safari View Controller in the background while you show a spinner. As soon as you can inspect the cookie and see the last link clicked, you can stop the spinner--it should be a very fast operation.

We offer this for no cost at Branch, where we've had a customizable web banner for some time. Now we're excited to incorporate the Safari View Controller into our open-source SDK! We also have a version of digital fingerprinting that allows you to do the same on pre-iOS 9 devices. We use IP address, OS, OS version and more to compare a click in a browser to an open in an app. This approach has pros and cons.. happy to go into further detail if you're interested.

user2096580

See a solution at: How to make ios App Store link with parameters?

Essentially this post tells you that you can pass a url parameter to the iOS App Store for iOS 6.0 and later using smart banners (http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html), and this parameter will be passed on to your app and received in the application:openURL:sourceApplication:annotation: method in your app delegate (which you must implement).

You can pass a parameter to the app via Smart App Banner once the app is installed.

So I suggest providing one link to install the app, then a second link to a page with a Smart App Banner to pass the parameter.

This is a kluge, but it's the only way to do it in iOS. (iTunes store is a black box, whereas Play store passes Android params).

Now with iOS8, you can pass provider id and campaign id into the app store link as parameters: http://www.applift.com/blog/new-era-attribution-analytics.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!