Jump to content

AlanScottAgain

Members
  • Content Count

    38
  • Joined

  • Last visited

Posts posted by AlanScottAgain


  1. Hi Dave,
     

    Thanks for responding.

    I must not have made sense.

     

    I have read that article several times and hope I'm following its recommendations:

    My app sets a notification and when this is activated my app is re-loaded or comes to the foreground.

     

    When it becomes active again I check the connection, Check to see if I need to refresh my login token and then post my results.

    It does not try to access anything whilst in the background.

     

    Interestingly, I just tested to see if a delay would make a difference and a five second delay before I attempt to save works error free, but  3 seconds does not.  

     

    Does that make it any clearer?

     

     

     


  2. Hi

    I'm using FB4D to access Firebase - works great.

     

    When I use my app on Android no problems.

     

    But, when it runs on iOS I get:

     

    "REST request failed: Error -1005

    accessing to https://firestore.googleapis.com/v1beta1/projects/XXXXXX/databases/(default)/documents/Users/XX@XXXX.com?

    updateMask.fieldPaths=Last_Timer:

    The network connection was lost."

     

    This only happens if I allow the app to go to background.

     

    If I set SharedApplication.setIdleTimerDisabled(True);  Then the app doesn't sleep and everything is fine.

     

    Obviously, when the app comes out of sleep, I check to ensure the phone is connected and it says it is, but I still get this error.

    I was hoping someone with a better understanding of what iOS is doing could shed some light on this.

     

    Thanks

    Alan


  3. Hi,

     

    Given that debugging on iOS17 is not possible at this moment.

    I was looking at the Grijjy CloudLogger as an option.

    It hasn't been updated in a while and wondered if anyone had it running under D12 and iOS?

    Thanks

    Alan


  4. Hi

     

    I'm trying to use SQLite with FDAC  using Dynamic loading on Android and iOS. Unfortunately I'm not getting very far.

    Currently testing on Android 64.

    I'm getting an error:

    Project TestFDACDynamic.apk raised exception class EFDException with message '[FireDAC][Phys][SQLite]-314. Cannot load vendor library [/data/user/0/com.embarcadero.TestFDACDynamic/files/libsqliteX.so]. Hint: check it is in the PATH or application EXE directories, and has x86 bitness.'.

     

    libsqliteX.so is downloaded from the sqlite download page.

    and I deploy to .\assets\internal\.

     

    1947991615_Screenshot2024-01-15210845.thumb.png.e626e57099685543c299b55108276471.png

    I have tried with other libsqlite.so's with the same issue.

    Am I using the wrong file? Or the wrong location?

     

    Many thanks for any advice.

     

    Alan

     


  5. Hi

     

    I can compile and my app appears on the iPhone and I can run it. But I can't seem to step trough the code.

     

    However, I can step though code if I deploy to the simulator.

     

    I have read the documentation, but it hasn't helped.


    What could I be doing wrong?

    Thanks

    Alan


  6. Hi

     

    Is there an equivalent  to TPath.GetHomePath for the obb directory?

     

    I want to deploy some video files in an APK expansion pack. But not sure how to find where they will be installed to.

     

    Thanks

    Alan


  7. Hi,

    This is my scenario....
    I have an exercise app that will be able to set reminders to do the exercise daily up to 2 times a day.
    I need to create a notification that will remind the user to the exercise. Taping the reminder should open the app - to record the exercise has been done.

    The reminders will need to be active after a reboot and work on both Android and iPhone.

    After reading lots of articles.. I'm completely  confused and would like some pointers, Please.

    Thanks
    Alan

    PS it would be good if I could send a notification if the exercise has not been done/logged on the app.

     


  8. Many thanks

    I was aware of the demos 😉
    And am doing similar.

    It seems that if I use ShowMessage to display the event action, something must happen with the message queue as I get multiple showmesage popups.

    if I just update a label - all works fine.

    this simple code generates multiple popups for me?

     


    procedure TForm1.FormGesture(Sender: TObject; const EventInfo: TGestureEventInfo; var Handled: Boolean);
    begin
    if EventInfo.GestureID = igiLongTap  then
    begin
    Label1.Text:= 'Long Tap';

    TDialogService.MessageDialog('Did you mean to long press',TMsgDlgType.mtInformation, [TMsgDlgBtn.mbYes, TMsgDlgBtn.mbNo], TMsgDlgBtn.mbYes,0,
          procedure(const AResult: TModalResult)
          begin
            if AResult = mrYes then
               ShowMessage('YES')
            else
              ShowMessage('you have cancel the operation');
          end
        );
    end;
    end;

    procedure TForm1.FormTap(Sender: TObject; const Point: TPointF);
    begin
    Label1.Text:= 'Tap';
    end;

     

     

     


  9. Hi,

    I couldn't find any information this.

    When I capture a long tap  -  I get the tap event fired as well.

     

    Is this right?

     

    I want to set a value on tap and clear it on long tap.  Its messy at the moment with the events being called in sequence.

     

    Thanks

    Alan

     

     

     


  10. Hi

    I'm creating a simple exercise app, and I want the user to be able to set a reminder to do the exercise.

    What's be the recommended way to do this and have it work across Android and iPhone?

     

    I have considered creating calendar entries ( would have to be platform specific)  or creating a background app that tracks the reminder (more generic).

    Unsure if these are the way to go or is there a better way?

    Thanks

    Alan

×