Ios 推送通知来自一个设备,但不来自另一个设备
推送通知会出现在我的iPhone和iPad上,但当我发送它时,它不会出现在另一台iPhone上。我不明白它为什么不来。 我已经创建了所有必需的证书。添加设备ID。还是不来。请帮忙。(它处于沙盒模式) 当我尝试使用发送通知时,出现以下错误 错误响应命令:8标识符:0状态:8-无效令牌步骤:Ios 推送通知来自一个设备,但不来自另一个设备,ios,apple-push-notifications,Ios,Apple Push Notifications,推送通知会出现在我的iPhone和iPad上,但当我发送它时,它不会出现在另一台iPhone上。我不明白它为什么不来。 我已经创建了所有必需的证书。添加设备ID。还是不来。请帮忙。(它处于沙盒模式) 当我尝试使用发送通知时,出现以下错误 错误响应命令:8标识符:0状态:8-无效令牌步骤: 检查在所有设备中安装应用程序时是否使用了相同的配置文件 如果是一样的。。请访问developer.apple.com,查看您使用的配置文件是否已签入所有设备 现在在调试模式下,检查 func applicati
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
var deviceTokenStr = deviceToken.description.replacingOccurrences(of: ">", with: "", options: .caseInsensitive, range: nil)
deviceTokenStr = deviceTokenStr.replacingOccurrences(of: "<", with: "", options: .caseInsensitive, range: nil)
deviceTokenStr = deviceTokenStr.replacingOccurrences(of: " ", with: "", options: .caseInsensitive, range: nil)
print(deviceTokenStr)
}
func应用程序(application:UIApplication,DidRegisterForRemotionTificationswithDeviceToken deviceToken:Data){
var devicetokenst=deviceToken.description.replacingOccurrences(of:“>”,with:”,选项:。不区分大小写,范围:nil)
DeviceTokenster=DeviceTokenster.重播发生(共:“步:
检查在所有设备中安装应用程序时是否使用了相同的配置文件
如果相同..请访问developer.apple.com,查看您使用的配置文件是否已签入所有设备
现在在调试模式下,检查
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
var deviceTokenStr = deviceToken.description.replacingOccurrences(of: ">", with: "", options: .caseInsensitive, range: nil)
deviceTokenStr = deviceTokenStr.replacingOccurrences(of: "<", with: "", options: .caseInsensitive, range: nil)
deviceTokenStr = deviceTokenStr.replacingOccurrences(of: " ", with: "", options: .caseInsensitive, range: nil)
print(deviceTokenStr)
}
func应用程序(application:UIApplication,DidRegisterForRemotionTificationswithDeviceToken deviceToken:Data){
var devicetokenst=deviceToken.description.replacingOccurrences(of:“>”,with:”,选项:。不区分大小写,范围:nil)
DeviceTokenster=DeviceTokenster.replacingOccurrences(of:“的可能重复