OneSignal / OneSignal-Android-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native Android or Amazon app with OneSignal. https://onesignal.com
Other
592 stars 368 forks source link

[Bug]: HttpClient: Got Response = PATCH - STATUS: 409 - Body #2121

Open michael-winkler opened 2 weeks ago

michael-winkler commented 2 weeks ago

What happened?

DefaultDispatcher-worker-4] HttpClient: Got Response = PATCH - STATUS: 409 - Body: {"errors":[{"code":"user-2","title":"One or more Aliases claimed by another User","meta":{"external_id":"max.mustermann@muster.de"}}]}

Steps to reproduce?

The problem:
I delete myself subscription inside the dashboard. Because Iam there as `[Not Subscribed]`

Then I use:

CoroutineScope(Dispatchers.Main).launch {
    OneSignal.Notifications.requestPermission(false)
}

I allowed the permission BUT I will not receive any notifiaction. Now i go to app settings and disallowed notification permission and enabled it again inside the app settings page.

Now my subscription status inside the OneSignal Dashboard is correct and Iam able to receive notifications.


### What did you expect to happen?

The subscription status should be changed automatic to subscriped after Onesignal.login()

### OneSignal Android SDK version

5.1.14

### Android version

13

### Specific Android models

```Markdown
Samsung A 54

Relevant log output

No response

Code of Conduct

softsan commented 2 weeks ago

@michael-winkler i am also facing the same issue.