It seems like a basic operation that any developer whose app uses location information would need to perform. However, after searching for some time, I have been unable to find an answer to this question that actually works.
App Review is currently refusing to approve distribution of my Mac Catalyst apps because they request access to location information, but no 'usage description' is displayed in the prompt.
These are Catalyst apps which, by Apple's official guidance, rely on the Info.plist keys defined for the iOS version of the app. For some reason the usage description (sometimes) isn't being displayed, despite the presence of the proper keys in the Info.plist and App Review has rejected the app.
For my own testing, I have found it difficult to know when that prompt will even be presented and how to reset it to ensure that it will be presented. On top of that, the usage description sometimes appears and sometimes doesn't.
I would really appreciate some help, just to reset the location permission prompt so I can even do some consistent meaningful testing! At this point, this whole things looks like Apple rejecting my apps because of their own software's failures, but how do I get to the root of it if I can't even test it?
And, Apple apparently won't allow me to include URL's in this post that link to the suggested solutions I have already tried. Nice.
Thanks.
Post
Replies
Boosts
Views
Activity
The problem is this:When dragging a Catalyst app window between retina and non-retina displays on a Mac, my views are often drawn correctly (proper scaling).However, sometimes the scaling is wrong when dragging between the displays and it stays wrong when the window dragging stops, or when the window is dragged again within the same display (some other user action must be taken to force a redraw of the affected views).None of traitCollectionDidChange: (traitCollection.displayScale), viewWillLayoutSubviews, or viewDidLayoutSubviews occurs late enough in the process (dragging between displays) to initiate a redraw of the view when the problem occurs.It seems that I need to know when the window is dragged.How can this be managed in a Mac Catalyst app?Thank you for any help.
When I call [UIDocumentInteractionController interactionControllerWithURL:] in a Mac Catalyst app, the follow message appears in the debugger console, after which an exception is thrown:[General] UIDocumentInteractionController not availableAccording to the documentation UIDocumentInteractionController and its interactionControllerWithURL class method are available in Mac Catalyst 13.0+. The code has been working just fine in iOS for a long time (and still works fine in iOS 13 on an iPad or iPhone).Has anyone else encountered this? What is the solution to make UIDocumentInteractionController work in the Mac app? Or, is the documentation incorrect and an alternative is needed?