GithubHelp home page GithubHelp logo

Comments (7)

nathany avatar nathany commented on July 17, 2024

This would be similar to the NullInt64 type in the sql package. 👍

from apns.

taylortrimble avatar taylortrimble commented on July 17, 2024

👍

from apns.

nathany avatar nathany commented on July 17, 2024

Before the PR from @themartorana, go-libapns was just using -1 to reset the badge rather than 0 (which is omitted, meaning no change).

anachronistic/apns uses an interface for different types of Alerts. That could be another option for the badge.

from apns.

themartorana avatar themartorana commented on July 17, 2024

The biggest issue I had with -1 is that the struct is initialized with 0, a valid (and badge-clearing) value. So unless you hide the struct but give it a public initializer method, its default state is to clear the badge.

from apns.

themartorana avatar themartorana commented on July 17, 2024

Ping on this - looks like we're still using a pointer. I can quickly submit a NullInt64-esque solution like joekarl/go-libapns#8 (my preferred method). Thoughts?

from apns.

taylortrimble avatar taylortrimble commented on July 17, 2024

Go for it!

On Thu, Sep 3, 2015 at 12:32 PM, David Martorana [email protected]
wrote:

Ping on this - looks like we're still using a pointer. I can quickly submit a NullInt64-esque solution like joekarl/go-libapns#8 (my preferred method). Thoughts?

Reply to this email directly or view it on GitHub:
#38 (comment)

from apns.

nathany avatar nathany commented on July 17, 2024

closed with #60

from apns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.