Closed
Description
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
Labels
No labels