Post

Replies

Boosts

Views

Activity

Reply to LocalNotifications not working properly
I think what’s happening here is that you are using the same requestIdentifier for each UNNotificationRequest created in your function. Regardless of what date you pass in, you will be replacing any previously scheduled notification on that device with a new notification each time. See Apple’s documentation:  “If you use the same identifier when scheduling a new notification, the system removes the previously scheduled notification with that identifier and replaces it with the new one.” https://developer.apple.com/documentation/usernotifications/unnotificationrequest/1649634-identifier You could use the notificationID value you generated earlier in the function like this: let request = UNNotificationRequest(identifier: notificationID, content: content, trigger: trigger) However,  if you want to give users the functionality to update/replace or cancel a previously scheduled notification, you should generate this notificationID outside your function and store it somewhere. To cancel a notification,  use the removePendingNotificationRequestsWithIdentifiers function call.  Hope this helps,bvsdev
Sep ’20
Reply to How to configure Spatial Audio on a Video Material?, Compile error.
Hello, We have SpatialAudioComponent set on the sphere to play audio when certain Entities within the sphere are tapped. That part works great. However, when we switch out the image material on the sphere with a VideoMaterial, the spatial sound doesn't appear to be enabled. The volume actually decreases. Is there some meta data we are missing somewhere to spatially play the audio in the video? Thank you! bvsdev
Topic: Spatial Computing SubTopic: General Tags:
Jul ’25
Reply to visionOS: Unable to programmatically close child WindowGroup when parent window closes
Hello, You could try making use of scene phases to alert the app when the parent window is being closed. See https://developer.apple.com/documentation/swiftui/scenephase Unfortunately, this approach doesn't work for us consistently in Immersive Space. In Vision 26, we have some additional tools available. Check out .restorationBehavior and .defaultLaunchBehavior described in this document. https://developer.apple.com/documentation/visionos/adopting-best-practices-for-scene-restoration/ Good luck!
Topic: Spatial Computing SubTopic: General Tags:
Aug ’25