-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move away from pointers for badge field? #38
Comments
This would be similar to the NullInt64 type in the sql package. 👍 |
👍 |
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. |
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. |
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? |
Go for it! On Thu, Sep 3, 2015 at 12:32 PM, David Martorana notifications@github.com
|
closed with #60 |
The text was updated successfully, but these errors were encountered: