[How To] Setup Remote Push Notification in iOS - Swift 2.0 Code

Siva Ganesh · 31K views · 2015 · 5:44

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when they need a concrete, step-by-step walkthrough of iOS push notification setup and APNS PEM certificate generation that official docs or other tutorials leave out.

Recommended by 1 people across 1 different months, 2016 to 2016.

What it is

A short 2015 screencast walking through setting up Apple Push Notification service (APNS) for an iOS app using Swift 2.0. It covers the Xcode-side code and generating a PEM certificate with openssl, with companion iOS and PHP repos linked in the description. The video has no narration and some blurred sections.

What people said

Recommends user1019042 · 2016-05 · Stack Overflow · on “How to debug a Test Send in Azure?”

I finally have been able to receive notifications last night. I went ahead and redid an entire walk-through of all apple-side installation steps using this tutorial: Sending push notifications to iOS with Azure Notification Hubs [LINK] then the azure-side of things using this: Create an iOS app [LINK] and Add Push Notifications to your iOS App [LINK] . That took care of the registering the app of the device successfully, which I was able to verify using the note of AdrianHall in this thread. But that wasn't enough. The Azure tutorials fell short detailing the steps needed in Xcode, which I found here: [How To] Setup Remote Push Notification in iOS - Swift 2.0 Code [this video] I didn't have to se

Cites Mannam Brahmaiah · 2016-01 · Stack Overflow · on “How can I generate pem file for push notifications in iphone?”

For ** Production Push Notification ** I took reference from this link [LINK] To enable Push Notification for your iOS app, you will need to create and upload the Apple Push Notification Certificate (.pem file) to us so we will be able to connect to Apple Push Server on your behalf. (Updated version with updated screen shots Here [LINK] ) Step 1: Login to iOS Provisioning Portal, click "Certificates" on the left navigation bar. Then, click "+" button. [LINK] [LINK] [LINK] Step 2: Select Apple Push Notification service SSL (Production) option under Distribution section, then click "Continue" button. [LINK] Step 3: Select the App ID you want to use for your BYO app (How to Create An App ID), t

Cites Rashid · 2016-03 · Stack Overflow · on “warning: stream_socket_client(): unable to set private key file”

I have followed a [this video] tutorial which is nearly same as raywenderlich article. I've just forgot to add PEM pass phrase. After adding it, as described here [LINK] , it worked: stream_context_set_option($ctx, 'ssl', 'passphrase', 'MyPassPhrase');