Push-Notification Badge auto increment

前端 未结 5 1110
囚心锁ツ
囚心锁ツ 2020-12-01 03:34

I\'ve been implementing the push service to my application, and I\'ve been thinking about the application\'s badge. My app is a mail app (sorta) and I want to notify the use

5条回答
  •  伪装坚强ぢ
    2020-12-01 04:28

    Nope, you'll have to track this on the server side. If you don't include any value for badge, it will get removed completely.

    Of course though this is only if the user receives the notification and the app isn't running/they choose not to launch it. If the user launches the app or already had it running you can do whatever you want in regards to incrementing.

    UPDATE March 2014: See comments for a possible update. I haven't done pushes in several years so haven't been able to verify this myself.

提交回复
热议问题