I’ve tried following chapter 8 and everything was going smoothly until I reached Foreground notifications section (p. 90 in ver. 0.2) – basically, I can’t get them to work. I’m using Xcode 8 beta 6 and neither on my iPhone 5 with iOS 10 beta 7 as well as iPhone SE simulator notifications don’t show up when and app is still in foreground.
What is interesting is that I get a warning in the UNUserNotificationCenterDelegate method saying:
Based upon the info from adrianziobro above I have been able to “fix” this. The method signature for the notification delegate method is no longer valid in the current version of Xcode. Change the method signature to the one below and the method fires as desired. Thanks adrianziobor for steering me in the correct direction. The new signature is the one documented in the preliminary docs.
Here’s the working(as of Xcode beta 6 and iOS 10 beta 8) method header:
Actually, it is not the use of “internal” that makes it work, but the @escaping that is required which is what you were saying. Thanks!
Another issue:
When I add the ContentExtension sample code and run the finished example, dragging the banner results in a very large cactus image filling the full window. Any thoughts? Have you done this part of the tutorial?
I’ve worked through the code twice – same result.