Once the app is configured, the real work begins—AWS's work. The UI is included in the frameworks and specifically in the AWSAuthUI CocoaPod. This allows you to use static calls to determine if a user is logged in. If they aren't, you can present the UI for them to create an account and log in.
- [Instructor] So we've gotten a ton done now,…but fortunately, Amplify has done a lot of the work.…File formation, S3 Bucket, IAM roles,…cognito user pools,…but we haven't had to do very much.…Now we're going to start focusing…on our app a little more,…to provide the UI for users…to create accounts and log in.…That's not going to be very much work either,…but it starts in the ThoughtsTVC.swift files,…so open that up,…and after line 10, we need to import…POP file that we installed, AWSMobileClient.…
This is going to allow us to display that UI,…and also check to see if users are logged in or not.…If we scroll down to line 49,…we can see this is where that class starts,…the ThoughtsTVC class.…It's a TableViewController that lists the thoughts.…For now, you can create thoughts,…but they're not stored anywhere,…we're getting to that,…but first we need a user account to tie them to.…So we'll scroll down to the viewDidAppear function,…in line 64, and add a new line at the end,…that we'll type in, checkSignIn().…That's a function that doesn't exist yet,…
- Preparing to use AppSync in code
- Updating settings and the schema
- Adding a second data source
- Storing posts online
- Updating subscriptions in schema
- Testing live updates
- Handling updated posts
- Offline capabilities
Skill Level Intermediate
1. AWS User Authentication
2. AppSync Setup
Amplify codegen3m 42s
3. App Code and Configuration
4. Adding a Second Datasource
5. Real-Time Updates
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.