Jump to content

Dave Nottage

Members
  • Content Count

    1626
  • Joined

  • Last visited

  • Days Won

    37

Dave Nottage last won the day on July 6

Dave Nottage had the most liked content!

Community Reputation

625 Excellent

Technical Information

  • Delphi-Version
    Delphi 11 Alexandria

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Dave Nottage

    XCode with Delphi 12.3

    This is not necessarily true given past experience, however it has been true for a while now. Having said that, even if you discover that your install of Delphi does not work with the latest version of Xcode, it is possible to revert to an earlier one. It should be borne in mind however that (at time of writing) App Store requires at least Xcode 16. Side note: those using Delphi CE will find that (at time of writing) it will not work with Xcode 16 unless you take special measures.
  2. Dave Nottage

    errors building apk

    The .apk file is created when you deploy, not Build/Compile.
  3. Dave Nottage

    errors building apk

    If you're building for Development (as opposed to Application Store), it'll be in the Android64\Debug\(projectname)\bin folder, where (projectname) is the name of the project you are building.
  4. Dave Nottage

    errors building apk

    Update the demo project which appears to be very, very old. See these instructions.
  5. Dave Nottage

    Android 15 and edge-to-edge enforcement

    Yes, it checks the Android version on the device, but also checks the targetSdkVersion value in the manifest. Check the AndroidManifest.xml file (i.e. not AndroidManifest.template.xml) in the project output folder to check what the value is for targetSdkVersion.
  6. Dave Nottage

    Android 15 and edge-to-edge enforcement

    I'm puzzled as to how you get such an error in the code I posted just above this reply of yours, since there is no such reference in it.
  7. Dave Nottage

    Android 15 and edge-to-edge enforcement

    uses Androidapi.Helpers, Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.Os; function IsFullScreen: Boolean; begin Result := (TAndroidHelper.Activity.getWindow.getAttributes.flags and TJWindowManager_LayoutParams.JavaClass.FLAG_LAYOUT_NO_LIMITS) > 0; end; function GetResourceHeight(const AResourceName: string): Single; var LID: Integer; LResources: JResources; begin Result := 0; LResources := TAndroidHelper.Context.getResources; LID := LResources.getIdentifier(StringToJString(AResourceName), StringToJString('dimen'), StringToJString('android')); if LID > 0 then Result := LResources.getDimensionPixelSize(LID) / TAndroidHelper.DisplayMetrics.density; end; function GetTargetSdkVersion: Integer; var LApplicationInfo: JApplicationInfo; begin LApplicationInfo := TAndroidHelper.Context.getPackageManager.getApplicationInfo(TAndroidHelper.Context.getPackageName, 0); Result := LApplicationInfo.targetSdkVersion; end; function CheckBuildAndTarget(const AValue: Integer): Boolean; begin Result := (TJBuild_VERSION.JavaClass.SDK_INT >= AValue) and (GetTargetSdkVersion >= AValue); end; function GetNavigationBarOffset: Single; begin if CheckBuildAndTarget(35) or IsFullScreen then Result := GetResourceHeight('navigation_bar_height') else Result := 0; end; function GetStatusBarOffset: Single; begin Result := GetResourceHeight('status_bar_height'); end; procedure TForm1.FormResize(Sender: TObject); begin if CheckBuildAndTarget(35) then begin Padding.Top := GetStatusBarOffset; if Screen.Width < Screen.Height then Padding.Bottom := GetNavigationBarOffset else Padding.Bottom := 0; end; end;
  8. Dave Nottage

    Error iOS App Delphi 12.3

    Did you read the link (and subsequent comments at that link) that I provided? Also, you did not answer this:
  9. Dave Nottage

    Error iOS App Delphi 12.3

    On second thoughts, you might want to read this, especially if you have errors additional to the one you quoted:
  10. Dave Nottage

    Error iOS App Delphi 12.3

    What version of PAServer are you running? It should be: 14.3.14.5.
  11. Dave Nottage

    Send image with mms

    For this issue, it's likely you need to enable Secure File Sharing in the Entitlement List of the Project Options. As for targeting apps that can send MMS specifically, I don't see anything in the Delphi "built-in" code that supports this. I could extend the ShareItems feature in Kastri to cater for this, though.
  12. Dave Nottage

    Firebase push notifications

    The most likely answer is that the provisioning profile that the Delphi IDE is choosing does not have push notifications enabled. You can check this by opening Project Options, select Deployment > Provisioning, select iOS Device 64-bit Target, and the relevant Build Type you want to build for (e.g. Application Store). Delphi will then examine what provisioning profiles you have and select the most relevant one if it exists. If it does find one, it will show the path to it on the Mac, what the Application Identifier is for it, and the associated Certificate. One thing you should make sure of is that the CFBundleIdentifier value in the Version Info section of the Project Options matches the identifier in the provisioning profile you created that has Push Notifications enabled.
  13. Dave Nottage

    Exception EReadError

    You have several TSpinEdit components in that application. Which one(s) are you renaming?
  14. Dave Nottage

    Deploying Delphi 12.3 iOS App to iOS Device

    I seem to recall that can happen if Windows firewall is blocking it and/or perhaps the firewall on the Mac side
  15. Dave Nottage

    Deploying Delphi 12.3 iOS App to iOS Device

    It would help to know what error messages there are, if any. Also, please indicate what happens when you follow these steps: Open the Project Options for your project On the left, select Deployment > Provisioning Select the relevant target i.e. iOS Device 64-bit Select a Build type of: iOS Device 64-bit - Development Then report whether or not a relevant provisioning profile is found
×