이 페이지는 아직 한국어로 번역되지 않아 영문 원문을 표시하고 있습니다.
가이드Platform support
NSGo Game targets six primary build targets (macOS, Windows, Linux, iOS, Android, and Web) and also compiles with NSGo's four experimental targets (HarmonyOS, tvOS, watchOS, and mini programs), though feature availability and CI test coverage differ by target. Every cell below is verified against NSGo v0.3.4 and this repository's build tags and workflows, with links to the upstream issue tracking each gap.
- Supported: works in NSGo
v0.3.4andnsgo-dev/gamewithout missing platform plumbing. - Partial (N): works with platform limits or missing pieces explained in Footnotes.
- Not available: returns an unsupported/unavailable error or is excluded at compile time; links the tracking issue.
- Out of scope: the platform has no native equivalent or the feature does not belong on that target.
Feature matrix
| Feature | macOS | Windows | Linux | iOS | Android | Web | HarmonyOS | tvOS | watchOS | Mini programs |
|---|---|---|---|---|---|---|---|---|---|---|
| 2D rendering | Supported | Supported | Supported | Supported | Supported | Supported | Partial (1) | Supported | Partial (2) | Partial (3) |
| 3D rendering (GPU view) | Supported | Supported | Supported | Supported | Supported | Supported | Not available (nsgo#1521, nsgo#1320) | Not available (nsgo#1317) | Out of scope (nsgo#1318) | Out of scope (nsgo#1505) |
| Audio | Supported | Partial (4) | Supported | Supported | Partial (4) | Partial (5) | Not available (nsgo#1521, nsgo#1320) | Not available (nsgo#1317) | Not available (nsgo#1318) | Not available (nsgo#1505) |
| Keyboard and mouse | Supported | Supported | Supported | Partial (6) | Partial (6) | Supported | Partial (6) | Partial (7) | Out of scope | Out of scope |
| Gamepad | Supported | Supported | Supported | Supported | Supported | Supported | Not available (nsgo#1521, nsgo#1320) | Supported | Out of scope (nsgo#1318) | Not available (nsgo#1505) |
| Touch | Partial (8) | Supported (8) | Supported (8) | Supported | Supported | Supported | Supported | Out of scope | Supported | Supported |
| Haptics | Out of scope | Out of scope | Out of scope | Supported | Supported | Partial (9) | Not available (nsgo#1521, nsgo#1320) | Out of scope | Not available (nsgo#1318) | Not available (nsgo#1505) |
| Motion sensors | Out of scope | Out of scope | Out of scope | Supported | Supported | Partial (10) | Not available (nsgo#1521, nsgo#1320) | Out of scope | Supported | Not available (nsgo#1505) |
| Local saves | Supported | Supported | Supported | Supported | Supported | Partial (11) | Partial (12) | Supported | Supported | Partial (11) |
| OS cloud save | Partial (13) | Out of scope | Out of scope | Supported | Partial (14) | Out of scope | Not available (nsgo#1521, nsgo#1320) | Supported | Not available (nsgo#1318) | Out of scope |
| Self-hosted cloud save | Supported | Supported | Supported | Supported | Supported | Supported | Partial (15) | Supported | Supported | Not available (nsgo#1505) |
| UDP | Supported | Supported | Supported | Supported | Supported | Out of scope | Not available (nsgo#1521, nsgo#1320) | Supported | Supported | Out of scope |
| WebSocket | Supported | Supported | Supported | Supported | Supported | Supported (16) | Partial (16) | Supported | Supported | Not available (nsgo#1505) |
| Game services | Supported | Out of scope | Out of scope | Supported | Partial (17) | Out of scope | Not available (nsgo#1521, nsgo#1320) | Supported | Not available (nsgo#1318) | Out of scope |
| In-app purchases | Supported | Not available (nsgo#1370) | Not available (nsgo#1370) | Supported | Not available (nsgo#1369) | Not available (nsgo#1370) | Not available (nsgo#1370, nsgo#1521) | Supported | Not available (nsgo#1370, nsgo#1318) | Not available (nsgo#1370, nsgo#1505) |
| Local notifications | Supported | Supported | Partial (18) | Supported | Supported | Partial (18) | Not available (nsgo#1521, nsgo#1320) | Out of scope | Supported | Out of scope |
| Remote push | Not available (nsgo#59, nsgo#1323) | Not available (nsgo#59, nsgo#1323) | Not available (nsgo#59, nsgo#1323) | Not available (nsgo#59, nsgo#1323) | Not available (nsgo#59, nsgo#1323) | Not available (nsgo#59, nsgo#1323) | Not available (nsgo#59, nsgo#1323) | Not available (nsgo#59, nsgo#1323) | Not available (nsgo#59, nsgo#1323) | Not available (nsgo#59, nsgo#1323) |
| Steam integration | Partial (19) | Partial (19) | Partial (19) | Out of scope | Out of scope | Out of scope | Out of scope | Out of scope | Out of scope | Out of scope |
| The editor | Supported | Supported | Supported | Out of scope | Out of scope | Out of scope | Out of scope | Out of scope | Out of scope | Out of scope |
| Tested in CI | Supported | Partial (20) | Supported | Partial (21) | Partial (21) | Partial (22) | Not available (nsgo#1521, nsgo#1320) | Not available (nsgo#1317) | Not available (nsgo#1318) | Not available (nsgo#1505) |
Footnotes
- HarmonyOS 2D rendering:
Canvasreplays onto an ArkUICanvas, butcore.Shaderhas no view host on HarmonyOS yet (docs/architecture/harmonyos.md; tracked in nsgo#1521 and nsgo#1320). - watchOS 2D rendering:
Canvasdraws on the SwiftUI host, whileKindShaderrenders as an empty box because watchOS has no Metal view (internal/platform/watchos/watchos.go; nsgo#1318). - Mini programs 2D rendering:
Canvasdraws into an offscreen canvas (canvas2d), WeChat supports pixel images while QQ, Douyin, and Alipay lack image-view pixel binding,nsgo_noshaderdisablescore.Shader, and the 2 MB package cap constrains bundled code and assets (docs/architecture/miniprogram.md; nsgo#1505). - Windows and Android audio:
Env.CanPlayAudio()is true on both (XAudio2 + Media Foundation on Windows; SoundPool + MediaPlayer on Android, with SoundPool's 1 MiB decoded sample cap), whileEnv.CanScheduleAudio()is false (windows/env.goandandroid/protocol.godo not setAudioSchedule, so timed sample scheduling is unavailable). - Web audio: Web Audio (
AudioContext) andHTMLAudioElementare supported, but browsers mute output until the first trusted user gesture (docs/architecture/audio.md; see sound). - iOS, Android, and HarmonyOS keyboard and mouse: external hardware keyboards dispatch
EventKeyDown/EventKeyUp, butEnv.CanLockPointer()andEnv.SupportsCustomCursor()are false (no desktop pointer lock or custom image cursor). - tvOS keyboard and mouse: Apple TV uses the Siri Remote for focus navigation (
ios/keycommands.goskips hardware key commands whenonTV()); mouse pointers and pointer lock are absent (nsgo#1317). - Desktop touch: macOS has no touchscreen hardware and maps mouse presses as finger 0 for views that listen to
OnTouch(macos/macos.go). Windows (WM_POINTERinwindows/touch.go) and Linux (GTK touch events inlinux/callback.go) support multi-touch on touchscreen hardware in addition to pointer input. - Web haptics:
mobile.PlayHapticPatternusesnavigator.vibratewhere the browser implements the Vibration API (primarily Android browsers);mobile.PlayHapticis a no-op and Safari/iOS lacksnavigator.vibrate(web/env.go,web/haptics.go). - Web motion sensors:
WatchMotionreadsDeviceMotionEventandDeviceOrientationEventin secure mobile browser contexts only (Safari requiresRequestPermission(PermissionMotion)from a user gesture); desktop browsers and magnetometers report unavailable (docs/architecture/location-motion.md; nsgo#1208). - Web and mini program local saves:
save.StorageBackend(cx.Storage(), ...)persists to browserlocalStorageor mini program host storage, butcx.DataDir()is empty sosave.FileBackenddoes not apply (pkg/save/backend.go). - HarmonyOS local saves:
internal/platform/harmonyos/harmonyos.gopasses no persistentStoragestore toengine.Start, socx.Storage()falls back to an in-memory store (core.NewStore(nil)) andjs/wasmcannot write directly to host paths inDataDir(nsgo#1521, nsgo#1320). - macOS OS cloud save: Apple iCloud ubiquity containers require a provisioning profile with iCloud entitlements, which NSGo embeds only in Mac App Store builds (
sign.macos_profile); Developer ID and ad hoc builds leave iCloud out and returnErrCloudUnavailable(docs/architecture/cloud.md). - Android OS cloud save: Google Play Games Saved Games works via
CloudStorage.javareflection only when the Play Games Services SDK is packaged with the app/host and the player is signed in; otherwiseEnv.CanUseCloudStorage()is false andliveops.PlatformCloudreturnsErrCloudUnavailable(docs/architecture/cloud.md,android/protocol.go). - HarmonyOS self-hosted cloud save:
liveops.CloudClientruns Go'snet/httpover ArkWeb'sfetch, requiring network permission and CORSallowedOrigins, and is not tested in CI (nsgo#1521, nsgo#1320). - Web and HarmonyOS WebSocket:
pkg/online/netplay/ws_js.gowraps the browserWebSocketglobal for clientDialWebSocketonly (ListenWebSocketis native-only). On HarmonyOS this runs inside ArkWeb and is not tested in CI (nsgo#1521, nsgo#1320). - Android game services: the Go wire protocol (
gameservices_android.go) is implemented, but NSGov0.3.4's prebuiltNsgoView.javadoes not yet set the Play Games Services capability bit (more & 64), soEnv.CanUseGameServices()is false andachievements/leaderboardreturnErrUnsupporteduntil the Java reflection hook lands (docs/architecture/gameservices.md). - Linux and Web local notifications: immediate notifications work, and
Env.CanScheduleNotifications()is true, but scheduled notifications are held in memory bydriver.NotificationSchedulerand fire only while the app or browser page remains open (linux/env.go,web/env.go,docs/architecture/services.md). - Steam integration:
pkg/online/presence(ISteamFriendsviapurego),pkg/modding(SteamWorkshopviapurego), andliveops.DirCloud(Steam Auto-Cloud) build and run on macOS, Windows, and Linux, but running NSGo games under the Steam client, Steam Linux Runtime, Steam Deck / gamescope, Steam Overlay, and Steam Input is still being verified in nsgo#1228. - Windows CI:
.github/workflows/check.ymlcross-compiles and vetswindowswithgo tool nsgo check, but.github/workflows/test.ymldoes not yet rungo tool nsgo test ./...on a Windows runner (tracked in game#1305). - iOS and Android CI:
.github/workflows/check.ymlcompiles and vetsios,ios_simulator, andandroidwithgo tool nsgo check, but runtime tests and example smoke runs on an iOS simulator and Android emulator are not yet in CI (tracked in game#1306). - Web CI:
.github/workflows/check.ymlcross-compiles and vetswebwithgo tool nsgo checkand.github/workflows/website.ymlbuilds the WebAssembly playground examples, but headless browser runtime tests do not run innsgo-dev/game's CI.
How each row is decided
Reviewers can keep the matrix current by checking these exact runtime guards, build tags, and workflow files:
| Feature | Runtime check or build tag | Deciding source |
|---|---|---|
| 2D rendering | core.Canvas (driver.ItemCanvas), core.Pixels, core.Shader, nsgo_noshader |
NSGo internal/platform/*/canvas*, internal/platform/watchos/watchos.go, docs/architecture/harmonyos.md, docs/architecture/miniprogram.md |
| 3D rendering (GPU view) | core.Env.SupportsGPU() |
NSGo core/env.go (SupportsGPU), gpu/view.go, internal/platform/ios/env.go, docs/architecture/gpu.md |
| Audio | core.Env.CanPlayAudio(), core.Env.CanScheduleAudio() |
NSGo core/env.go (CanPlayAudio, CanScheduleAudio), internal/platform/ios/env.go, internal/platform/harmonyos/env.go, internal/platform/miniprogram/env.go, docs/architecture/audio.md |
| Keyboard and mouse | driver.EventKeyDown, core.Env.CanLockPointer(), core.Env.SupportsCustomCursor() |
NSGo core/env.go (CanLockPointer, SupportsCustomCursor), internal/platform/ios/keycommands.go, internal/platform/harmonyos/keyboard.go; game pkg/input |
| Gamepad | core.Env.SupportsGamepads(), nsgo/gamepad build tags |
NSGo core/env.go (SupportsGamepads), gamepad/gamepad_apple.go, gamepad/gamepad_other.go ((ios && nsgowatch) || (js && wasm && (nsgominiprogram || nsgoharmony))) |
| Touch | driver.EventTouch, core.Env.Pointer() |
NSGo core/env.go (Pointer), internal/platform/macos/macos.go, internal/platform/windows/touch.go, internal/platform/linux/callback.go, internal/platform/ios/touch.go, docs/architecture/device-differences.md |
| Haptics | mobile.PlayHaptic, core.Env.CanPlayHapticPattern() |
NSGo core/env.go (CanPlayHapticPattern), internal/platform/ios/ios.go, internal/platform/android/protocol.go, internal/platform/web/haptics.go, docs/architecture/services.md |
| Motion sensors | core.Scope.WatchMotion, core.PermissionMotion |
NSGo internal/platform/apple/sensors.go, internal/platform/watchos/watchos.go, docs/architecture/location-motion.md |
| Local saves | core.Scope.Storage(), core.Scope.DataDir() |
Game pkg/save/backend.go; NSGo internal/platform/web/web.go, internal/platform/harmonyos/harmonyos.go, internal/platform/miniprogram/miniprogram.go |
| OS cloud save | core.Env.CanUseCloudStorage(), nsgo/cloud (darwin, android, !darwin && !android) |
Game pkg/online/liveops/cloud_platform.go (CloudProviderFor, PlatformCloud); NSGo core/env.go (CanUseCloudStorage), cloud/cloud_apple.go, cloud/cloud_android.go, cloud/cloud_other.go, docs/architecture/cloud.md |
| Self-hosted cloud save | net/http client (liveops.CloudClient); server SQLite/Postgres !js && !wasip1 |
Game pkg/online/liveops/cloudclient.go, pkg/online/cloudsave/doc.go |
| UDP | //go:build !js |
Game pkg/online/netplay/udp_native.go, pkg/online/netplay/udp_session_native.go |
| WebSocket | //go:build !js and //go:build js && wasm (js.Global().Get("WebSocket").Truthy()) |
Game pkg/online/netplay/ws_native.go, pkg/online/netplay/ws_js.go |
| Game services | core.Env.CanUseGameServices(), nsgo/gameservices (darwin && !nsgowatch, android, other) |
Game pkg/online/achievements/services.go, pkg/online/leaderboard; NSGo core/env.go (CanUseGameServices), gameservices/gameservices.go, internal/platform/android/java/dev/oneo/nsgo/NsgoView.java, docs/architecture/gameservices.md |
| In-app purchases | core.Env.CanPurchase() |
Game pkg/online/liveops/purchases.go (Purchases.Available); NSGo core/env.go (CanPurchase), internal/platform/macos/macos.go, internal/platform/ios/env.go |
| Local notifications | core.Scope.ShowNotification, core.Env.CanScheduleNotifications() |
NSGo core/env.go (CanScheduleNotifications), internal/platform/ios/env.go, internal/platform/watchos/watchos.go, docs/architecture/services.md |
| Remote push | No public API in NSGo v0.3.4 |
NSGo docs/architecture/remote-push.md |
| Steam integration | //go:build (darwin && !ios) || (linux && !android) || windows |
Game pkg/online/presence/steam_unix.go, pkg/online/presence/steam_windows.go, pkg/online/presence/steam_unsupported.go, pkg/modding/workshop_steam.go |
| The editor | //go:build ios || android || js (disabled stubs) |
Game pkg/editor/agent_runner_other.go, pkg/editor/run_game_unsupported.go, pkg/editor/build_device_other.go |
| Tested in CI | CI workflow matrices and nsgo check target lists |
Game .github/workflows/test.yml, .github/workflows/check.yml |
Experimental targets
HarmonyOS, tvOS, watchOS, and mini programs are outside the first stage of NSGo Game and are not built or vetted by this repository's CI. In NSGo v0.3.4, all four disable Env.SupportsGPU() and Env.CanPlayAudio(), so a 3D game renders an empty fallback view and any game using pkg/sound runs silent:
- HarmonyOS: preview ArkWeb + ArkUI target; lacks GPU views, audio, gamepads, haptics, motion sensors, persistent
core.Storage, native notifications, UDP, and game services (nsgo#1521, nsgo#1320). - tvOS: shares the iOS backend with gamepads, Game Center, StoreKit, and iCloud, but
ios/env.godisables audio and GPU views until tvOS verification finishes (nsgo#1317). - watchOS: SwiftUI host with 2D
Canvas, touch, motion sensors, local saves, and local notifications, but no Metal/GPU view, no audio, no gamepads, no haptics, no iCloud, and no Game Center (nsgo#1318). - Mini programs (WeChat, QQ, Alipay, Douyin): logic-layer
js/wasmwithnsgo_noshaderand a 2 MB package cap; no GPU view, no audio, no gamepads, no haptics, no motion sensors, and no standard browserfetchorWebSocketglobals (nsgo#1505).
Upstream gaps
Every "Not available" or runtime-blocked cell in the matrix points to an open tracking issue:
| Issue | Scope |
|---|---|
| nsgo#1369 | In-app purchases on Android (Google Play Billing) |
| nsgo#1370 | In-app purchases on Windows, Linux, Web, and other targets |
| nsgo#59 | Remote push notifications (APNs and FCM) |
| nsgo#1323 | Remote push open design decisions and provider adapters |
| nsgo#1521 | HarmonyOS platform parity |
| nsgo#1320 | HarmonyOS preview target gaps |
| nsgo#1317 | Apple TV (tvOS) remaining gaps (audio, GPU view) |
| nsgo#1318 | Apple Watch (watchOS) remaining gaps |
| nsgo#1505 | Mini programs larger apps and 2 MB package constraints |
| nsgo#1208 | Web motion sensors (WatchMotion) |
| nsgo#1228 | Steam client, Steam Linux Runtime, Steam Deck, overlay, and Steam Input verification |
| game#1305 | Running the nsgo-dev/game test suite on Windows in CI |
| game#1306 | Smoke-running examples on an iOS simulator and Android emulator in CI |
Out of scope
- Game consoles (Nintendo Switch, PlayStation, Xbox): console SDKs are under NDA and require C toolchains, whereas NSGo and NSGo Game are pure Go with no hand-written C.
- VR and AR: currently out of scope until NSGo exposes an XR runtime (#495; see VR and AR).
- Target-specific exclusions: desktop operating systems have no OS-wide cloud save daemon (use
liveops.DirCloudwith Steam Auto-Cloud orliveops.CloudClientover cloudsave), desktop targets have no mobile haptic or Core Motion APIs, browsers cannot open raw UDP sockets, Steamworks is desktop-only, and the visual Scene Editor is a desktop tool.
See Building and Shipping for packaging, signing, notarization, store channels, and nsgo check commands across the six primary build targets.