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)

Answered by scurra in 691762022

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 .

Accepted Answer

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 .

onOpenURL not called on iOS 15
 
 
Q