V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
herozem

[Go] 开箱即用的 iOS 推送服务

  •  
  •   herozem · Jul 17, 2017 · 1622 views
    This topic created in 3211 days ago, the information mentioned may be changed or developed.

    https://github.com/jiajunhuang/obito

    支持的功能

    • 按用户推送
    • 按标签推送
    • 重传
    • 记录 badge
    • 过期清理

    使用指南

    首先,需要 iOS 端配合做好以下工作:

    • app 在首次启动之后在沙箱内生成一个 uuid 作为唯一识别码
    • 每次打开 app 的时候获取 device_token 并且和上一次对比,如果发生了变化,则需要 调用 /report 上报新的 device_token ,完成 UUIDdevice_token 配对的更新
    • 每次打开 app 需要调用 /badge/clear 接口清除服务端存储的 badge 数量。
    1 replies    2017-07-19 20:19:14 +08:00
    herozem
        1
    herozem  
    OP
       Jul 19, 2017
    优化了一下重试逻辑。增加了最大重试次数
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2469 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:25 · PVG 10:25 · LAX 19:25 · JFK 22:25
    ♥ Do have faith in what you're doing.