Post

Replies

Boosts

Views

Activity

Reply to didReceiveRemoteNotification not called in iOS 13.3 when app is in background
Try explicitly setting "content-available" to 1 (integer) (as noted by many others), leave out the alert key, AND the sound entry to an empty string. That made the difference for me, after a rather exhaustive diagnostic session. I was omitting the sound entry and it never worked. I tried setting a sound file name and it never worked. Setting it to an empty string ( "" ) worked fine when accompanied by content-available and omitting the alert key. Printing what I receive (as seen below with my various diagnostic print statements) showed: ["sound": , "content-available": 1, "badge": 0]         guard let aps = userInfo["aps"] as? [String: AnyObject] else {             print( "Incoming failed" )             completionHandler(.failed)             return         }         print( aps )         print( "INCOMING" )
Jan ’22
Reply to The compiler is unable to type-check this expression in reasonable time in Xcode 12 with SwiftUI
I'm getting this too trying to implement a UIViewControllerRepresentable wrapping around image picker. I had my own class / struct for that initially, but figured I messed something up, so I went and snagged a couple of examples from the 'net with the same results. I'm running Xcode 12.4 on Bit Sur 11.2.1 on an M1 mini. I thought I'd do this latest project in SwiftUI, but once again, I'm just feeling like it's not ready for prime time, and this is a show stopper for me; I'm ready to trash it and start over in .XIBs because I've done this same thing 100 times in .XIBs and storyboard with 100% no issues. I even stripped out all the view controller stuff in my ControllerReprestable and just went with a wrapping of a very generic UIViewController.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21