如何测试推送通知正在我的应用程序中工作 [英] How to test Push Notification is working in my application

查看:75
本文介绍了如何测试推送通知正在我的应用程序中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我正在实现推送通知服务。

我有一个Content Provider服务器,其中包含一些产品。

我已生成SSL客户端证书和将它附加到我的开发配置文件。此配置文件也会添加到我的应用程序中。

我已在委托方法中编写代码(由Apple指南实施推送通知)。全部设置。

In my application I am implementing the Push Notification Service.
I have a Content Provider server, which contains some products in it.
I have generated the SSL Client Certificate and attached it to my development Provisioning profile. This profile is also added to my application.
I have written the code inside the delegate methods (guided by Apple guideline for implementing the Push Notification). All set.

现在我想测试我的应用程序是否按照要求处理推送通知。关于如何测试它的任何想法都会对我有所帮助。

我是否必须将新产品添加到内容提供商服务器来测试它?

Now I want to test my application whether it is handing the push notification as per the requirement. Any idea on how can I test it would help me a lot.
Should I have to add new product to the content provider server to test this?

如果是,APNS将推送通知发送到我的设备需要多少钱?

If yes, how much will APNS take to send the push notification to my device?

推荐答案

非常酷的指南发布在这里:编程Apple推送通知服务

Very cool guide is posted here: Programming Apple Push Notification Services

此处的应用程序: PushMeBaby Mac Os应用程序,您可以下载并用于从Mac向您的设备发送推送通知。

And an application here: PushMeBaby Mac Os App which you can download and use for sending push-notifications to your devices from a Mac.

APNS将发送推送通知只要您的设备可用,就立即使用您的设备。如果我没弄错,你的设备每分钟都会ping APNS。

APNS will send the push notification to your device as soon as your device will become available. If I'm not mistaken your device pings APNS every minute.

这篇关于如何测试推送通知正在我的应用程序中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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