How to test Smart App Banner Urls on in Dev enviro

2019-02-04 05:35发布

I'm wondering if it's possible to test iOS 6's smart app banners' app-argument URL parameter on dev builds of an iOS app. It appears the Open option in the banner only appears if the application is downloaded from the App Store.

3条回答
Explosion°爆炸
2楼-- · 2019-02-04 06:01

What worked for me was to download my application from the appstore, and then overwrite it using a build from XCode. This worked and allowed me to debug the smart banner feature using my current build. This won't work from the simulator, you need to use a device.

Just to be clear, you must overwrite it. You can't delete the appstore version, and then build from XCode.

查看更多
够拽才男人
3楼-- · 2019-02-04 06:12

As of now, Xcode 8 and iOS 10, I have tried all the methods but Cannot Debug the smart banners URL that is being opened, as it needs the store versions of the application.

I have found a workaround of this, and have tested my application using this.

Apart from the <meta ...> tag I have also added a link button on the page that uses the scheme to open the app.

<!doctype html>
<html>
  <head>
    <meta name="apple-itunes-app" content="app-id=xxxx,pt=xxxxx,ct=xxxxx,app-argument=myappscheme://www.mymobilesite.com/link/detailpage?query=x">
    <title>Banner Debug Sample</title>
  </head>
  <body>
    <p>Visit <a href="myappscheme://www.mymobilesite.com/link/detailpage?query=x">App Using Scheme</a>.</p>
  </body>
</html>

With this link I can debug the Dev builds and works well.

Though this only works when the app has registered a scheme for itself, but just for testing we can register a dummy scheme say appscheme:// and replace http:// scheme with dummy scheme, test it, and then revert links from app scheme:// to http://

查看更多
啃猪蹄的小仙女
4楼-- · 2019-02-04 06:19

The following worked for me using an iOS 6 device, because it didn't work with iOS 8.

I installed the app from the AppStore and then overwrite it with a dev build using Xcode 6.

查看更多
登录 后发表回答