Posts

Post not yet marked as solved
2 Replies
910 Views
I use a WKWebView in the iOS and MacOS versions of my App. Both display the same HTML string (generated within the APP by the same shared class). The only difference in the HTML between iOS and MacOS is that on iOS this META is added to the head: meta name="viewport" content="initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, shrink-to-fit=NO, user-scalable=YES" On MacOS the DOM inspector reports the correct page size (size of the HTML) 1864x844 element. And javascript run in the WKWebView after the page is fully rendered reports the same size given by the DOM inspector via these: document.documentElement.scrollWidth document.documentElement.scrollHeight But, on iOS BOTH the DOM Inspector (looking at a device in debug mode) as well as the same javascript run in the WKWebView reports an incorrect size for the html element, 768x895 The size it reports appear to be the visible viewport and this is long after the page was fully rendered. This is presenting a real problem because I need to be able to get the correct page size via Javascript run IN the page via the WKWebView evaluateJavaScript function. Interestingly though the WKWebView scrollView's contentSize IS correct. Any thoughts on what the heck is going on and how to get the correct size or is this an iOS WKWebView bug?! I've posted the same question along with pictures over on StackOverflow. The pictures help: [Same Question With Illustrative Pictures showing problem HERE].(https://stackoverflow.com/questions/66772470/wkwebview-size-fo-html-element-is-inconsistent-between-ios-and-macos)
Posted
by cliffr.
Last updated
.
Post not yet marked as solved
0 Replies
316 Views
I have Mac Apps and iOS Apps that have been in the App store for over 7 years. At the moment they are entirely separate Apps and do not use Catalyst. Is it possible to use the Subscription service to offer an annual subscription that offers access to the Mac version and the iOS version of the same App?
Posted
by cliffr.
Last updated
.
Post marked as solved
1 Replies
538 Views
Can't enable the StoreKit test configuration file for a MacOS App. There is simply no dropdown from which to select it from in the Scheme Run Editor dialog? Am Running Xcode 12.0 Beta 5 on Catalina. This particular project is several years old and the MacOS App has been in the store for quite a while? To date I have been working in the latest version of Xcode 11. I followed the video and documentation steps to: Add a configuration file to the Project. Set test meta-data for several IAP non-consumables. But, when I try to enable the Configuration from Scheme Editor -> Run / Options there is NO Storekit Configuartion dropdown from which to select it. It is simply not there at all on the dialog?! Does the project have to be "converted" somehow to work with Xcode 12.
Posted
by cliffr.
Last updated
.