Skip to content

Commit

Permalink
Merge pull request #185 from urbanairship/resetBadgeFix
Browse files Browse the repository at this point in the history
Return nil for resetBadge
  • Loading branch information
Apekka authored Sep 22, 2023
2 parents af8101d + df677eb commit f7f6a68
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Flutter Plugin Changelog

## Version 7.1.1 - September 22, 2023
Patch release that fixes the iOS resetBadge method

### Changes
- Fixed an error with Airship.push.ios.resetBadge()

## Version 7.1.0 - September 13, 2023
Minor release that fixes the iOS resetBadge method, updates to latest SDK versions, and adds a new `editTags` method to batch tag changes.

Expand Down
3 changes: 2 additions & 1 deletion ios/Classes/SwiftAirshipPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ public class SwiftAirshipPlugin: NSObject, FlutterPlugin {
return try AirshipProxy.shared.push.isAutobadgeEnabled()

case "push#ios#resetBadgeNumber":
return try AirshipProxy.shared.push.setBadgeNumber(0)
try AirshipProxy.shared.push.setBadgeNumber(0)
return nil

case "push#ios#setNotificationOptions":
try AirshipProxy.shared.push.setNotificationOptions(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: airship_flutter
description: "Cross-platform plugin interface for the native Airship iOS and Android SDKs. Simplifies adding Airship to Flutter apps."
version: 7.1.0
version: 7.1.1
homepage: https://www.airship.com/
repository: https://github.com/urbanairship/airship-flutter
issue_tracker: https://github.com/urbanairship/airship-flutter/issues
Expand Down

0 comments on commit f7f6a68

Please sign in to comment.