Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I am testing one of the iOS apps which has Push Notification functionality. Suppose while testing I have sent some Push Notifications to the app so that app icon started showing badge icon on it. Now instead of viewing notification I updated the app to newer version. So what should happen in this case in ideal scenario? Should badge icons retained or removed?

Is there any document by apple where we can verify above scenario?

share|improve this question

1 Answer 1

Currently I also test a app with notifications and after upgrading the app, the badge count is still present. The app control the badge.

An application is responsible for managing the badge number. If the application does not clear the badge, the push message(s) will remain in the notification center. After an application receives a push notification, it should remove the icon badge by setting the applicationIconBadgeNumber property of the UIApplication object to 0.

Source: http://docs.urbanairship.com/connect/ios_push.html#badge-and-autobadge

Apple Documentation: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

share|improve this answer
    
This feels like the intended behavior, you do not want to lose unread notifications during a application update. @subzero I would file defect :) –  Niels van Reijmersdal Jun 17 at 9:50
    
So does it mean the count should NOT be removed unless and until the Notifications are read, no matter if you upgrade the app? I do not know the correct behavior, I just came across one defect filed by the client which says that the count should be removed if the app is upgraded so I needed some doc regarding it which should specify correct behavior. –  Subzero Jun 17 at 9:53
    
I think it is possible to remove the badge count by upgrading. The app is responsible for the badge count, so maybe the developers can set is to 0 while upgrading or after that. –  Twaldigas Jun 17 at 9:56
    
Agree with that, but what I am not able to understand is 'what is ideal result for this?' to show a badge icon or Not to show. Considering Usability and continuity app should show a badge icon even after upgrading the app as user has not viewed the notification earlier but is it the expected or ideal flow? –  Subzero Jun 17 at 10:01
1  
What the behavior of an application should be is more an UX question and a bit offtopic on SQA, try asking on: ux.stackexchange.com –  Niels van Reijmersdal Jun 17 at 15:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.