Tuesday, 26 May 2015

May 26 Lecture

Step 1
Get a certificate that has push notifications on apple.developer

Step 2 
Download p12 file

Step 3
Create a new provisioning profile

Ad Hoc is a type of developer profile.

However, choose iOS development

Step 4
Need to choose the corresponding AppID

Step 5
Download this profile

Step 6
Go to parse. In settings under Push Notification Settings turn on client push enabled.

Add the p12 file in parse

Step 7
Open a project with parse
Set the bundle identifier by looking at the profile created on the apple dev site
Usually com.something

Step 8
In the project settings set the code signing identifier

Step 9
Also set the team in general

Step 10
Set the parse id (Parse.setApplicationId()) to match what is on the parse page. 

Step 11
PFUser.enableRevocableSessionInBackground()

Step 12
var pushNotifications:UIUserNotificationSettings=UIUserNotifications(forTypes: .alert, categories:nil)
application.registerUserNotificationSettings(pushNotifications)
application.registerForRemoteNotifications()

Step 13
var push = PFPush()
push.setMessage(“Test push notification”)
push.sendPushInBackground()

### Facebook
Step 1
Facebook developer page
My Apps
Settings
Make sure that the Bundle 


No comments:

Post a Comment