Posts

Post marked as solved
56 Replies
I'm very new to learning to code with Swift and develop for iOS (and coding in general), but I am having issues with this as well, as this seems to be preventing simple scheduled local notifications from appearing if I put an app in the background.I'm in the process of learning to use User Notifications and was doing this very simple tutorial on IOSCreator.com. The simple gist of this tutorial is a Single View app with a single button that, when pressed, schedules a notification to appear with the defined content after 10 seconds. There is nothing in that which customizes the app lifecycle methods in AppDelegate or SceneDelegate. There is nothing about implementing any kinds of background tasks (which presumably weren't needed in previous versions of iOS, though I don't see how/why they'd be needed now). However, when you run the app, press the button, and go to the home screen, the same message appears in the debugger console, and the notification never appears, neither in the simulator nor on my iPhone running iOS 13.0. Also, as frnkwk said in their original post, I can confirm that this message appears even on a blank Single View App template. I put print() calls in each of the AppDelegate and SceneDelegate methods so I could get a feel for the app lifecycle, and sure enough the message appears right after sceneDidEnterBackground() is called.Is this a bug? Or do I need to be doing something very different in iOS 13 in order to make a simple notification appear after returning to the homescreen from an app?Any help would be most appreciated. ๐Ÿ™‚
Post not yet marked as solved
13 Replies
Confirmed. This bug no longer seems to occur in the Xcode 11 beta. Thanks.I guess this question is a little off topic, but not worth a new thread: I'm very new to programming and stuff, as indicated by the fact that I'm working my way through the "App Development with Swift" iBook; apart from the normal caveat of "It's a beta, so there may be bugs", should I have any worries about using XCode 11 beta as I continue to work through the course (i.e. things working differently so perhaps following examples in the book won't work; I've already run into small examples of this due the book not being completely updated regarding some changes between Swift 3 and Swift 4)? Or should I be pretty much fine for the most part?Anyway, thank you for your attention in the matter of the annoying scrolling while typing bug; glad to see it has been fixed for XCode 11. Cheers. ๐Ÿ™‚
Post not yet marked as solved
13 Replies
Yikes! Sorry I haven't been paying much attention to this thread since I posted it. I thought I'd receive some kind of notification when replies were posted. ๐Ÿ˜ŸBig thank you to paul2000 for coming in and responding with the same problem. Cheers! ๐Ÿ™‚