Posts

Post not yet marked as solved
1 Replies
977 Views
I have in my application Broadcast Upload extension. In broadcastStarted method I would like to, check does user is logged into my app. I've found how to do it in Apple WWDC presentation, but this resolve not works. Application does not streaming, but status bar showing that App still streaming. Here is my code:override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) { // User has requested to start the broadcast. Setup info from the UI extension can be supplied but optional. let condition = false if(condition){ Uploader.startBroadcast(to: "demoChannel1") } else{ let userInfo = [NSLocalizedFailureReasonErrorKey: "Not Logged In"] let error = NSError(domain: "RPBroadcastErrorDomain", code: 401, userInfo: userInfo) super.finishBroadcastWithError(error) print("test") }In my console i can see output "test" so it goes in correct if condition. Thanks for any help
Posted Last updated
.