Jump to content

John van de Waeter

Members
  • Content Count

    71
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by John van de Waeter

  1. 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
  2. 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.
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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.
  9. 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?
  10. 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
  11. 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
  12. 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
  13. 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! 🙂
  14. 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.
  15. 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...
  16. 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?
  17. 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
  18. 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
  19. 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
  20. John van de Waeter

    iOS, Metal, Bitmaps, RGB becomes BGR?

    Hi All, I use Metal in a iOS FMX project like: if TUIScreen.Wrap(TUIScreen.OCClass.mainScreen).nativeScale=TUIScreen.Wrap(TUIScreen.OCClass.mainScreen).Scale then begin GlobalUseMetal:=true; GlobalEventDrivenDisplayUpdates:=false; GlobalPreferredFramesPerSecond:=60; end; I use Media-Camera action TakePhotoFromCamera OnDidFinishTaking and assign the bitmap to a TImage.Bitmap. This used to work okay, but now on Delphi11 it produces an image in which Red and Blue are interchanged. Same thing happens if I paste an image from the clipboard. Same thing happens if I get an image from the gallery. Image.Bitmap.Loadfromfile('animage.jpg') and dito .png works okay. If I turn off Metal, all is okay. Tested on iPhone5 and iPhone8. Any thougts? tia, John
  21. John van de Waeter

    iOS, Metal, Bitmaps, RGB becomes BGR?

    Thanks VFBB, I'll give it a try! :)
  22. John van de Waeter

    iOS, Metal, Bitmaps, RGB becomes BGR?

    Hi VFBB, What is the minimal Android version supported? On Android 6 I get an OpenGLES error (3009)... Cheers, John
  23. John van de Waeter

    TLocationSensor on Android 12

    Yes, Thanks Marc! :)
  24. John van de Waeter

    iOS, Metal, Bitmaps, RGB becomes BGR?

    Sjordi, yes, I did.
  25. John van de Waeter

    iOS, Metal, Bitmaps, RGB becomes BGR?

    Done 🙂 I'm always modest and reluctant before reporting an issue, cause most of the time it turns out to be my mistake....
×