From the course: iOS Development: Security
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Adding the missing purpose string - iOS Tutorial
From the course: iOS Development: Security
Adding the missing purpose string
- [Instructor] Now, let's switch to the project navigator. First let's stop the simulation. And here I'm going to select the app. So let's fix the issue by adding the missing Oracle string. We need to add the NSHealthShareUsageDescription to the apps info.plist as instructed in the console. So let's copy the string. And now I'm going to switch to the app, created the info tab, and let's add a new key. And the key has been translated instantly to this description. Now I also need to add a required description. How about the app needs to access step count data to display statistics. Now, I run the app again. And here's what we got. After enabling steps switch, we can hit the allow button. The system allows the app to receive the step count. Users may also decide to press the don't allow button. If that happens, they won't be prompted again when using the app. Upcoming calls to request permission returns success and the error will be nil. However, all attempts to retrieve the step count…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Purpose strings2m 7s
-
(Locked)
Request authorization for system features4m 7s
-
(Locked)
Adding the missing purpose string1m 34s
-
Exposing sensitive data through copying and pasting2m 16s
-
(Locked)
The pasteboard spy app2m 24s
-
(Locked)
Prevent pasteboard leakage without coding1m 11s
-
(Locked)
Prevent pasteboard leakage with coding2m 11s
-
(Locked)
Using an app-specific pasteboard5m 33s
-
(Locked)
Data leakage through app screenshots2m 16s
-
(Locked)
Clearing data before moving to the background3m 7s
-
(Locked)
Obscuring the snapshot before moving to the background3m 30s
-
(Locked)
Hacking the UserDefaults4m 40s
-
(Locked)
-
-
-
-
-