How to test Smart App Banner Urls on in Dev environment

后端 未结 4 1576
独厮守ぢ
独厮守ぢ 2020-12-29 05:43

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

相关标签:
4条回答
  • 2020-12-29 06:18

    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.

    0 讨论(0)
  • 2020-12-29 06:27

    This is a hassle, but what we did is add some logging messages and submit the build for Apple review marked for manual release. When the app is approved, issue a promo code for the unreleased version. Redeem the promo and that will install the unreleased version of the app. Go to safari and hit your web page with the meta tags to display Smart App Banners. Should launch your app and pass the URL. Then look at the console for your log messages.

    0 讨论(0)
  • 2020-12-29 06:28

    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://

    0 讨论(0)
  • 2020-12-29 06:35

    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.

    0 讨论(0)
提交回复
热议问题