I watched the wwdc video at: https://developer.apple.com/videos/play/wwdc2020/10110/ and at 9:30 of the video, it showed me an improved sample app where the notification doesn't immediately display, until the user triggered the feature later. However, the video didn't explain what changes were made to delay the notification. Sample app by wwdc is downloadable here: https://developer.apple.com/documentation/network/building_a_custom_peer-to-peer_protocol
Meanwhile, my current app does not access Bonjour services until later in the app, but the notification triggers upon launch. Does anyone know how to delay it, like the sample app does?