Skip to content
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

Prevent try unregister after first success attempt #30

Merged
merged 2 commits into from Feb 12, 2015
Merged

Prevent try unregister after first success attempt #30

merged 2 commits into from Feb 12, 2015

Conversation

danielpassos
Copy link
Collaborator

@danielpassos
Copy link
Collaborator Author

@secondsun @matzew Could you review that?

@matzew
Copy link
Contributor

matzew commented Feb 9, 2015

Perhaps worth to mention the 'new' behavior on here:
https://github.com/danielpassos/aerogear-android-push/blob/prevent-unncessary-unregister/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/PushRegistrar.java#L33-L40

that an ISE is thrown, in case unreg. has been executed before ?

@danielpassos
Copy link
Collaborator Author

@matzew I'm not 100% sure about that, because ISE is an implementation thing,

@qmx
Copy link
Contributor

qmx commented Feb 9, 2015

@matzew if you really want to add info about the exception, then the way is adding a custom exception and then documenting it. Something like AlreadyUnregisteredException mayhap?

@matzew
Copy link
Contributor

matzew commented Feb 9, 2015

that would be OK for me as well

On Mon, Feb 9, 2015 at 12:56 PM, Douglas Campos notifications@github.com
wrote:

@matzew https://github.com/matzew if you really want to add info
about the exception, then the way is adding a custom exception and then
documenting it. Something like AlreadyUnregisteredException mayhap?


Reply to this email directly or view it on GitHub
#30 (comment)
.

Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

@secondsun
Copy link
Contributor

@matzew The request isn't "thrown" in the sense that the developer will wrap the unregister in a try/catch block. The call back's onFailure method will be called with the Exception as the parameter.

@matzew
Copy link
Contributor

matzew commented Feb 9, 2015

👍

@matzew matzew merged commit 6e60a53 into aerogear:master Feb 12, 2015
@matzew
Copy link
Contributor

matzew commented Feb 12, 2015

👍 merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants