xcode - Apple - Provisioning profile + Push Notifications -
xcode - Apple - Provisioning profile + Push Notifications -
i followed guide on parse.com on how create certificate , prepare provisioning business relationship take force notifications. when go preferences/accounts : shows on bottom, when seek take build settings tab, doesn't show, , error : "no valid 'aps-environment' entitlement string found application"
i tried scratch several times, using several xcode & parse apps, please help me.
appdelegate code :
func application(application: uiapplication, didfinishlaunchingwithoptions launchoptions: [nsobject: anyobject]?) -> bool { // override point customization after application launch. parse.setapplicationid("myappid", clientkey: "myappclientkey") var notificationtype: uiusernotificationtype = uiusernotificationtype.alert | uiusernotificationtype.badge | uiusernotificationtype.sound var settings: uiusernotificationsettings = uiusernotificationsettings(fortypes: notificationtype, categories: nil) uiapplication.sharedapplication().registerusernotificationsettings(settings) uiapplication.sharedapplication().registerforremotenotifications() homecoming true } func application(application: uiapplication, didregisterforremotenotificationswithdevicetoken devicetoken: nsdata) { var currentinstallation: pfinstallation = pfinstallation() currentinstallation.setdevicetokenfromdata(devicetoken) currentinstallation.saveinbackground() } func application(application: uiapplication, didfailtoregisterforremotenotificationswitherror error: nserror) { println(error.localizeddescription) } func application(application: uiapplication, didreceiveremotenotification userinfo: [nsobject : anyobject]) { pfpush.handlepush(userinfo) }
have added device onto development provisioning profile, download , installed it? got same error until device added.
xcode push-notification apple provisioning-profile
Comments
Post a Comment