Hello, I've added the tutorial's swift code to my project but there's and error related to this row: PushNotificationManager.pushManager().delegate = self The error is "Cannot assign a value of type 'AppDelegate' to a value of type 'protocol<nsobjectprotocol, pushnotificationdelegate="">!' Beside the code of my functioning app, I didn't add anything else beside the code in the tutorial page. The error has been encountered by another user, but given the fact that his question wasn't really explaining everything, that's it.

asked 02 Oct '15, 12:36
Smarambas's gravatar image


Quite simple solution, you just need to add PushNotificationDelegate to the class declaration

permanent link
answered 02 Oct '15, 14:30
Smarambas's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 02 Oct '15, 12:36

question was seen: 1,024 times

last updated: 02 Oct '15, 14:30