Jump to content

John van de Waeter

Members
  • Content Count

    52
  • Joined

  • Last visited

Posts posted by John van de Waeter


  1. Hi All,

     

    Android reports that my app (D12, running on Android 14) "frequently crashes" and suggests the user should clear the cache and/or contact the developer.

    Strange thing is that my app runs normal, no errors shown, no lost functionality. Nothing in the logs either...

     

    Android's message is reported to the user only sometimes (once in a couple of days) when the app is not even running. There's no service involved.

     

    This does NOT happen in Android when I set targetSDKlevel to 31 instead of the default 33.

     

    Even more strange: a similar message appears when running on iOS 17. No problems on iOS 15....

     

     

    Any ideas?

     

    tia,

    John

     


  2. On 11/8/2023 at 7:30 PM, John van de Waeter said:

    No Mobile? I have Android and iOS since the beginning, as well as a subscription... I did check iOS and Android in the features panel, but they don't appear as a target OS...
    My "keys" on My.Embarcadero.com don't mention "mobile" either....  glitch?

    Checked again this morning on myEmbarcadero, and now "with mobile" was added to my key. I reentered  the key into the licence manager and magically Android and iOS appeared as target platforms :)

    • Like 1

  3. No Mobile? I have Android and iOS since the beginning, as well as a subscription... I did check iOS and Android in the features panel, but they don't appear as a target OS...
    My "keys" on My.Embarcadero.com don't mention "mobile" either....  glitch?


  4. Hi All,

     

    With 'Edit default style', I have changed the appearance by changing the color properties in the "background" part (a TRectangle) of the TCornerbutton.

    Worked okay for years on Windows, iOS and Android.

    Now I tried using Skia4Delphi (5.0.0). The Cornerbutton is now transparent. No more colors visible.

    I was under the impression that the appearance of components would not be affected by using Skia.

    Is this a bug in Skia4Delphi?

    tnx,

    John

     


  5. However, another volunteer started a similar project (Website in a Webview) in another developers environment (react native IIRC) a couple of years ago.

    Unfortunately this developer is no longer among us, but the app still exists in the Playstore.
    Instead of doing nothing, both buttons show a choice: Camera or Files.

    I would think (but am not sure) that this Webview also uses the Chromium browser. Strange that the reponse to the buttons is different...


  6. On 9/19/2023 at 1:42 AM, Dave Nottage said:

    Can you give an example of a site where it does this?

    I'm trying to wrap "www.trustroots.org" into a TWebbrowser.

    You would have to create an account to get to the profile/image page. It offers 2 buttons: Select a photo and Take a photo.
    Works okay in a browser

    Works okay in a TWebbrowser on iOS

    Does NOT work in a TWebbrowser on Android.


  7. Thanks Dave.

    It was my impression that the embedded webbrowser would need the permission.

     

    nevertheless...

    The website with the photo-button works in every browser. The camera is started.

    When the website is opened in the TWebbrowser, the photo-button only offers the option to pick a photo from the gallery.

     

    John


  8. Hi all,

    If I open a website that gives the user the opportunity to use the camera, nothing happens inside the TWebbrowser. No error thrown.

     

    I manually granted the required permissions to the app, but no luck.

     

    On iOS it works OK, on Android nothing happens.

     

    Any ideas?

     

    thanks,

    John

     


  9. Hi All,

    I have a TMapview and 12 markers.

    The position (Lat/Long) of these markers change every 0.5 seconds.

    Everytime I delete the Markers and add them with the new positions.

     

    This works OK on Android, but on iOS the app crashes the iPhone after about an hour. The iPhone gets completely frozen, no response to Screen  Home-key and On/Off key anymore. After a while the iPhone automatically reboots.

     

    The deleting of the markers is done by Marker.DisposeOf.   If I change to Marker.Remove, result is the same.

    I guess it is a memory issue inside the mapview. No errors are thrown if I use a try... except.

     

    Instead of recreating the Markers, I tried to set a new location using Marker.Descriptor.Position.Latitude:=..., but Delphi complains that "Left Side cannot be assigned to", so readonly.

     

    Is it really necessary to delete/recreate a marker when it's position is changed?

     

    Thanks,

    John

     

     


  10. Hi All, (D11.3 on Windows 10)

     

    Occasionally, when I switch Target platform, the markdown does not work. It stays in the previous state.

    E.g. when I switch Target Platform from Windows to Android, the windows part of the code( between {$IFDEF MSWINDOWS} and {$ENDIF}) should go gray and the Android part should turn black. But it stays like Windows Target is still selected.

    Closing and reopening the unit solves the problem.

     

    CodeInsight sometimes looses track and after typing the dot after an objects name, it gives me all kinds of template-suggestions, but no object-properties.
    Closing and reopening the unit usually solves the problem.

     

    The lines on the lefthand side that nicely show the pairs of begin and end sometimes are shifted a couple of lines,

    Closing and reopening the unit usually solves the problem.

     

    Often when the Build Configuration is Release, it builds as if it's in Debug mode. The Compiling Dialog shows Debug.

    A couple of times switching between Debug and Release usually solves the problem.

     

    The last one :)

    Often when hitting F9, the messages window shows that a unit cannot be found. Always another arbitrary unit.

    Hitting F9 again, problem gone, compiles okay.

     

    All above smells (imho) a bit like some memory corruption?

    Or maybe the 6GB RAM I have is not enough?

     

    cheers,

    John

     


  11. Hi All,

    I have this listbox with on each listitem a horizontal scrollbox. Works nice, except the a vertical scroll gesture on the horzscrollbox should propagate to the parent, the underlying listbox.

    I tried with a gesturemanager, and in the action I can scrollby() the listbox, but that's not a smooth solution...

     

    Is there a way to pass through the vertical scroll gesture to the parent?

     

    tia!

    John


  12. Yeah, probably. I managed to boost my MacVM, and the cache-update now took about 8 hours. Compiling and running an iOS app is ok. Deploying looks okay too, except for the last step: copying the ipa to the local iOSDevice64 directory.

    Delphi became unresponsive, high cpu-load, and I canceled the copying process after about an hour. But the ipa is on the Mac, ready to be deployed to the appstore 🙂

    And here's the problem again... uploading to the AppStore (via Transporter) worked, but took more than 30 minutes... It's looks like it's the MacVM that has serious problems with networking/uploading.... from what I read on the net it's a Ventura issue, also on Mac hardware.

     


  13. Fwiw....

     

    The Numeric Keyboard types DecimalNumberPad, Numberpad and NumbersAndPuctuation on Android on Samsung Galaxy do not support the comma as a decimal separator.

    It's on the keyboard, but stays disabled, whatever regional settings are in use. Probably a Samsung/Android bug.


    Tthis could be important if the app is targeting european users.

     

    Workaround: Use keyboardtype Default instead


  14. Ha, l'histoire se repête....
    Delphi Alex 11.3 asked to remove the Alex 11.2 install. Okay.

    During install, the message "Cannot find fmuxlib.dll" popped up, but installation went well.
    Now pressed Start Working, and the message popped up again. It does boot up, everyhing seems to work.
    I remember installing this fmxlinux in my Delphi Pro 11.2 from GetIt, but couldn't find anything changed, nothing regarding to linux, and I forgot about it.

    To get rid of this message, I should install fmlinux again. But it's not visible (anymore) in GetIt.
    What registry setting to change so the message won't pop up again?

     

    tia,

    John


  15. Hi All,

     

    Using Delphi 11.2

     

    The Android PermissionsService from System.Permissions seems to lack a permission for push-notifications, which is needed (afaik) for Android 13 and up.

     

    Without the permission, a valid device-token for FCM is generated, it's nicely registered at Google, and Google even says it succeeded when sending a push to this device, but the phone's app settings says that reception (or showing?) of push notification is blocked.

    If I turn it on in the apps settings, it works, but that is not a friendly method to tell my users....

     

    So.. How to ask for and set this permission at runtime?

     

    tia!

    John

     


  16. Hi All,
    I have an Indy tcp client and Indy tcp server, all working great.


    Yet I would like to reduce the connection time

    The "protocol" is as follows:
    Clients Connects
    Client sends size of idBytes (write Int32)
    Clients sends encrypted data (idBytes) containing command or question.
    Server receives and prepares answer
    Server encrypts answer
    Server sends size of answer (IdBytes, write int32)
    Server sends data (idBytes)
     

    Every sending of a packet induces radio-transmissions which have a long latency compared to a wired connection.

     

    When I download a picture I use  
    on serverside:
    ...
     AContext.Connection.IOHandler.Write(astream,astream.Size,false);
    ...
    and on clientside:
    ...
     TCPClient.IOHandler.ReadStream(astream, -1, True)
    ...

    This sending and receiving of a stream has the possibility of specifying the size of the stream in the first bytes.

    My question: is it possible to send a TIdBytes with the size included? So the receiving end knows how many bytes to read, just like when using a stream?

     

    It would save one extra radio latency.

    Thanks in advance,
    John

     

     

     


  17. Hi All,

     

    The phone (iOS or Android) receives a push notification.

    The user taps the notification and the app is started or brought to front.

     

    It's nice behaviour if the app responds according to the notification.

     

    How to know if the app was started / brought to front via a tap on the notification?

     

    cheers,

    John

×