Skip to content

[Bug]: iOS Service extension used only every second time #147

@Hunv

Description

@Hunv

What happened?

I implemented the iOS part regarding https://documentation.onesignal.com/docs/en/net-sdk-setup#ios-setup.
After that I tried to send test messages (push) via the OneSignal Page. I recognized, that the Badge of my app is only updated every second notification. I tested a bit and regonized that the NotificationServiceExtension is called only every second time.
It also makes no difference if I let OneSignal handle the badge or if I do it manually.

Steps to reproduce?

1. Setup a new Dotnet project
2. Implement OneSignal like described in https://documentation.onesignal.com/docs/en/net-sdk-setup#ios-setup
3. Build and run your app
4. Send 2 (or more) notifications. The badge will only update every second time.

What did you expect to happen?

Badge is updated on every new notification.
The NotificationServiceExtension is used on every new notification.

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions