Jump to content

John van de Waeter

Members
  • Content Count

    52
  • Joined

  • Last visited

Everything posted by John van de Waeter

  1. John van de Waeter

    This app crashes frequently....

    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. John van de Waeter

    Delphi 12 is available

    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 :)
  3. John van de Waeter

    Delphi 12 is available

    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. John van de Waeter

    Skia4Delphi and rendering custom style

    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. John van de Waeter

    TWebbrowser & camera permission

    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
  6. John van de Waeter

    TWebbrowser & camera permission

    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...
  7. John van de Waeter

    TWebbrowser & camera permission

    The bugreport on Chromium is from 2016 and does not seem to be solved yet. So yes, the only option is to implement taking photos in the app itself. Thanks for looking into it! John
  8. John van de Waeter

    TWebbrowser & camera permission

    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.
  9. John van de Waeter

    TWebbrowser & camera permission

    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
  10. John van de Waeter

    TMapview and changing marker's position

    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
  11. 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
  12. 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
  13. John van de Waeter

    Switching network, ipv4 and ipv6, Indy

    Hi All, When a user goes outdoor with his phone, network-connections may switch from WiFi to Mobile data. There's no problem when both networks are ipv4 or ipv6, but sometimes the WiFi is ipv6 and the Mobile data connection is ipv4, or vice versa. In that case, putting a hostname (in idUDPclient or idHttp) between square brackets (coming from ipv6) results in a "connection refused". Now this https://delphiworlds.com/download/libreachability-a-for-arm64/ does a nice job. It tells me that the networks has switched, so I can take appropriate action and check for ipv4 or ipv6 connection. Works great on Android 32 and 64, and probably IOS 32 bit (I cannot test). However, the library for IOS 64 bit (libReachability64) doesn't work anymore for IOS 64 bit. Compiling fails. Does anyone know if this library is updated so it can be used in Delphi 10.4.1 ? Or another way to be informed when network changes? tia! John
  14. John van de Waeter

    Delphi 11.2 and MacOS SDK 15.5

    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.
  15. John van de Waeter

    Delphi 11.2 and MacOS SDK 15.5

    I have exactly the same problem.... Does anyone know if it is possible to transfer SDK files from the Mac to Windows dev environment by using e.g. a USB-stick?
  16. 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
  17. John van de Waeter

    Could not find Wizard ... FmuxLib.dll

    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
  18. 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
  19. John van de Waeter

    Android 13 ask permission for push notification

    oops... my bad... post_notification needs an s at the end... It works! Thanks Dave and Programmer, for guiding me! 🙂
  20. John van de Waeter

    Android 13 ask permission for push notification

    I did, the procedure was invoked, 1 GrantResult, but there was no dialog from Android to ask the user for permission. And it was NOT granted.
  21. John van de Waeter

    Android 13 ask permission for push notification

    Hi Dave, This I tried too, but the inner procedure (if AGrantresult[0]... ) is never called. Also weird that requesting permission to RECEIVE push notifications is calles POST_NOTIFICATIONS...
  22. John van de Waeter

    Android 13 ask permission for push notification

    I tried that, but Where 'XXXXXXXX'= ? Post_notifications is not a member of this class it seems?
  23. John van de Waeter

    ANN: Skia4Delphi v3.4.0

    Hi Vfbb, I installed skia4delphi a couple of months ago, (not via GetIt) and I'm not sure if it's the latest version. Where can I see the installed version number? Tnx, John
  24. 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
  25. John van de Waeter

    How to know how app was started

    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
×