Normally you first create an account on the website. You then buy the Swiss Travel Pass. It will then automatically appear in the App if you log in with the same username/password.
If you did not do that just print out the Swiss Travel Pass e-ticket, and carry it with you. It is convenient to have it in the app, but not necessary.