Users, Friends, and Relationships
This is a Platform SDK feature requiring Data Use Checkup
To use this or any other Platform SDK feature, you must complete a Data Use Checkup (DUC). The DUC ensures that you comply with Developer Policies. It requires an administrator from your organization to certify that your use of user data aligns with platform guidelines. Until the app review team reviews and approves your DUC, platform features are only available for test users.Use the User object and related APIs to retrieve information about your players to customize their experience, help them find their friends, and then join them in social VR experiences with
Rooms.
Age-based feature limitations
When developing your apps, consider the following limitations related to age:
- Child users under 13 (10-12 year olds): Regardless of your app’s self-certification status, child users under 13 cannot access this Platform SDK feature. Implement error-handling for this unsupported feature to maintain a safe and pleasant experience for child users.
To retrieve the user’s Meta Quest account and Meta Quest Name to display, add the Get Meta Quest Identity node to your Blueprint. The Meta Quest account is available synchronously after Login()
is called, while the Meta Quest Name is available asynchronously after OnLoginComplete()
returns.
If you have localized your app content into different languages, you can detect the locale of the user at runtime using the platform SDK or native Android methods. Then, use the locale to determine what language version of your app content you offer that user.
Get the Locale of the User for Link PC-VR device Apps
For example:
const char* locale = ovr_GetLoggedInUserLocale();
// Do something depending on locale value.
The return value (
locale
in this example) is a language-country code string that conforms to
BCP 47 Extension U. This means you can expect a language subtag, a dash, and a country/region subtag. For example, “en-US” represents United States English.
Use the returned locale string to decide what language your app should display and use for this user.
Get the Locale of a User for Android Apps
For apps that run on Quest devices, you get the locale of the user using the Android Locale.getDefault
method.
The returned
Locale object provides the ISO 639 alpha-2 or alpha-3 language code and the ISO 3166 alpha-2 country/region code as properties, and you can these to decide what language your app should display and use for this user.
See the
Locale object in the Android documentation for more information.