Jump to content

Dave Nottage

Members
  • Content Count

    1650
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by Dave Nottage

  1. Dave Nottage

    How to solve Android Content labeling issue in FMX?

    At the moment you can safely ignore the warning. At present, there's no "out of the box" solution for it. See my comment on this SO post. For what it's worth, it appears Flutter developers have (or at least did have) the same issue.
  2. Dave Nottage

    osx dark mode 10.4.2

    Not sure if you are still using 10.4.2, or if this will compile in 10.4.2, but: function IsDarkMode: Boolean; var LStyle: string; LDefaults: NSUserDefaults; begin LDefaults := TNSUserDefaults.Wrap(TNSUserDefaults.OCClass.standardUserDefaults); LStyle := NSStrToStr(LDefaults.stringForKey(StrToNSStr('AppleInterfaceStyle'))); Result := False; if LStyle.Equals('Dark') then Result := True; end;
  3. Dave Nottage

    What new features would you like to see in Delphi 13?

    Just curious: what do you plan to do with CarPlay? Incidentally, I just updated the import for the framework in Kastri.
  4. Dave Nottage

    Google Signin Firebase for Store doesn't work

    That's odd, since I was sure it was not working on iOS when I last touched it. Is this using version v8.15.0 of the Firebase iOS SDK? It might be failing with later versions.
  5. Apparently it's because Indy does not have SSL bindings for encryption on iOS. See this issue. Perhaps @Remy Lebeau can comment.
  6. Why do you need to send push messages from an iOS device? It's a very bad idea to have private key info in an iOS app. In a web server (where messages should be sent from), the executable (and private key) is (or at least should not be) accessible externally. From here: https://github.com/firebase/firebase-ios-sdk/releases/download/CocoaPods-6.28.0/Firebase.zip ..but the code example above which sends messages does not require the iOS SDK, which is used for receiving messages.
  7. If they're actual issues, I'd rather them being reported here. I'm sure it's perfectly alright to ask questions in this forum, though.
  8. A follow-up to this: I have contacted their support team, who requested that I provide a video demonstrating the problem 🙄. I have since replied, asking them if they really are incapable of doing two simple steps (Using Windows: download, and try to open) to replicate it themselves.
  9. Both unzip OK on macOS, so I tried to "re-zip" the 11.2.0 version on Windows, but that causes Explorer to crash 😞 I've asked a question about it in their Slack workspace, since all the other reporting mechanisms don't seem to cover this category.
  10. There's this link at this page, however it might just be a redirect to the latest version (11.3.0) I notice a huge difference in size between 11.2.0 and 11.3.0 - 319MB vs 612MB!!
  11. Dave Nottage

    Devices not compatible GooglePlay

    What is the exact message from Play Store? Seems rather odd. Both of those ship with Android 12 - do they both have Android 12 now?
  12. See this documentation. Authorization is now via an OAuth2 token - there is a link in the documentation to details about methods for obtaining the token.
  13. Dave Nottage

    Shellexecute @ UBUNTU platform

    For anyone else coming across this link, it has moved to: https://chapmanworld.com/calling-linux-commands-from-delphi/
  14. Dave Nottage

    Problem using Kastri PDFControl

    It might help to show the code you're using.
  15. Dave Nottage

    Problem using Kastri PDFControl

    Sounds like you already worked that out? i.e. create the PDF control beforehand.
  16. Dave Nottage

    Anyone using Clever Components?

    Sergey pushed a change to this repo 2 months ago, so he was doing something. It's a shame if they're not responding to customers.
  17. This part will not even compile. TControl does not have a Handle property in FMX. Nor will this. setContentDescription takes a JCharSequence as the parameter. The main problem is that "non-native" FMX controls do not have an underlying native control, except when ControlType is Platform. Even then, there is no support for calling setContentDescription on that native control. This would require adding a ContentDescription property to TControl so that it can be passed to the underlying "native" controls. On top of this, only certain controls on Android support ControlType of Platform.
  18. Dave Nottage

    Mouse cursor

    The jar is not added to the search paths, it's added to the Libraries node of the Android 32-bit target, as per the demo readme. This is an image (which has been shortened, for brevity) of it: You don't add those paths. See above.
  19. Dave Nottage

    Mouse cursor

    It's definitely in the repo. https://github.com/DelphiWorlds/Kastri/blob/58569bee28f5ce3caf5ceef588a46d13c161ce62/Features/JavaScript/DW.JavaScript.pas#L20 Did you add DW.JavaScript to the uses clause, as per the demo?
  20. Dave Nottage

    Problem using Kastri PDFControl

    That now fails for me in Delphi 12.2 😞 Rollo's example, i.e.: TabControl1.SetActiveTabWithTransition(TabItem1, TTabTransition.Slide, TTabTransitionDirection.Normal); TThread.ForceQueue(nil, procedure begin FPDFControl.LoadPDF(LFileName); end); Works ok for me in Delphi 12.2
  21. Dave Nottage

    Mouse cursor

    The demo shows all the required folders in the Search path of Project Options. For that identifier you'd be missing the Features\JavaScript folder of Kastri
  22. Dave Nottage

    Mouse cursor

    I discovered what the problem is: The "default" TWebBrowser implementation for Android uses loadUrl: procedure TAndroidWebBrowserService.EvaluateJavaScript(const AJavaScript: string); begin FWebView.loadUrl(StringToJString('javascript:' + AJavaScript)); UpdateContentFromControl; end; Which I guess does not accept the JavaScript that I provided. In TWebBrowserExt, it uses the evaluateJavascript method: procedure TPlatformWebBrowserExt.ExecuteJavaScript(const AJavaScript: string; const AHandler: TJavaScriptResultProc); begin if FWebView <> nil then FWebView.evaluateJavascript(StringToJString(AJavaScript), CreateValueCallback(AHandler)) else AHandler(cJavaScriptNullResult, -1); end; Which does work. I've now added a demo to the HowTo repository, which uses TWebBrowserExt, and it works on Android (as well as iOS and macOS)
  23. Dave Nottage

    Mouse cursor

    It appears Android's WebView does not like part of the JavaScript (it works on macOS and iOS). I'm looking into it
  24. Dave Nottage

    Mouse cursor

    Not sure why it's not working for you - I'm using the same URL as in your example. I could put together a minimal test case to demonstrate it.
  25. Dave Nottage

    D12 TItemClickEvent undeclared identifier

    Please post a reproducible example.
×