-
Content Count
1562 -
Joined
-
Last visited
-
Days Won
36
Everything posted by Dave Nottage
-
The community edition is 11.3, not 11.0 That's because the version number is 11.3. Please consider changing the topic of your post - it is completely misleading
-
On Android, for notifications to still work after a reboot, you would need to persist them in some way, and recreate them, *and* have the app start at boot. I have an example of how to have an app that starts at boot, here: https://github.com/DelphiWorlds/Kastri/tree/master/Demos/AndroidStartAtBoot This is a demo from Embarcadero of how to create/send notifications: https://github.com/Embarcadero/RADStudio11Demos/tree/main/Object Pascal/Mobile Snippets/Notifications/SendCancelNotification As discussed above, if you want to recreate the notification at device start you would also need to persist them somehow, e.g. using a database, or perhaps as JSON, read the data and recreate the notifications when the app starts. You would need to handle when a notification is received, so that you remove it from the persisted notifications. On iOS, as far as I know you are out of luck regarding recreating notifications at device start - there does not appear to be anyway for an app to handle this, without the user starting the app.
-
That old code has morphed into this: https://github.com/DelphiWorlds/Kastri/tree/master/Demos/Connectivity which no longer requires the separate static library. It should be able to be used in 10.4.1 (perhaps with changes if necessary)
-
The link is not published, but follows the same pattern as for 10.4.1, i.e.: http://altd.embarcadero.com/releases/studio/21.0/1/PAServer/2/PAServer21.0.pkg
-
Alternative solution to those posted so far: uses Winapi.WebView2; const cJavaScriptHideScrollbars = 'document.querySelector("body").style.overflow="scroll";var style=document.createElement("style");' + 'style.type="text/css";style.innerHTML="::-webkit-scrollbar{display:none}";document.getElementsByTagName("body")[0].appendChild(style)'; constructor TForm1.Create(AOwner: TComponent); var LWebView: ICoreWebView2; begin inherited; // The following *should* work, but this report was not completely fixed!: https://quality.embarcadero.com/browse/RSP-38165 if Supports(WebBrowser1, ICoreWebView2, LWebView) then LWebView.CallDevToolsProtocolMethod('Emulation.setScrollbarsHidden', '{"hidden":true}', nil); WebBrowser1.Navigate('https://www.embarcadero.com'); end; procedure TForm1.WebBrowser1DidFinishLoad(ASender: TObject); begin // This works for me, but the scrollbars do not disappear until the page is loaded WebBrowser1.EvaluateJavaScript(cJavaScriptHideScrollbars); end; This is when using EdgeIfAvailable or EdgeOnly for the WindowsEngine property
-
Can you post code that reproduces the issue? It'll save having to type out the code, and work out the cut off parts, if they're important.
-
android Send Email from Android with HTML message body
Dave Nottage replied to Tim Clover's topic in FMX
I have an import for it, here: https://github.com/DelphiWorlds/Kastri/blob/master/API/DW.Androidapi.JNI.Text.pas -
If you have code that is used to update the information in the overlays, try removing it temporarily, to see whether it's caused by the overlays themselves. If that improves the playback, you may want to consider executing the code in a separate thread, synchronize with the main thread when it is done, and update the overlays then.
-
Ask permission to read device notifications on android 13
Dave Nottage replied to Minox's topic in Cross-platform
Are you talking about the demo, or your own app? If your own app, did you follow the instructions in the readme? Either way, please indicate what version of Android you have on your device. -
Ask permission to read device notifications on android 13
Dave Nottage replied to Minox's topic in Cross-platform
I took a keen interest in this, so have put together a demo, here: https://github.com/DelphiWorlds/Kastri/tree/master/Demos/NotificationListenerService Please ensure that you read the readme, as it has information about how to configure a project of your own, should you use the code that the demo uses. -
Ask permission to read device notifications on android 13
Dave Nottage replied to Minox's topic in Cross-platform
Please provide a link to the documentation that led you this point, or at least examples in Java or Kotlin that achieve the same result -
Unable to execute '"C:\Program Files\Java\jdk-17.0.1\bin\java.exe"
Dave Nottage replied to William23668's topic in FMX
Is this a project created in an earlier version of Delphi? If so, you may need to follow the step described here. -
Unable to execute '"C:\Program Files\Java\jdk-17.0.1\bin\java.exe"
Dave Nottage replied to William23668's topic in FMX
Once again, not enough information -
Unable to execute '"C:\Program Files\Java\jdk-17.0.1\bin\java.exe"
Dave Nottage replied to William23668's topic in FMX
As per my earlier reply, later versions of Delphi require the OpenJDK. You can install it from the Delphi IDE by using Tools | Manage Platforms, select the Additional Options tab, select Eclipse Temurin OpenJDK 11 (Hotspot) JVM and click Apply. Once installed, you'd need to modify your Android SDK settings to use the installed JDK: -
Unable to execute '"C:\Program Files\Java\jdk-17.0.1\bin\java.exe"
Dave Nottage replied to William23668's topic in FMX
It may depend on which version of Delphi you are using. Later versions of Delphi (e.g. 11.3) require the OpenJDK. It's hard to tell without more information, including the rest of the error message -
Pixel 7 Pro shipped with no 32-bit support. You need to compile for 64-bit, or perhaps use this: https://github.com/ThomasKing2014/Pixel7_32bit_helper
-
Delphi 11.1 compiled under MacOS Ventura
Dave Nottage replied to ChrisChuah's topic in Delphi IDE and APIs
As long as you have a compatible version of Xcode on the Mac, Delphi 11.1 will be able to produce iOS and macOS apps. In the case of Delphi 11.1 (with patch 1 installed), even the latest version of Xcode should work. Is there some reason you're not upgrading to 11.3? That version definitely works with Xcode 14.2 (at least, for me) -
iOS FMX controls not show on Iphone 14 device with ios 16
Dave Nottage replied to DonSa's topic in FMX
Thanks.. I'll be taking a look into what is happening- 12 replies
-
iOS FMX controls not show on Iphone 14 device with ios 16
Dave Nottage replied to DonSa's topic in FMX
Can you provide an example of this? Just the form with the TListView with customized item will do.- 12 replies
-
It appears that all 3 developers I know of are in the same scenario, i.e. they are using a macOS VM on a Windows host. I wouldn't expect support from Embarcadero if the setup may be illegal to begin with. You may want to consider obtaining a Mac (least expensive option is usually a late-model Mac mini, or 2nd hand Mac - not too old, though), or use a cloud hosted Mac machine.
-
EUnsupportedPlatformService with message 'Unsupported platform service: Terminate'
Dave Nottage replied to at3s's topic in FMX
The question is: why do you want your app to be able to do this? As Dalija mentioned, users can easily go to the home screen anyway. Even if you were able to achieve it, if you submit it to the App Store it's highly likely that the app will be rejected. I suggest reading this: https://developer.apple.com/library/archive/qa/qa1561/_index.html -
I've seen another developer have this issue - he has talked with an engineer from Embarcadero and they are yet to find what the problem is. This is something new. Best I can suggest is to report the issues to https://quality.embarcadero.com/
-
EUnsupportedPlatformService with message 'Unsupported platform service: Terminate'
Dave Nottage replied to at3s's topic in FMX
Did you read this? Did you also read this? -
compiling DCU without creating EXE
Dave Nottage replied to Dave Novo's topic in RTL and Delphi Object Pascal
In my case, it still generates DCUs. (but yes, the "c" is not needed). Regardless, my goal of having a kind of "compile check" was achieved I lived in hope that it was able to work out something that I couldn't 😉 -
compiling DCU without creating EXE
Dave Nottage replied to Dave Novo's topic in RTL and Delphi Object Pascal
Not sure when it was added, but this compiler option appears to just compile (i.e. omits the linking phase): -Jc I discovered this after probing ChatGPT for an answer. The reason why I'm using this option is because I want my CI to just do a compile check in case there's been any boneheaded mistakes in the code, without having it linking to SDKs or other binaries (which can take ages) Jc = "Just compile"? 😉