ios - 类型错误 : 'undefined' is not an object (evaluating 'registeredEventSources[pendindPushEvent.alias].callback' ) after receiving a push notification

标签 ios authentication apple-push-notifications ibm-mobilefirst

我正在 Worklight 6 中开发混合应用程序并尝试为我的 iOS 环境设置推送通知。我已经能够在我的 iOS 设备上成功订阅和接收推送通知。但是,当我尝试通过单击收到的推送通知打开应用程序时,我看到了这个错误:

TypeError: 'undefined' is not an object (evaluating 'registeredEventSources[pendindPushEvent.alias].callback')

这似乎是在我尝试连接到 Worklight 服务器以进行身份​​验证 (WL.Client.login) 并随后阻止执行任何一个登录回调之后立即发生的。奇怪的是,它似乎指的是这个事件源回调确实被调用了。我传递给 WL.Client.Push.registerEventSourceCallback 的函数正在执行并正确显示通知 payload.msg。

注意:如果在没有推送通知的情况下打开应用程序,身份验证似乎工作正常。

我无法在其他地方找到有关此错误的任何信息。谁能阐明这个问题?

最佳答案

实际上,这是 IMO 的一个缺陷。它在 Android 中是固定的,但显然不是在 iOS 中。我已经打开了一个关于它的缺陷。

关于ios - 类型错误 : 'undefined' is not an object (evaluating 'registeredEventSources[pendindPushEvent.alias].callback' ) after receiving a push notification,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19643187/

相关文章:

ios - 下载单元格图像后 UITableView 滚动缓慢

ios - 具有核心数据的具有挑战性的在线数据库持久性?

ios - 从另一个 View Controller 切换到 UIImageView 时,不会出现在第一次 View 中

authentication - 简单的 REST 身份验证策略?

push-notification - 未知类型名称 'UIBackgroundFetchResult'

ios - Swift iOS 将 ArraySlice 转换为 CGFloat

php - 将 laravel 5 内置认证扩展为仅登录 "if user == active"

php - php和mysql中的登录、注销和持续时间?

ios - 推送通知未确定

ios - 推送通知 : both didFailToRegister and didRegister delegate not calling