I have same issue before some days ago when I was tested app from testFlight.
Generally this problem might be occur when you deleted the app (while it was showing some badge number), and re-installed it again. But it difficult to says that where is actual problem.
Read what Apple's official documentation is saying.
Resetting the Push Notifications Permissions Alert on iOS The first
time a push-enabled app registers for push notifications, iOS asks the
user if they wish to receive notifications for that app. Once the user
has responded to this alert it is not presented again unless the
device is restored or the app has been uninstalled for at least a day.
If you want to simulate a first-time run of your app, you can leave
the app uninstalled for a day. You can achieve the latter without
actually waiting a day by setting the system clock forward a day or
more, turning the device off completely, then turning the device back
on.
There are some suggestion from my experience:
- OFF your notification form settings
- And set badge 0 at server side and then delete and reinstall your app from your device. - After installation is over then run app
- After run app agin delete you app from device and then reset badge at server 1 and ON your notification form settings.
Not sure but might be this will working for you. :)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…