Jump to content

how to get browser data in the mobile app


robinhodemorais

Recommended Posts


 

I'm trying to get some data from a mobile application, but the user's browser, version and operating system does not return

 

procedure TMainmForm.UnimFormShow(Sender: TObject);
var C : TUniClientInfoRec;
  SessionID:String;
  IPAddress:String;
  BrowserType: string;
  BrowserVersion: Integer;
  OSType: string;
begin
  SessionID:=UniApplication.UniSession.SessionID;
  IPAddress:=UniApplication.RemoteAddress;
  C:=UniApplication.ClientInfoRec;
  BrowserType:=C.BrowserType;
  BrowserVersion:=C.BrowserVersion;
  OSType:=C.OSType;

  criaArquivoLog('Browser: '+BrowserType);
  criaArquivoLog('vVersaoBrowserUsuario: '+IntToStr(BrowserVersion));
  criaArquivoLog('vSOUsuario: '+OSType);
  criaArquivoLog('SessionID: '+SessionID);
  criaArquivoLog('IPAddress: '+IPAddress);
end;

 

this is my return

 

Quote

Browser: 
vVersaoBrowserUsuario: 0
vSOUsuario: 
SessionID: yU2E8P8xUK1079AB450
IPAddress: 127.0.0.1
 

 

Link to comment
Share on other sites

7 minutes ago, robinhodemorais said:

I'm trying to get some data from a mobile application, but the user's browser, version and operating system does not return

Hello,

Can you also try this demo?:

\FMSoft\Framework\uniGUI\Demos\Touch\Detect Platform

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...