Hey.

It’s quite an easy task for me to come up with, but simple, the main thing is to figure it out. The point is this: There is a ready-site-SPA and there is a ready-made mobile application on iOS. When you first enter the SPA site through iOS devices, you need to draw something like this plate with an icon and a link to the mobile app in the app:

example screen

How it's done? I assume that you just need to define the client through window.navigator and load this piece of layout, if the first login, or does the app store have any APIs through which it can be automatically configured? Thank.

    1 answer 1

    You need to refer to the help and use the following meta

     <meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL"> 
    • app-id : ( Required. ) The unique identifier for your application. To find the app ID in iTunes Link Maker , enter the application name in the search field, and select the desired country and media type. In the results, find your application and select the iPhone App Link in the column on the right. Your app ID is a nine-digit number between id and ? Mt.
    • affiliate-data : ( Optional. ) Your affiliate line in iTunes , if you are an iTunes partner. If not, see the http://www.apple.com/itunes/affiliates/ partnership for more details.
    • app-argument : ( Optional. ) A URL that adds context to your native application. If you add this and the user has already installed the application, he can move from the website, immediately to the corresponding position in the application.

    Important: You cannot display the Smart App Banners inside the frame . Also, banners are not available in iOS Simulator .