Note that there are some explanatory texts on larger screens.

plurals
  1. POsetApplicationIconBadgeNumber not having any effect
    primarykey
    data
    text
    <p>I'm experimenting with clearing notifications from the notification center (where the workarounds include setting the badge number to 0, as there is no api to remove them).</p> <p>However while experimenting I have noticed that I cannot get setApplicationIconBadgeNumber to have any effect on the badge number.</p> <p>For example if I have:</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] setApplicationIconBadgeNumber: 5]; </code></pre> <p>(and setApplicationIconBadgeNumber is not being called anywhere else) </p> <p>then there is no badge for the icon, let alone one containing a number.</p> <p>(The notifications are not setting a badge number, perhaps there has to be a badge number to begin with before setApplicationIconBadgeNumber: has any effect, can anybody confirm or deny that?)</p> <p>UPDATE:, I've noticed this in the console, maybe its related:</p> <pre><code>May 24 16:12:49 unknown installd[138] &lt;Error&gt;: entitlement 'aps-environment' has value not permitted by a provisioning profile May 24 16:12:49 unknown SpringBoard[51] &lt;Warning&gt;: Killing com.mycompany.xxx for termination assertion May 24 16:12:50 unknown installd[138] &lt;Error&gt;: entitlement 'aps-environment' has value not permitted by a provisioning profile May 24 16:12:50 unknown SpringBoard[51] &lt;Warning&gt;: Reloading application state for 'com.mycompany.xxx' as its modification date or path has changed May 24 16:12:50 unknown SpringBoard[51] &lt;Warning&gt;: Reloading and rendering all application icons. </code></pre> <p>The last line sounds relevant, this has only just started happening, no idea why, I haven't changed profiles etc. and they are up to date and valid in Xcode. I'll post a separate question for this</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload