Jump to content

Dave Nottage

Members
  • Content Count

    1609
  • Joined

  • Last visited

  • Days Won

    37

Posts posted by Dave Nottage


  1. 8 hours ago, alejandro.sawers said:

    Well, guess the best I can do for now is raise a ticket on the support portal and wait for the best.

    You could just leave AndroidManifest.template.xml as it is (for now) - is there some reason you need to target API level 35? If you really need to, you could use code from Kastri to implement a workaround, thus:

    uses
      DW.UIHelper, DW.Android.Helpers;
    
    { TForm1 }
    
    procedure TForm1.FormResize(Sender: TObject);
    begin
      // This method is used because the device might have Android 15, but the targetSdkVersion might be lower. Use conditionals if targeting other platforms
      if TAndroidHelperEx.CheckBuildAndTarget(35) then
      begin
        Padding.Top := TUIHelper.GetStatusBarOffset;
        // "Cheat" method for determining whether Portrait or Landscape
        if Screen.Width < Screen.Height then
          Padding.Bottom := TUIHelper.GetNavigationBarOffset
        else
          Padding.Bottom := 0;
      end;
    end;

    If you don't want to drag the dependent units from Kastri into your app, you could extract the parts of the code that you need.

    • Thanks 1

  2. 1 minute ago, Nicolò Blunda said:

    After upgrade XCode on remote mac I have download new SDK and delete old in SDK manager.

    That's a different scenario to what you first described.

    2 minutes ago, Nicolò Blunda said:

    But new XCode generate some issue..

    What issues? 

    3 minutes ago, Nicolò Blunda said:

    I woud like to point to previous (still present in folder of developement machine) without downgrade XCode from remote and re-transefer his files...

    These days Xcode has only the SDKs that are shipping at the time of the release of that version of Xcode.  If you're using the Community Edition (as indicated in your Delphi Praxis profile), it should work with the current version of Xcode anyway, so it might be easier to resolve the issue you mentioned.

    • Like 1

  3. 3 hours ago, Nicolò Blunda said:

    There is a way to avoid download all SDK files from macOS (remote) machine if the corrisponding item is (for mistake) deleted from Tools->Optionts->Deployment->Provisioning form?

    Do you mean SDK Manager?

    3 hours ago, Nicolò Blunda said:

    Do configuration file exists to restore pointment to this folder?

    The transfer process does not re-transfer anything that already exists. Even if it did, I expect that would be a problem only if it takes a long time to transfer them.


  4. 2 minutes ago, ToddFrankson said:

    It seems that IOS No longer likes Getdocumentspath....A Stringlist failed to write to it, using Assign and reset failed to open or read the file...

    Your example code does not have any calls to Assign or Reset. Having said that, why are you using long deprecated file access methods? TStringList has LoadFromFile and SaveToFile methods.

     

    It might help to show an example that focuses just on GetDocumentsPath and the file access parts, if that's what is failing


  5. On 7/19/2024 at 12:49 AM, moises@coderbox.com.br said:

    Additionally, to achieve your objective, did you have to use the entire complexity described in @Chris Pim 's article (https://fmxnative.com/ios-extensions-with-firemonkey)?

    I had not actually read Chris' article - I was aware of most of the process, however I did not realise the issues regarding building for App Store. That puts a whole new slant on things. I'd like to be able to automate as much as I can (via Codex/Mosco)

    On 7/19/2024 at 12:49 AM, moises@coderbox.com.br said:

    I am more than willing to assist in any way I can, whether it's testing the steps, providing feedback, or contributing to the documentation

    That's great! I'm sure to need testers and feedback.


  6. 13 hours ago, moises@coderbox.com.br said:

    Have you had any success with getting customized notifications to work on iOS?

    Yes...

    13 hours ago, moises@coderbox.com.br said:

    Specifically, I'm looking to send push notifications with an image in the payload.

    ...if by: "image in the payload", you mean: "a url to an image in the payload"

     

    As inferred in the earlier messages, doing so in a Push Notification is possible only by using an App Extension (in this case, a Notification Service extension) which needs to be an Xcode project. I've been ruminating over the best way to make the process as painless as possible, by providing a template Xcode project of which hopefully only a couple of properties need to be changed to match the Delphi project. As with other projects that require the user to follow a bunch of steps to integrate the solution, I'm apprehensive over the number of inevitable enquiries as to how to make it work.


  7. 59 minutes ago, dmitrybv said:

    Can this be fixed somehow?

    Possibly, via Tools | Manage Features:

    1. Ensure the OpenJDK is installed. (right hand side, scroll all the way down). If it is not, select it, and click Apply.
    2. Deselect the SDK/NDK, and click Apply
    3. Reselect the SDK/NDK, and click Apply.

    During these steps, you might need to re-open Tools | Manage Features. I can't remember if it closes after clicking Apply.

     


  8. 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?

     


  9. 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.

     


  10. 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

×