Try this
if let app = try? JSONDecoder().decode(.decode(ApplicationToken.self, from: data) {
let token = Application(token: app)
print(token)
} else {
print("didn't work")
}
Token.self changed to ApplicationToken.self
Post
Replies
Boosts
Views
Activity
I have a similar problem. I’m not sure why, but about 2 out of 10 times, it shows a blank report when I try to get daily or weekly reports, whereas the hourly report works without any issues.