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

Catch more type of error from Firebase #932

Open
fgarzonhz opened this issue Jul 23, 2021 · 0 comments
Open

Catch more type of error from Firebase #932

fgarzonhz opened this issue Jul 23, 2021 · 0 comments

Comments

@fgarzonhz
Copy link

What version of PushSharp are you using?

4.0

Describe your issue:

Firebase return an error but using the code from the client only catch the words "unknow error"

in c#
P.pushGoogle2.OnNotificationFailed += (notification, aggregateEx) =>
{ aggregateEx.Handle(ex =>
{
console.write(ex.Message + " : " + ex.StackTrace.ToString()); //here only print "error"

What are the steps required to reproduce this issue?

Firebase return the error: {"multicast_id":99999999,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidApnsCredential"}]}

Please provide any Exception Stack Traces

I saw the pushsharp code and we need to add a new enum to catch InvalidApnsCredential (may suggestio in related in line 203 of file GCmServiceConnection.cs [ static GcmResponseStatus GetGcmResponseStatus (string str) ])

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

No branches or pull requests

1 participant