Jump to content

PavelX

Members
  • Content Count

    14
  • Joined

  • Last visited

Posts posted by PavelX


  1. After a long research I have abandoned the idea. It looks very difficult for Android.

     

    I have found one delphi implementation for FastCGI

    https://github.com/EvgeniyKorepov/FastCGIClient/blob/master/UnitFastCGI.pas

    But I cannot find php (php-fpm) binaries for all platforms especially for android

    And also I have no Idea if will work. 

    How can I start FastCGI daemon if android 10 has removed the execute permission for app home directory?

     

    Thank you very much,

    Pavel


  2. Hi,

     

    Just wondered does any of you guys,  know / has any experience  on  how to allow TIdHTTPServer run a PHP script file (cross platform LINUX/MACOS/WINDOWS/ANDROID)

    *Note - Starting with android 10 exec is forbidden.

    https://developer.android.com/about/versions/10/behavior-changes-10  - Removed execute permission for app home directory

     

    A starting point with some code examples will be greatly appreciated.

     

    Thank you in advance,

    Pavel

     


  3. Thank you very much Dave, but when I try to compile  I get the following linker error (Delphi 10.4.1)

     

    [DCC Error] E2597 Undefined symbols for architecture arm64:
        Error: "_SSL_COMP_free_compression_methods", referenced from:      __ZN26Idsslopensslheaders_static38SSL_COMP_free_compression_methods_funcEv in IdSSLOpenSSLHeaders_static.o;
      ld: symbol(s) not found for architecture arm64

    [DCC Fatal Error] F2588 Linker error code: 1 ($00000001)

     

    I have found many compiled libs but none of them worked for me.

    However, after this error I have found the following topic

    https://community.idera.com/developer-tools/platforms/f/ios-platform/72356/rad-studio-10-4-ios-arm64-symbol-not-found

    These are working correctly

    https://github.com/LazyClutch/openssl-for-i386-x86_64-armv7-armv7s-arm64

     

     

    Thanks again,

    Pavel


  4. Hi,

     

    I try to run the following code on Android (10.4 Sydney)

     

    fn:=TPath.Combine(TPath.GetSharedDocumentsPath(),'OLA');

    TDirectory.CreateDirectory(fn); // or ForceDirectories(fn) -> I tried both functions
     if TDirectory.Exists(fn,false) then
        showmessage('Ok')
      else
        showmessage('Failed');

     

    And the code fail. The same code works without any problem with 10.3.3 (using the same phone)

     

    Note:

    On both environments I have used default User Permissions. including "Write external storage" 

     

    Did you encountered this problem? - how did you solved?

     

    Thank you in advance,

    Pavel

     

     

     


  5. Hi,

     

    As you may know the onShouldStartLoadWithRequest is not working with FMX.TWebBrowser on Windows and Linux platforms.

    Is OK with Android and MacOS

     

    A bug report has been filled a long time  (5 years ago)  and reported again and again

    https://quality.embarcadero.com/browse/RSP-11206 27/May/15 2:08 AM

    https://quality.embarcadero.com/browse/RSP-24414/May/19 2:34 AM

    the actual status is " Unresolved" without any other reply or solution

     

    For me  this event is very useful when I try to execute a delphi function from the web browser (javascript)

     

     

    EX:

    ==== HTML / JAVASCRIPT BROWSER


    <div id="fresult"></div>
    <button type="button" onclick="callDelphi()">Call delphi function</button>


    <script>

    function callDelphi(){

        window.location.href='https://www.fake.com/?func=HiDelphi';

    }


    function setResult(dresult){

       document.getElementById('fresult').innerHTML=dresult;

    }


    </script>


    ==== DELPHI UNIT


    procedure TForm1.wb_ViewShouldStartLoadWithRequest(ASender: TObject; const URL: string);
    begin

        if pos('www.fake',url)>0 then
        begin

             wb_View.Stop; /// IMPORTANT here we stop the browser

             if pos('HiDelphi',URL)>0 then

               wb_View.EvaluateJavaScript('setResult('' Hi from Delphi  '')');

       end;

    end;

     

     

    I am just wondering if you have another solution to call a delphi function from FMX TWebBrowser (a cross platform solution)

    The example is working only with Android and MacOS .

     

    For Windows I have used Chromium FMX (another web browser component from https://github.com/salvadordf/CEF4Delphi)

    I need one source code for multiple platforms and at this moment this is not possible because of this bug

     

    Did you know how to create/modify/use other strategy with FMX.TWebBrowser to achieve this? - stop the browser before load/process any URL?

     

    Thank you in advance.

     

     

     

     

     


  6. 2 hours ago, Rollo62 said:

    I think Android64 doesn't even start on Android32 OS, and the selection of libraries can be done in the deployment.

    I don't think there is a problem about the opportunity of existence of ANDROID64

    you have IOS32 , IOS64 and IOS, also you have MSWINDOWS, WIN32, WIN64  and so on for LINUX, MACOS, POIX ....

×