Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーがモバイルまたは PC を介してアプリケーションにログインしているかどうかを知るにはどうすればよいですか?どうすればそのユーザーを追跡できますか?どのデバイスがログインに使用されているかを調べるメカニズムが Java にありませんか?
単純な JNSI を使用して取得できます。
private native String getUserAgent() /*-{ return navigator.userAgent.toLowerCase(); }-*/;
私はuserAgentを取得するためにJavaコードを使用しました:
private String UserAgent = Navigator.getUserAgent()