fengqing2
V2EX  ›  华为

鸿蒙 socket 长链接如何保活?

  •  
  •   fengqing2 · Aug 14, 2025 · 677 views
    This topic created in 468 days ago, the information mentioned may be changed or developed.
    问下大佬们,跨平台开发适配鸿蒙,socket 长链接有什么保活方案吗? 我看有前台服务但是还是 21 年的 api 。现在似乎都移除了,加了 ohos.permission.KEEP_BACKGROUND_RUNNING 权限也没什么用。难道只能像 ios 一样用推送吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1478 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 16:42 · PVG 00:42 · LAX 08:42 · JFK 11:42
    ♥ Do have faith in what you're doing.