APNS

Golang: Send Push Notification to iOS device

Assumptions Go language is installed in your computer iOS sample application with APNs support for testing Step1: Generate certificate PEM file. This article will help you to generate PEM [https://www.raywenderlich.com/123862/push-notifications-tutorial] Step2: Install Go library for APNs go get github.com/anachronistic/apns Step3: Write the following function in your main.go. Place certificate PEM file in config folder. You can change push URL as per your requirement. func SendPushToClient(pushText string,pushToken string) { fmt.

Read more →