Get the account linking status in your app
To display the correct Link versus Unlink button in your app, check for skill enablement and account linking status by making a Get account linking and skill status request to the Alexa Skill Enablement API.Example account linking status request
In this example, the app displays the account linking status using a UIViewController.- In your Xcode IDE, go to the main storyboard to add a new view controller. The storyboard ID for this view controller is “linkingStatusScreen”.
- Add a new Cocoa Touch class file, select a subclass of UIViewController, and connect your class file with the UIViewController in identity inspector.
- Add a header, a status UILabel to show the account linking status, a UIButton to close this page, and a UIActivityIndicatorView to show the loading animation while your app is calling the Alexa service.

