The manifest is a JSON dictionary named manifest.json that contains an entry for each file, where the local file path is the entry’s key, and a dictionary object is the entry’s value. This dictionary contains the hashType and hashValue, which is the file’s SHA512 checksum; for example:
Response from Apple on {webServiceURL}/v1/log API:
{"logs":["Unable to generate ICNS file for push notification package"]}
In buford@v0.14.0/pushpackage/pushpackage.go in only simple hastable and the checksum is sha1 algorithm instead of sha512 (buford@v0.14.0/pushpackage/checksum.go).
package pushpackage
// Package for website push package or wallet pass package.
type Package struct {
z *zip.Writer
// manifest is a map of relative file paths to their SHA checksums
manifest map[string]string
err error
}
1. What version of Go are you using (
go version
)?2. What operating system (GOOS) are you using (
go env
) and what version?3. What did you do? (steps to reproduce or a code sample is helpful)
Create package for Apple notification via
Apple V2 documentation
https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/PushNotifications/PushNotifications.html#//apple_ref/doc/uid/TP40013225-CH3-SW24
4. What did you expect to see?
The manifest is a JSON dictionary named manifest.json that contains an entry for each file, where the local file path is the entry’s key, and a dictionary object is the entry’s value. This dictionary contains the hashType and hashValue, which is the file’s SHA512 checksum; for example:
5. What did you see instead?
Response from Apple on
{webServiceURL}/v1/log
API:In
buford@v0.14.0/pushpackage/pushpackage.go
in only simple hastable and the checksum issha1
algorithm instead ofsha512
(buford@v0.14.0/pushpackage/checksum.go
).