Skip to content

Reset Badge Error ? #2026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Droppix opened this issue Jun 10, 2016 · 1 comment
Closed

Reset Badge Error ? #2026

Droppix opened this issue Jun 10, 2016 · 1 comment

Comments

@Droppix
Copy link

Droppix commented Jun 10, 2016

Hi,

Environnement Setup:

  • Parse-Server : 2.2.7
  • Parse-Dashboard : 1.0.13

I push multiples notification from "Parse-dashboard" with "Increment" option, and I used this code in my application:

- (void)applicationDidBecomeActive:(UIApplication *)application { 
    PFInstallation *currentInstallation = [PFInstallation currentInstallation];
    if (currentInstallation.badge != 0) {
        currentInstallation.badge = 0;
        [currentInstallation saveEventually];
    }
}

Unfortunately, this code will never clear the badge to Zero.

Only works if I write this (remove test):

 - (void)applicationDidBecomeActive:(UIApplication *)application { 
    PFInstallation *currentInstallation = [PFInstallation currentInstallation];  
    currentInstallation.badge = 0;
    [currentInstallation saveEventually];
} 

The field "badge" is always zero in the object "PFInstallation".
Any idea ?

Thanks

@hramos
Copy link
Contributor

hramos commented Jun 22, 2016

This does not look like a Parse Server issue. Consider opening an issue in the Parse iOS SDK repository or asking on Stack Overflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants