Jump to content

Dave Nottage

Members
  • Content Count

    1613
  • Joined

  • Last visited

  • Days Won

    37

Posts posted by Dave Nottage


  1. 6 hours ago, grantful said:

    When I try to use the camara the app crashes.

    Works OK here. Either there's an issue with your device, or you need to provide more information, e.g. 

    • Are there any error messages when it crashes?
    • Where in your code does it crash?
    • Have you used a log viewer to check for error messages and if so, are there any?
    • Is there any other relevant code you've left out in your post?

     


  2. 5 hours ago, Samuel Soares said:

    Any news about this problem?

    Did you read the reply from bzwirs?:

    On 1/8/2024 at 1:04 PM, bzwirs said:

    At the time I had this problem I ended up going to the component creators of the components where I was having this issue (Woll2Woll for the datagrid and TMS for the TMS Edit component).  Both provided updates that fixed the problem.

     


  3. 3 hours ago, sevalx@gmail.com said:

    yes I only use a real phone

    Your screenshot looks very much like it is from an emulator

    3 hours ago, sevalx@gmail.com said:

    But why does my application close, but yours starts and does not close itself?

    I don't know, because you never really answered this question:

    On 6/25/2024 at 4:44 PM, Dave Nottage said:

    Is this using the demo, unaltered, following all of the instructions? In which version of Delphi?

     

    3 hours ago, sevalx@gmail.com said:

    have you added error and exception handling?

    No - it is built direct from the demo app, with no alterations, using Delphi 12.1


  4. On 6/29/2024 at 3:34 PM, sevalx@gmail.com said:

    Maybe you can post an apk application with your built-in advertising (of all types) so that I can install it and see how advertising will work.

    Posted a 64-bit APK built with Delphi 12 here


  5. 43 minutes ago, dmitrybv said:

    How can you track that the mouse is over within the boundaries of the control, regardless of the Child controls?

    You could use GetMousePos to check if the mouse is inside of it, like this:

    uses
      FMX.Platform;
    
    procedure TForm1.ParentPanelMouseLeave(Sender: TObject);
    var
      LService: IFMXMouseService;
      LPoint: TPointF;
    begin
      if TPlatformServices.Current.SupportsPlatformService(IFMXMouseService, LService) then
      begin
        LPoint := ScreenToClient(LService.GetMousePos);
        if not ParentPanel.AbsoluteRect.Contains(LPoint) then
          ParentPanel.Fill.Color := $FFE0E0E0;
      end;
    end;

     


  6. On 6/23/2024 at 10:05 AM, Dave Nottage said:

    More later...

    Hopefully all sorted now, including:

    • Added new API import DW.Androidapi.JNI.AssetDelivery.pas
    • Added new jar files to the ThirdParty\Android folder in Kastri
    • Updated DW.AssetDelivery.Android.pas
    • Updated the demo, including the manifest template.
    • Updated the batch files which are included with the demo, to account for the changed Android build process in Delphi 12.1
    • Updated Codex to also account for the changed Android build process in Delphi 12.1

    As you may have guessed, it wasn't as simple as swapping the .jar file, especially since asset-delivery-2.2.2.jar is dependent on play-core-common-2.0.3.jar. Newer versions of Android also require this implementation to have the Foreground Service Data Sync permission.

     

    I am yet to test with an AAB that's actually on Play Store (whether internal or not), but "local" testing worked OK.

    • Like 1
    • Thanks 1

  7. 6 hours ago, Hans♫ said:

    First step of the switch is to create a Delphi interface to the new jar, and next step is to make the code work with that interface and jar.

    I have done a more detailed check now (I had not when I sent the first message), and I can see that the classes/methods are all compatible and the namespacing of the classes is identical, so removing the old jar from the project and adding the new one should work, but I'll know for sure when I do a test, hopefully before the end of the weekend.

     


  8. 3 hours ago, Joe Sansalone said:

    I tried a simple app - compiling with Simulator ... launches simulator, app starts but never gets to form screen.

    Same here. I needed to use:

    GlobalUseMetal := True;

    (adding FMX.Types to the uses clause)
     In the project source to stop the app from crashing. Someone else (not sure where, exactly) reported that re-importing the iOS Simulator 17.5 SDK (first deleting the cache folders in the PAServer folder on the Mac) fixed it for them, but that didn't work for me.

    • Thanks 1

  9. 2 hours ago, Vanar said:

    Moreover, the CFBundleIdentifier was different

    So it's more than likely a profile/certificate issue, especially given the original message. You could use the Keychain Access app on the Mac to check whether certificates are valid, e.g. on mine:

     

    image.thumb.png.cc62bbecc7717f5d9a2efcb9a0d17506.png

    • Thanks 1

  10. 5 minutes ago, Vanar said:

    I took the ALFmxControls.dproj file and adjusted it to my project
    But everything was unsuccessful.

    What adjustments did you make? If it included the value for CFBundleIdentifier (in the Version Info section), I suspect it's related to that.


  11. 1 hour ago, sevalx@gmail.com said:

    I sent the log in a private message

    Here is the problem:

    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	FATAL EXCEPTION: Thread-6
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	Process: com.embarcadero.AdTestD12, PID: 12847
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string;
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	at com.google.android.gms.measurement.internal.zzga.zza(com.google.android.gms:play-services-measurement-base@@20.1.2:1)
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	at com.google.android.gms.internal.measurement.zzee.<init>(com.google.android.gms:play-services-measurement-sdk-api@@20.1.2:8)
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	at com.google.android.gms.internal.measurement.zzee.zzg(com.google.android.gms:play-services-measurement-sdk-api@@20.1.2:2)
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	at com.google.android.gms.measurement.api.AppMeasurementSdk.getInstance(com.google.android.gms:play-services-measurement-sdk-api@@20.1.2:3)
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	at com.google.android.gms.internal.ads.zzbnq.run(com.google.android.gms:play-services-ads-lite@@22.2.0:10)
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	at java.lang.Thread.run(Thread.java:1012)
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.R$string" on path: DexPathList[[zip file "/data/app/~~aO0p4K6Hjy9h4IY8lEyzVQ==/com.embarcadero.AdTestD12-AUBcLSpltNJ395APPGwSJA==/base.apk"],nativeLibraryDirectories=[/data/app/~~aO0p4K6Hjy9h4IY8lEyzVQ==/com.embarcadero.AdTestD12-AUBcLSpltNJ395APPGwSJA==/lib/arm, /data/app/~~aO0p4K6Hjy9h4IY8lEyzVQ==/com.embarcadero.AdTestD12-AUBcLSpltNJ395APPGwSJA==/base.apk!/lib/armeabi-v7a, /system/lib, /system/system_ext/lib]]
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    2024.06.12 22:02:52.452	E	com.embarcadero.AdTestD12	12847	15753	AndroidRuntime	... 6 more

    Not sure why this was not happening before. I see from your first post about this you are using an emulator? I strongly advise to use a real device. If you are unable to, make sure the emulator system image includes "Play Store":

      

    image.thumb.png.9f4543ca61f25246db1f8ec8fe648cb6.png


  12. 2 minutes ago, Vanar said:

    Delphi 11.3 + PASERVER 22.0 = Success

    There is more than one version of PAServer 22.0, however I assume you are using the one that shipped with Delphi 11.3, which is v13.3.12.6. Regardless, as I indicated earlier, this combination works for me:

    9 hours ago, Dave Nottage said:

    Delphi 12.1, PAServer (23.0) v14.1.13.8, Xcode 15.4

     

    • Thanks 1

  13. 3 minutes ago, Vanar said:

    I tried it under 11.3 - everything works!

    With PAServer from Delphi 12.0? Either way, that is odd.

    3 minutes ago, Vanar said:

    Do I need to install Delphi 12.1 or is it enough to update PAServer?

    Delphi 12.0 will not (or at least should not) work with PAServer from Delphi 12.1.


  14. 12 minutes ago, Vanar said:

    Embarcadero® Delphi 12 Version 29.0.50491.5718 

    So Delphi 12.0? Is there any reason why you have not upgraded to 12.1? Not sure if that might actually make a difference here, however PAServer may have been changed to ensure that the file specified in the -exportOptionsPlist switch of the call to xcodebuild uses the correct value for the <method> key, which would be app-store-connect, rather than app-store:

    8 hours ago, Vanar said:

    [PAClient Error] Error: E0776 2024-06-11 22:30:54.773 xcodebuild[1276:18656] [MT] IDEDistribution: Command line name "app-store" is deprecated. Use "app-store-connect" instead.

    That message looks more like a warning, than an error. I suspect the real problem is that there is some certificate issue:

    8 hours ago, Vanar said:

    [PAClient Error] Error: E0776 Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=2 "No "signingCertificate" specified. Provide the SHA-1 hash or name of the (null) certificate to use, or "(null)" to let Xcode choose one." UserInfo={NSLocalizedDescription=No "signingCertificate" specified. Provide the SHA-1 hash or name of the (null) certificate to use, or "(null)" to let Xcode choose one.}

    I'm just not sure what that issue is.
     

    • Thanks 1
×