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

chatclient startPushNotifications "Service returned invalid status code" #52

Open
Calfredop opened this issue Jul 8, 2023 · 0 comments

Comments

@Calfredop
Copy link

Calfredop commented Jul 8, 2023

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I'm working on a React Native app that needs to implemet Azure Communication Chat. I've made a Swift native module that should take care of enabling push notification via chatclient. Therefore I've followed the instructions to integrate the iOS sdk on the native part of my app.

What is working:

  • Communication between React Native components and Swift module
  • ChatClient generation (I can list threads)

What is not working:

When I call the chatclient.startPushNotifications method, passig of course the correct deviceToken, I get an error and the push notifications don't get enabled.

Any log messages given by the failure

This is the error throwed by the library

error: client("Failed to start push notifications", Optional(AzureCore.AzureError.client("Failed to start push notifications", Optional(AzureCore.AzureError.client("Registration request failed.", Optional(AzureCore.AzureError.client("Registration request failed.", Optional(AzureCore.AzureError.service("Service returned invalid status code [400]", nil)))))))))]}

Expected/desired behavior

Since the deviceToken is generated correctly and sucesfuly used for other remote push notifications services, it should register just fine for Azure Chat.

OS and Version?

The error is occourring on iOS 13 running on an emulator.

Versions

AzureCommunicationChat iOS SDK 1.3.1

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