Skip to content

新增推送 URL 和 Key 二维码展示 - #377

Merged
Finb merged 2 commits into
Finb:masterfrom
SiAgentBuild:feature/push-qrcode
Oct 19, 2026
Merged

Finb merged 2 commits into
Finb:masterfrom
SiAgentBuild:feature/push-qrcode

Conversation

@SiAgentBuild

@SiAgentBuild SiAgentBuild commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

背景

在备用机、短信转发器等工具中配置 Bark 推送地址时,手动输入 device key 容易出错,而这些设备通常缺少方便的文本传输渠道。通过展示二维码,其他设备可以使用系统相机扫码后复制粘贴,无需目标 App 本身支持扫码。

改动

  • 首页复制菜单新增「显示二维码」入口
  • 支持通过分段控件切换完整推送 URL 和单独 Key 的二维码
  • 页面同步显示明文,方便扫码后核对
  • 使用系统 CIQRCodeGenerator 本地生成,无新增第三方依赖
  • 二维码置于白色容器中,保证深色模式下依然可扫描
  • 补充 en / zh-Hans / ja / tr 本地化文案

效果演示

复制菜单新增「显示二维码」:

Screenshot iPhone Duo 2026-10-19 at 10 06 12

URL / Key 二维码展示页:

Screenshot iPhone Duo 2026-10-19 at 10 06 23

截图中的 DEMOKEY1234567890 为模拟器演示数据。

验证

  • xcodebuild 编译通过
  • xcodebuild test:1 test in 1 suite passed
  • 已在 iOS 27.1 模拟器实际打开二维码页面,确认 URL 二维码与明文内容一致

Resolve #376

@Finb

Finb commented Oct 19, 2026

Copy link
Copy Markdown
Owner

哈喽,感谢 PR
我大概看了下,需要移除掉 QRCodeGeneratorTest.swift 文件,其他没啥问题

@Finb
Finb merged commit 1600b82 into Finb:master Oct 19, 2026
@SiAgentBuild
SiAgentBuild deleted the feature/push-qrcode branch October 19, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

希望支持在 App 内展示推送 URL 二维码,方便其他设备扫码配置

2 participants