Jump to content

how to get browser data in the mobile app


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...