OneDerr Siva
OneDerr Siva

Reputation: 207

Updating application icon Badge in iPhone 3.0, when application is not running

I have an application, which lists number of IM sent by any of my friend using my application. And application icon show number of unread IMs to me. If my application is running in foreground, I can update badge by calling web service every 1 minute which will return number of unread IMs. Suppose, if the person is using iPhone3.0 and application is not running, how can i update the badge? Push notification without alert, but with just number of unread IMs as badge number will work?

Please advice, Thank you.

Upvotes: 0

Views: 403

Answers (2)

OneDerr Siva
OneDerr Siva

Reputation: 207

At last, we found the problem, the problem is passing badge parameter as string in JSON payload, Now we are sending it as number, so even when the application is in background, badge getting set properly. Thank you for your all help.

Upvotes: 1

rit
rit

Reputation: 2308

Yes if the user enables push notifications and allowes it for your app then you can use them to just adjust the badge counter.

Upvotes: 1

Related Questions