1

There is app which installed on a jailbreak iphones. And we've also implemented the APNs feature. So the problem is :

  1. the app got five notifications and the BadgeNumber shows on the icon is five.

  2. then I uninstall the app, and reinstall it.

  3. when the reintsall was done, the BadgeNumber on the icon still shows five.

====>I think when the reinstall was done ,the BadgeNumber should be Zero. Is it right?

AlexQu
  • 23
  • 1
  • 4
  • Is this a normal App Store app, that happens to be installed on jailbroken phones (signed with a valid Apple provisioning profile)? Or a true **jailbreak app**, that's not codesigned with Apple provisioning profiles, and installed in /Applications? – Nate Jul 07 '12 at 10:16
  • It's a true **JailBreak App**. and installed in the /User/Application folder through third party tools. – AlexQu Jul 08 '12 at 23:34
  • Which 3rd-party tool? I guess I'm wondering how you code signed your app. What I call a true jailbreak app is either signed by a self-signed certificate (not an Apple one), or fake code signed with `ldid`. Is that what you have, or have you signed with a normal Apple Ad Hoc provisioning profile? – Nate Jul 09 '12 at 08:09
  • the tool is 91 assistant, and I use the below code to do this:
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];`
    `if(![defaults objectForKey:"firstRun"]){` //first lanuch on this device `self.firstRun = TRUE;` `[defaults setObject:[NSDate date] forKey:"firstRun"];` `}else {` `//had once launched on this device before` `self.firstRun = FALSE;` }` `[[NSUserDefaults standardUserDefaults] synchronize];`
    – AlexQu Jul 09 '12 at 08:57
  • Thanks, Alex, but you still haven't said how you are code signing your app. – Nate Jul 10 '12 at 10:09

0 Answers0