Re: iOS 13.x User Agent Shows iPad as Macintosh

2020-03-07 Thread Ronald Rosell via 4D_Tech
Hi Tom, If your code is assessing the userAgent in the On Web Connection database method then you’d have an issue, because the code I provided relies upon testing the browser’s ability to create a TouchEvent. 4D wouldn’t have a way to test that directly, but the browser can report its results

Re: iOS 13.x User Agent Shows iPad as Macintosh

2020-03-07 Thread Chip Scheide via 4D_Tech
> > As always, I recommend a pot of coffee and suitable mood music before > starting. Metallica, Pantera, Rob Zombie come to mind... :) Chip Hell is other people Jean-Paul Sartre ** 4D Internet Users Group (

Re: iOS 13.x User Agent Shows iPad as Macintosh

2020-03-07 Thread Tom Benedict via 4D_Tech
Hmmm.. I’m not very web savvy so I’m not quite understanding how this works. In our app, when a user enters a URL in their browser, code in the On Web Connection database method in our app parses the HTTP header and gets the UserAgent value, then it serves either a desktop or a mobile html page.

Re: Another Signing/Notarization Question

2020-03-07 Thread Keisuke Miyako via 4D_Tech
Hello, in your posts, you say that you "tried to codesign the file as part of the app’s signing process, but haven’t had any luck with that" and that you've "tried several variations of signing the file, but haven’t had any luck." but you do not describe at all, what you did that did not wor

Re: iOS 13.x User Agent Shows iPad as Macintosh

2020-03-07 Thread Ronald Rosell via 4D_Tech
Hi Tom, Only necessary on web pages that need to differentiate between iOS and other operating systems/browsers. (Keep in mind, there are other mobile browsers out there … Chrome on Android, for example. So you shouldn’t be using iPad/iPhone detection code just to determine if you’re working

Re: iOS 13.x User Agent Shows iPad as Macintosh

2020-03-07 Thread Tom Benedict via 4D_Tech
Thanks Ron. That looks like Javascript code. Do I need to add this to all my web pages? Tom > On Mar 7, 2020, at 13:32, Ronald Rosell via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Tom, > > Here’s how we handled it. Basically it does a userAgent text, but follows > that up with an addition

Re: JSON File To Object

2020-03-07 Thread Kirk Brooks via 4D_Tech
Steve, $text:=Document to text() $obj:=JSON Parse($text) On Sat, Mar 7, 2020 at 1:43 PM Stephen J. Orth via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I'm having a brain-fart and looking for the fastest way to get a JSON > formatted document imported and put into an object. > > Any insight would be

JSON File To Object

2020-03-07 Thread Stephen J. Orth via 4D_Tech
I'm having a brain-fart and looking for the fastest way to get a JSON formatted document imported and put into an object. Any insight would be appreciated! Best, Steve * Stephen J. Orth The Aquila G

Re: iOS 13.x User Agent Shows iPad as Macintosh

2020-03-07 Thread Ronald Rosell via 4D_Tech
… does a userAgent test* (oops), then checks for TouchEvent. In any event, modifying our browser detection code this way solved the problem for us. The !window.MSStream is in there because Microsoft injected “iPhone" into IE11’s user agent on Windows Phone. (Does anyone use Windows Phone?) Not

Re: iOS 13.x User Agent Shows iPad as Macintosh

2020-03-07 Thread Ronald Rosell via 4D_Tech
Tom, Here’s how we handled it. Basically it does a userAgent text, but follows that up with an additional check for creating a TouchEvent if the userAgent includes “Macintosh”, as it will if iOS is emulating Safari on a Mac. This may fail when touchscreen Macs appear, but for now it does the t

Re: Another Signing/Notarization Question

2020-03-07 Thread Cannon Smith via 4D_Tech
Hi Jim, Thanks for the ideas. I tried to codesign the file as part of the app’s signing process, but haven’t had any luck with that working. The alias idea is intriguing. I’m going to look into that. Thanks. -- Cannon Smith Synergy Farm Solutions Inc. > On Mar 7, 2020, at 8:17 AM, James Cra

Re: Another Signing/Notarization Question

2020-03-07 Thread James Crate via 4D_Tech
On Mar 6, 2020, at 5:24 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Thanks to Miyako and Rob Laveaux updating some plugins I use, and other help, > I now have all but one of my applications notarizing again since the recent > Apple changes. The problem with the last applicati