Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

6 Neutral

Technical Information

  • Delphi-Version
    Delphi 10.3 Rio

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. TomDevOps

    Debugger in 10.3.3 is useless :'(

    Once I had issue with debugger showing breakpoints in completely wrong places, fixed by changing all LF to CRLF in all project source filesπŸ˜„
  2. TomDevOps

    Apple Pay / Google Pay - get card token for PayLane

    Nope, this is not the way it works. As per instructions: this PayLane method allows to perform payments by using tokens provided by ApplePay / GooglePay. And now I try to figure it outπŸ™‚ The exact quote is this: If user is logged on Android device with Google Account where the card is already added, you only get the token from it and pass it to the PayLane gateway. And guess what, Google Web API works for that nicely, but I have to ask user to login separately to Google Account using TWebBrowser, then I can process it via JavaScript, get the token from Google and use PayLane gateway to process the payment. This unfortunately requires separate logging and I think should be doable using Android API - by using wallet service, I'm looking into that now πŸ™‚ The same is valid for Apple, but have no clue how to start, I'm going thru Apple docs and will talk with one Obj-C developer next week.
  3. TomDevOps

    Apple Pay / Google Pay - get card token for PayLane

    I have some budget, if anyone have experience in such stuff, please do let me know if you would be interested in this, then we can cut-deal for some paid work. Many thanks!
  4. TomDevOps

    Apple Pay / Google Pay - get card token for PayLane

    No, nothing actually. This is what I have already and the case here is customer must provide card data, meaning you take out your card from wallet and re-type numbers. Once that done, you can store ID and re-use it for re-sale etc. But more and more people are using phones that stores "tokenized" card data so you do not have to re-type anything, if you want to buy something, you do it at one-click. I'm searching on how to use those PayLane gateways with iOS and Android, but it may seems to be impossible? I'm now looking for native developers that writes in JAVA/Obj-C/Swift and have such experience.
  5. All, does anyone have an idea how (using FMX for iOS/Android) check and get saved card tokens so it can be used for payments? I use PayLane for payments, my setup is that mobile app talks with my WebAPI on Azure and from there it does request to PayLane REST API. It works great for ordinary credit card payments, but more and more people start using phones for paying (it is convenient and you don't have to swiping your credit card). PayLane offers two endpoints just for that: https://devzone.paylane.com/function-reference/#applepay-sale https://devzone.paylane.com/function-reference/#googlepay-sale It is easy to use πŸ™‚ ...but how to get those tokens? I would need help/guidance from more experienced users. Thanks!
  6. TomDevOps

    Payment - Monetization - Good international PSP

    I use PayLane for Credit Cards. They have nice and easy to use REST with good documentation: https://devzone.paylane.com.
  7. It does not... you must abandon Delphi if you want to have such nice things, not that the language is the problem, but FMX, and if you must really stick with Delphi only, then go ahead with FGX πŸ™‚
  8. If you need to have sleek look... do not use FMX, use Flutter. I use both and the difference is huge, I keep FMX for one large product that cannot be replaced quickly, but all new stuff is done in Flutter today and I do not see bright future for FMX now.
  9. TomDevOps

    Android app - hardware acceleration for the form

    So far I got those that often crashes at start due to TMapView component (all Android 9): Galaxy A40 (a40) Galaxy A50 (a50) Galaxy S9 (starlte) Galaxy S8 (dreamlte) Galaxy A7 (2018) (a7y18lte) LG G7 ThinQ (judyln) Galaxy S10e (beyond0) P10 (HWVTR) Redmi Note 7 (lavender) MI 8 (dipper) Galaxy S8+ (dream2lte) Galaxy Note8 (greatlte) Honor 10 (HWCOL) POCO F1 (beryllium) MI 9 (cepheus) Galaxy S10+ (beyond2) Galaxy A70 (a70q) Mate 20 Pro (HWLYA) nova 3 (HWPAR) Redmi Note 5 Pro (whyred) If I have TMapView with hardware acceleration enabed, it crashes with eglCurrentContext error. If I disable hardware acceleration, they do not crash, but map once showed, cannot be hide. The exception is as follows: I have solved the issue by removing the TMapView component completly, no Google services at all. I have replaced with TWebBrowser and Open Street Map (hardware acc. is on) - it does the job for me πŸ™‚
  10. Probably it won't as Z-order does not work. I have check, TWebBrowser with TRectangle on it, TWebBrowser is always drawn on top of everything. What you want to achieve is simply not possible with FMX, I have done some test while I need to implement mapbox via web browser, and seems that noting can be done here.
  11. TomDevOps

    Android app - hardware acceleration for the form

    Well, at least I can disable it in Android manifest and see results in the app, so I guess it is possible and affects FMX. My issues came from TMapView, on Android 9 it crashes the app, even if I followed Dave's post: https://www.delphiworlds.com/2019/02/a-fix-for-using-tmapview-on-android-9-devices/, it still won't help. On many Adnroid 9 devices with hardware acceleration enabled and TMapView with Delphi 10.3.2, it will crash the application with error message regarding eglMakeCurrent (GLSurfaceView issue?). After lots of digging, disabling acceleration prevents from crashing, and TMapView works almost OK, almost because once showed, cannot be closed and user is forced to exit the application. So I decided to ditch TMapView completely and with hardware acceleration enabled it seems to be fine. And now I have replaced TMapView with TWebBrowser showing MapBox πŸ™‚ And it works even better, it requires some more effort on the back-end side, but it was worth it. Never the less, I was thinking about abilities to having GPU on/off for the views, much like native Android app would have. No easy way out, but that is the cost of cross-platform I guess πŸ™‚
  12. If I'm not wrong, this my be due to fact that TWebBrowser is not painted by FMX, so you cannot control it the same way as other FMX controls. It is native component drawn by the OS, which is always on the top (no Z-Order in FMX?). I play a lot with TWebBrowser myself now and see some limitations.
  13. All, Does any one know how to enable hardware acceleration for the view (form)? All I know so fat is I can have acceleration setup at the application level or at the activity level (Android manifest). Also, I know that in Delphi Android app I can have only one activity, which is FMXNativeActivity. Question is, is it possible to activate it for specific form? The case here is, I need to have acceleration disabled at application level, so low-end smartphones can run my application, but one of my form uses TWebBrowser, this requires acceleration to render more demanding pages. Many thanks for any clues!
  14. TomDevOps

    Delphi Rio 10.3.2 and API28 crashes Android devices

    Yep, you are probably right πŸ™‚ After digging in this subject, my final conclusion is not to use hardware acceleration by default, so in the Android manifest it is better to turn it off and use System Default for Form Quality - always, then if necessary/or justified by the app, turn it on at the run-time, then even if crashes, user will be able to recover and still use the app. This why I think I can guarantee that the app runs on even very cheap Chinese phones πŸ™‚ And while I do not develop game, I do not need GPU acceleration, fortunately, tests shows that without gpu acceleration, my app runs smoothly on cheap Samsung and Xiaomi. The only downside is TMapView - on Android 7 fails to bootup, and Android 8, 9 and 10 it always stay on top, even if you hide/close it πŸ™‚ The solution is to turn GPU acceleration on, or if cannot be handled by the device, replace with WebView with rendered map, it works for me πŸ™‚
  15. TomDevOps

    Delphi Rio 10.3.2 and API28 crashes Android devices

    I reply to myself, but maybe usefull to others πŸ™‚ After implementing fixes from this GitHub repo (unofficial, mostly targeted 10.3.1 so re-check and adjust for 10.3.2), it resolved my issues: http://git.kngstr.com/KngStr/delphi-fixes/src/master/10.3.1/Fixes