-
Content Count
1613 -
Joined
-
Last visited
-
Days Won
37
Posts posted by Dave Nottage
-
-
8 hours ago, TurboMagic said:I get this failure message, while the same thing just works in 11.3
Check the minSdkVersion value in your projects AndroidManifest.template.xml file. If it's below 21, the packaging tools are unable to use multidex, thus the error. The > 65536 methods refers to how many methods are included in the jar files (in Project Manager, in the Libraries node under the relevant Android target), which grew substantially from Delphi 11.3 to Delphi 12.
If the minSdkVersion value is %minSdkVersion%, the IDE replaces it with the default supported value which is 23, in the resulting AndroidManifest.xml in the project output. If this is the case for you, there may be some other configuration issue.
-
2
-
-
3 minutes ago, Allen@Grijjy said:couldn't get any of it to work with Delphi 12 again
The problem was introduced in 11.3 - a "bug" was reported that I strongly suspect was not even a bug, and "fixing" it actually broke the process.
7 minutes ago, Allen@Grijjy said:I tried just about everything so I appreciate the insight.
You can thank @Chris Pim for it - and it's because of him (and your article, thanks!) I'm finally on the track of making customized notifications on iOS work (though as far as user experience goes, it's pretty sucky compare to Android)
-
1
-
-
1 hour ago, Allen@Grijjy said:Did you ever figure anything out with this issue?
It was reported in https://quality.embarcadero.com/browse/RSP-42283, but there are a couple of other similar reports, e.g. https://quality.embarcadero.com/browse/RSP-42415
The problem is that PAServer signs the extension with the wrong entitlements, and in Chris' (and my) case, it's unnecessary because the extension has already been correctly signed, i.e. it does not even need to be touched. Replacing the extension in the .app bundle, and using iosinstall to install the it solves the problem, at least debugging-wise. I expect a similar process will be needed for repackaging the .ipa.
-
1
-
-
2 hours ago, Marcelo Bernardi said:I fill in the edits that are in another tab, once filled in I use :
ChangeTabDados.ExecuteTarget(self),
Once again:
7 hours ago, Dave Nottage said:A complete, basic test project would be even better.
-
1 hour ago, Marcelo Bernardi said:Esse código está por exemplo após clicar em um item da listview para preencher os detalhes .
Then show your full code. The example you gave does not show anything about clicking a listview item. A complete, basic test project would be even better.
-
When you say "fill in the edit with some text value", do you mean in code? If so, please show your code - all of the relevant code. It seems to me you may be attempting to populate the edits outside of the main thread.
-
2 hours ago, Navid Madani said:However, the .addObserver call in the constructor (line 67) causes a runtime exception:
Assuming NSFileHandleReadCompletionNotification is an NSString, it should be passed like this: NSObjectToID(NSFileHandleReadCompletionNotification)
Having said that, I haven't come across the need to use such an observer. You might like to take a look at the code in Kastri that creates a process on macOS and reads from the output.
-
1
-
-
1 minute ago, Bart Kindt said:E2291 Missing implementation of interface method JLocationListener.onFlushComplete
Your TLocationListener does not implement onFlushComplete, which was added to JLocationListener in Delphi 12:
JLocationListener = interface(IJavaInstance) ['{D1CF3FB5-3BCB-4959-98D7-BD4D8F93D839}'] procedure onFlushComplete(requestCode: Integer); cdecl; procedure onLocationChanged(location: JLocation); cdecl; overload; procedure onLocationChanged(locations: JList); cdecl; overload; procedure onProviderDisabled(provider: JString); cdecl; procedure onProviderEnabled(provider: JString); cdecl; procedure onStatusChanged(provider: JString; status: Integer; extras: JBundle); cdecl;//Deprecated end;
-
2 minutes ago, Bart Kindt said:The entire directory AndroidSDK-2525-23.0.50371.5667\ does not exist.
In the released version of Delphi 12, the folder is:
C:\Users\Public\Documents\Embarcadero\Studio\23.0\CatalogRepository\AndroidSDK-2525-23.0.50491.5718
-
1 hour ago, kabiri said:Will you do it for iOS too?
It's done for both iOS and Android, but for Android just for Delphi 12. For iOS, either 11.3 or Delphi 12.
-
1
-
-
2 hours ago, Dave Nottage said:might be done before the end of the weekend.
I've now pushed the changes to support User Messaging Platform (UMP). Support for Android is via Delphi 12 only. I strongly suggest reading the readme, paying attention to the details.
-
1
-
-
On 11/23/2023 at 8:36 PM, Dave Nottage said:I'm working on adding this to the Kastri library - it might be ready in a few days time.
Looks like it's going to be a Delphi 12 only kind of thing at least for Android, as using the current implementation of User Messaging Platform needs jar libraries that are included with Delphi 12. It might be possible to add the required jar libraries and "disable" the older ones in Delphi 11.3, however it is becoming too messy. I'm now working on doing some cleaning up, re-testing and documentation - might be done before the end of the weekend.
-
Using TOSVersion:
IsWindows11 := (TOSVersion.Major = 10) and (TOSVersion.Minor = 0) and (TOSVersion.Build >= 22000);
(At least until Windows 12?)
Where IsWindows11 is a Boolean. -
2 hours ago, kabiri said:I saw the file dw-firebase-messaging-2.0.0.jar in the kastri library, but I had no idea how to use it.
That library is connected with push notifications, and is not related to UMP (User Messaging Platform).
2 hours ago, kabiri said:If you are the developer of kastri (DelphiWorlds), I would like to thank you very much for developing this library.
That I am, and thanks!
A progress update: I have some code working in Android, though the process of integrating the support is not exactly pretty - it's something that really should be built into the IDE. More later..
-
1
-
-
4 minutes ago, Vanar said:When my application is open, when I click on “foreign” (for other applications) PUSH, my application closes abnormally.
There is no reason for your application to do anything if you tap a notification that is meant for other applications. What do you mean by "closes abnormally"? Does it crash with no error messages? Have you used the Console app to check for log messages that might help determine why your app crashes?
-
1
-
-
On 11/22/2023 at 5:48 PM, kabiri said:Because of Google's requirements, all developers who use AdMob must add it to their apps.
I'm working on adding this to the Kastri library - it might be ready in a few days time.
-
3
-
-
1 minute ago, ChrisChuah said:How can i clear browser to show nothing ?
webbrowser.navigate('none')?
Navigate('about:blank');
-
21 minutes ago, Rollo62 said:How is your experience, is it more or less smooth to migrate, for mobile stuff?
More or less, yes 🙂
21 minutes ago, Rollo62 said:Ok, it seems I have to look into D12 sooner than I hoped.
Updating would be for far more important factors than those warnings
-
8 hours ago, Rollo62 said:If anyone knows how to get rid of these warnings
Yes - update to Delphi 12. If that's not an option, and unless you're having problems with Play Store due to the warnings, it's pointless to do anything.
-
19 minutes ago, kabiri said:Because of Google's requirements, all developers who use AdMob must add it to their apps.
Thanks for the heads up!
-
2 hours ago, kabiri said:How can i add the Google User Messaging Platform SDK to my app?
For which platform(s)?
-
9 hours ago, Apricot said:Ertan merhaba belirttiğin sorunu çözebildinmi?
You might be interested in this: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidLowerVersions
-
1 minute ago, Shano said:I have the Generate Android 32-bit and 64-bit binaries set to True
This applies only when generating an application for uploading to Play Store (.aab file). If you're in "development mode" and your device supports 32-bit only, just select Android 32-bit as the target.
-
23 minutes ago, JonRobertson said:I have SVGIconImageList installed and don't see a related sk4d.dll.
By default SVGIconImageList uses a different library from Skia on Windows, namely Image32
Open file dialog in IOS
in Cross-platform
Posted
Unfortunately on iOS the only picker that has a selection limit is PHPickerViewController, which applies to photos/videos.
Which path is it being selected from? I doubt that a write-back is possible.