App Store app not available in your country or region when accessed from Swift

I have a Swift 5.0 iOS app in Xcode 13 targeting iOS 14 where I try to access the Google Photoscan app programmatically using the following code running on an iPhone 8 with iOS 16

let photoScanURLString1 = "https://apps.apple.com/au/app/photoscan-by-google-photos/id116552994"
            UIApplication.shared.open(NSURL(string:photoScanURLString1)! as URL)

This takes me to the App Store and shows the message "This app is currently not available in your region or country", which is en-AU, but does not go to the App page and let me download. The same behaviour is observed if I enter the URL photoScanURLString1 into Safari on the iPhone.

However, if I click the URL in a mail message I can download the app, and if I search for Google Photoscan in the App Store app I can download it OK.

How can I download the app from the App Store programmatically without changing my region in the iPhone settings?

Replies

id code was missing a digit - works OK