01-10-2025 12:44 PM - edited 01-11-2025 09:49 AM
Background:
I have a rift and quest app in the Meta Store (they are grouped together). I created Achievements and Leaderboards in the Meta Horizons Dashboard. Also requested and gotten permission in Data Use Checkup for User ID, User Profile and Deep Linking (all which appeared to be required). Using UE 5.4.4 from Epic launcher and installed MetaXR and MetaXR Platform plugins in the project's plugin folder. Both are enabled.
The MetaXR Platform appears to get initialized (in the game instance, the event OvrPlatformSubsystemStarted gets called w/ a boolean set to true). Immediately after Start Message Pump then Entitlement Get Is Viewer Entitled and Get User Access Token are called, the latter two return on success.
Problem:
The problem is the documentation for updating Achievements and Leaderboards. It appears the documentation instructs one to use the generic Online nodes: Get Cached Achievement Description, Get Cached Achievement Progress, Write Achievement Progress, Read Leaderboard Integer and Write Leaderboard Integer. Unfortunately they do nothing. Either return errors or say it's fine. Regardless, the Dashboard never gets updated.
Solution?
I then started looking at the nodes from the OVR Platform instead: Leaderboard Get Enteries, Fetch Leaderboard Entry Page, Achievements Unlock, Leaderboard Write Entry and Achievements Add Count (for counting achievements). This seems to work mostly. Leaderboards can be updated and read (e.g. at start) and Simple Achievements can be unlocked. Count Achievements don't appear to unlock when Target value is reached.
Questions:
Thank you for any ideas/answers.
01-13-2025 03:58 PM
Some answers....
Any further clarification on 1. and 6. would be useful.