Skip to content

Commit

Permalink
Merge pull request #1373 from OneSignal/Fix/change_sub_observer_json_…
Browse files Browse the repository at this point in the history
…representation

Change OSPushSubscriptionState's `"nil"` json values to be `""`
  • Loading branch information
nan-li authored Mar 4, 2024
2 parents 851af0e + ee0d936 commit d874eca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public class OSPushSubscriptionState: NSObject {
}

@objc public func jsonRepresentation() -> NSDictionary {
let id = self.id ?? "nil"
let token = self.token ?? "nil"
let id = self.id ?? ""
let token = self.token ?? ""
return [
"id": id,
"token": token,
Expand Down

0 comments on commit d874eca

Please sign in to comment.