Skip to content

Reset Badge Error ? #2026

Closed
Closed
@Droppix

Description

@Droppix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions