Badge Number But No Push Notification

Joined
Oct 18, 2011
Messages
160
Reaction score
0
Points
16
Hi,

Is it possible to add and increase a badge number on the app icon, without sending a push notification.

For example, my app has a 'like' feature similar to facebook, however i don't want the user to receive a push notification every time another likes their content, but i would like to increase their badge number so that they can see that their has been activity with their content.

Is this possible? Thanks in advance for your help.
 
Joined
Aug 13, 2011
Messages
200
Reaction score
7
Points
18
Location
West Sussex
According to the Apple Developer Docs, yes you can.
You can use the CKModifyBadgeOperation class, which is part of the cload kit framework.
Although I've not used it myself.

If you type CKModifyBadgeOperation into a Google search, it brings up Apple's own documents, and
also some examples on Stack Overflow.

Regards Mark
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top