# Errata for Push Notifications by Tutorials, 3rd ed

**URL:** <https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049>\
**Category:** Push Notifications by Tutorials\
**Created:** [January 13, 2021, 4:11pm UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049 "2021-01-13T16:11:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mandafrederick](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mandafrederick/32/102369_2.png) [@mandafrederick](https://forums.kodeco.com/u/mandafrederick)\
**Post date:** [January 13, 2021, 4:11pm UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/1 "2021-01-13T16:11:50Z")

</div>

Creating this topic to catch any typos and bugs in the 3rd Edition of Push Notifications by Tutorials.

---

<div class="post-metadata">

**Author:** ![mandafrederick](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mandafrederick/32/102369_2.png) [@mandafrederick](https://forums.kodeco.com/u/mandafrederick)\
**Post date:** [January 13, 2021, 4:12pm UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/2 "2021-01-13T16:12:02Z")

</div>

Pinned on January 13, 2021, 4:12pm UTC



---

<div class="post-metadata">

**Author:** ![swiftlearnerforlife](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/swiftlearnerforlife/32/110937_2.png) [@swiftlearnerforlife](https://forums.kodeco.com/u/swiftlearnerforlife)\
**Post date:** [January 14, 2021, 7:23pm UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/3 "2021-01-14T19:23:34Z")

</div>

Really looking forward to this! do you have an ETA?

---

<div class="post-metadata">

**Author:** ![gargoyle](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gargoyle/32/107285_2.png) [@gargoyle](https://forums.kodeco.com/u/gargoyle)\
**Post date:** [January 14, 2021, 8:24pm UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/4 "2021-01-14T20:24:04Z")

</div>

If I said anything other than “very very soon” @mandafrederick would hunt me down and hurt me, so…very very soon :]

---

<div class="post-metadata">

**Author:** ![mrtajo](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mrtajo/32/82339_2.png) [@mrtajo](https://forums.kodeco.com/u/mrtajo)\
**Post date:** [February 16, 2021, 3:30am UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/5 "2021-02-16T03:30:58Z")

</div>

I found an error in the example code.

Chapter 7: Expanding the Application  
See AppDelegate.swift in the Sending the token section.

```
guard let url = URL(string: "http://192.168.1.1:8080/api/token") else {
  fatalError("Invalid URL string")
}

```

I think it should be fixed as follows.

```
guard let url = URL(string: "http://192.168.1.1:8080/token") else {
  fatalError("Invalid URL string")
}

```

---

<div class="post-metadata">

**Author:** ![gargoyle](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gargoyle/32/107285_2.png) [@gargoyle](https://forums.kodeco.com/u/gargoyle)\
**Post date:** [February 17, 2021, 10:11pm UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/6 "2021-02-17T22:11:12Z")

</div>

The code in the book (I think that’s what you’re referring to) is correct. In Chapter 6, when creating the TokenController, you setup the routes like so:

```
func boot(router: Router) throws {
  let routes = router.grouped("api", "token")
  routes.post(Token.self, use: storeToken)
  routes.delete(String.parameter, use: removeToken)
}

```

meaning you POST to …/api/token

---

<div class="post-metadata">

**Author:** ![urijan44](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/urijan44/32/105896_2.png) [@urijan44](https://forums.kodeco.com/u/urijan44)\
**Post date:** [December 17, 2021, 4:25pm UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/7 "2021-12-17T16:25:03Z")

</div>

I think I found a typo.  
In Ch8.2 Tapping the notification, “Then, set the property inside userNotificationCenter(_:willPresent:withCompletionHandler) by replacing the // Perform actions here comment with the following code" "userNotificationCenter(_:willPresent:withCompletionHandler)” I think it should be “userNotificationCenter(\_:didReceive:withCompletionHandler:)”

---

<div class="post-metadata">

**Author:** ![gargoyle](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gargoyle/32/107285_2.png) [@gargoyle](https://forums.kodeco.com/u/gargoyle)\
**Post date:** [December 17, 2021, 8:52pm UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/8 "2021-12-17T20:52:00Z")

</div>

You’re correct, thanks. I’ve fixed the text for the next release.

---

<div class="post-metadata">

**Author:** ![jellodiil](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jellodiil/32/109742_2.png) [@jellodiil](https://forums.kodeco.com/u/jellodiil)\
**Post date:** [September 7, 2022, 12:00am UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/9 "2022-09-07T00:00:15Z")

</div>

Closed on September 7, 2022, 12:00am UTC

This topic was automatically closed after 7 days. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![jellodiil](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jellodiil/32/109742_2.png) [@jellodiil](https://forums.kodeco.com/u/jellodiil)\
**Post date:** [September 7, 2022, 10:20am UTC](https://forums.kodeco.com/t/errata-for-push-notifications-by-tutorials-3rd-ed/130049/10 "2022-09-07T10:20:34Z")

</div>

Unpinned on September 7, 2022, 10:20am UTC


