从推送通知中获取错误 [英] Getting an error from push notification

查看:25
本文介绍了从推送通知中获取错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用中,我需要推送通知.我正在执行推送通知文档中的所有说明.但是我从推送通知中收到错误消息:

In my app, I need push notifications. I am implementing all the instructions from the push notifications docs. But I got an error from Push Notification:

Fail To Register For Remote Notifications With Error:
  Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment'
  entitlement string found for application" UserInfo=0x2340a0
  {NSLocalizedDescription=no valid 'aps-environment' entitlement string
  found for application}

我做错了什么?

推荐答案

生成一个新的配置文件,启用推送后,它会起作用!

Generate a new provisioning profile, after you enable Push, and it will work!

这篇关于从推送通知中获取错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆