OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 215 forks source link

[Bug]: Badge not working in iOS with "Increase by" option #893

Open devsideal opened 6 months ago

devsideal commented 6 months ago

What happened?

Badge not working in iOS with "Increase by" option, alwasy showing only 1 count.

https://github.com/OneSignal/OneSignal-Flutter-SDK/assets/91250232/432e9410-bee2-447d-a193-aff73214150b

Steps to reproduce?

1. Added package successfully
2. Followed all the steps given here https://documentation.onesignal.com/docs/badges
3. Send push from OneSignal console by setting 1 in "Increase by" option
4. In iPhone alwasy showing count 1 (for reference please see the video)

What did you expect to happen?

If we send push with Increase by 1, It should add in previous count.

OneSignal Flutter SDK version

onesignal_flutter: ^3.5.1

Which platform(s) are affected?

Relevant log output

No response

Code of Conduct

jennantilla commented 6 months ago

@devsideal thanks for reaching out and providing reproduction steps! We're looking into this and will get back to you as soon as possible.

jkasten2 commented 5 months ago

@devsideal This feature requires the Notification Service Extension. Can you double check you have it setup correctly based on the documentation? https://documentation.onesignal.com/docs/flutter-sdk-setup#add-notification-service-extension

devsideal commented 5 months ago

@jkasten2 Yes I have created the OneSignalNotificationServiceExtension and Added App Group capability in both "Main App Target" and "OneSignalNotificationServiceExtension Target" as mintioned on the documentatoin.

yuyangpl commented 5 months ago

Make sure the "Set to" option is OK。but "Increase by" error onesignal_flutter: 5.2.1 Flutter 3.22.2

devsideal commented 5 months ago

@yuyangpl Yes, "Set to" option is OK But "Increase by" is not working as expected. and currenlly using onesignal_flutter: ^3.5.1 and Flutter 3.19.5, I will try with updated versions.

ngee147 commented 4 months ago

having the same issue

onesignal_flutter: ^5.2.1 Flutter 3.22.2

devsideal commented 4 months ago

Still not working, I tried with updated version too, onesignal_flutter: ^5.2.1 and Flutter 3.22.2

yuyangpl commented 2 months ago

@yuyangpl Yes, "Set to" option is OK But "Increase by" is not working as expected. and currenlly using onesignal_flutter: ^3.5.1 and Flutter 3.19.5, I will try with updated versions.

Hello, is there any progress on this question

yuyangpl commented 1 month ago

@devsideal thanks for reaching out and providing reproduction steps! We're looking into this and will get back to you as soon as possible.

Hello, is there any progress on this question