Skip to content

400 InvalidPushType #148

@bmueller

Description

@bmueller

I keep getting error 400 "InvalidPushType" from Apple's push notification service when trying to send a push with the new apns-push-type value set.

This is how I'm setting up the notification:

	n := &apns2.Notification {
		DeviceToken: p.DeviceToken,
		Topic:       topic,
		CollapseID:	 p.CollapseID,
		Payload:     []byte(p.Payload),
		PushType: 	apns2.PushTypeBackground
	}

Am I doing something wrong with how I set the PushType property? Everything else is getting set correctly and pushes without this property set are getting sent just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions