onOpenURL not called on iOS 15

I have a widget that opens my app via a custom url scheme (myapp:some-deep-link). In my app I have a handler setup like so:

var body: some Scene {
        WindowGroup {
            
            ContentView()
            .onOpenURL(perform: { url in
               //my code
            }
         }
     }  

In iOS 14 this works perfectly, in iOS 15 (Simulator & iPhone 13 Pro) onOpenURL is not called at all. The app launches, but there is no call.

Any ideas? (Filed as FB9657924)

Accepted Reply

This was related to a "hack" to be able to change the status bar color. See here https://stackoverflow.com/questions/69280813/onopenurl-not-called-on-ios-15-simulator-swiftui .

Replies

This was related to a "hack" to be able to change the status bar color. See here https://stackoverflow.com/questions/69280813/onopenurl-not-called-on-ios-15-simulator-swiftui .