Skip to main content
ArcBlock Community

Platform & Device Type Display as "Unknown" on Aistro Session Management

JM โ€œcryptotestnetโ€ Morales
Support
aistrobugpriority-lowqualifiedrewarded

image.png

๐Ÿงพ Summary: Under Session Management, both Platform and Device Type fields show โ€œUnknownโ€, even though the session was created from a valid device and browser.

๐Ÿงช Steps to Reproduce:

  1. Log in to your Aistro account.
  2. Go to: ๐Ÿ‘‰ https://www.aistro.io/.well-known/service/user/settings?locale=en
  3. Scroll down to the Session Management section.
  4. Observe the Platform and Device Type columns.

๐Ÿ’ฅ Actual Result:

  • Both Platform and Device Type show โ€œUnknownโ€ for sessions.

โœ… Expected Result:

  • Platform and device type should correctly identify the userโ€™s environment, for example:
    • Platform: Windows, macOS, Android, iOS
    • Device Type: Desktop, Mobile, Tablet

โš™๏ธ Possible Cause:

  • User-Agent data not being parsed correctly.
  • Missing or outdated device detection logic in session tracking module.
  • Backend session record missing platform/device mapping fields.

๐Ÿงฑ Severity: ๐ŸŸ  Moderate ๐ŸŽฏ Priority: Medium ๐Ÿ“‚ Category: Session Management / Device Detection

๐Ÿ’ก Suggested Fix:

  1. Integrate a User-Agent parser (e.g., ua-parser-js or device-detector-js) to detect OS and device type accurately.
  2. Ensure backend captures and stores the platform/device data upon login session creation.
  3. Display parsed results in the Session Management UI.

1 reply

zhanghan11 months ago

In fact, we have already used the UA parser-related libraries; the "unknown" shown here is actually due to some issues with the recorded data.

We will properly consider how to optimize this issue, but it is not a high priority.

Reply