microsoft / microsoft/react-native-windows
Add some mechanism to determine if RNW app is running on xbox console or windows pc
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 17.3k
- Forks
- 1.2k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 33
Description
Proposal:
Add some mechanism exposed through C++ and JS Code to determine if the app is running on xbox console or windows pc.
Bonus: Determine if it's Xbox One vs Xbox Series X?
Some conversations proposed populating a Platform.deviceFamily with appropriate values
Motivation
We want to have a single appxbundle compiled app binary that works in both xbox consoles and windows pc.
A few features aren't working on xbox console at the moment and would like to disable when on the xbox until we can fix bugs.
We might want to have a different reactive UI depending if using game console vs windows. Similar to how we adjust to resolution, size, mobile vs windows.
Open Questions
There are several places this could be added, I am personally unsure which one is best.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by locating the C++ and JavaScript platform-exposure entry points and evaluating the proposed Platform.deviceFamily location; done means the app can distinguish Xbox console from Windows PC, with Xbox One versus Xbox Series X detection as an optional bonus.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, javascript, react-native
- Domain
- desktop-dev, game-dev, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100