android和iPhone的推送通知。

时间:2021-10-04 02:43:55

I m developing an android and iPhone app and wanted to send push notification both platform users - a simple pop up with any major news preferably even when the device is closed.

我正在开发一个android和iPhone的应用程序,想要同时向两个平台用户发送推送通知——即使是在设备关闭的情况下,这也只是一个简单的弹出消息。

Any suggestions which way I should go for?

有什么建议我应该走哪条路?

2 个解决方案

#1


10  

You can configure your app and send out push notifications to both Android and iOS (as well as to four more platforms) with PushWoosh. Unlike Urban Airship, it's a free service so that you don't have to pay and integration is pretty easy.

你可以配置你的应用程序,并向Android和iOS(以及四个多平台)发送推送通知。与城市飞艇不同的是,它是一种免费的服务,这样你就不用支付和整合,这很简单。

They have several extensive guides on how to integrate push notifications in your app, for instance: iOS, Android

他们有很多关于如何在你的应用中集成推送通知的指南,例如:iOS, Android

#2


4  

Depend on your budget. There're multiple solutions ready if you are willing to pay, e.g. Urban Airship

取决于你的预算。如果你愿意付钱的话,有多种解决方案可供选择,比如城市飞艇

I don't think you can force open popup on iOS if the screen is closed. In iOS the behavior of Push notification(APN) is entirely up to user. I could be wrong but that's my impression.

我不认为你可以在iOS上强制打开弹出如果屏幕是关闭的。在iOS中,推送通知的行为完全取决于用户。我可能是错的,但那是我的印象。

On Android(GCM) you can do that by faking popup in an Activity. Then wake the device from sleep to display the Activity.

在Android(GCM)上,你可以通过在活动中假装弹出来实现这一点。然后将设备从睡眠中唤醒,显示活动。

If you are looking into news solution, be aware that both Android and iOS only allow 1,000 push devices per API call. So you will need to manage them yourself.

如果您正在研究新闻解决方案,请注意,Android和iOS每个API调用只允许1000个推送设备。所以你需要自己管理它们。

#1


10  

You can configure your app and send out push notifications to both Android and iOS (as well as to four more platforms) with PushWoosh. Unlike Urban Airship, it's a free service so that you don't have to pay and integration is pretty easy.

你可以配置你的应用程序,并向Android和iOS(以及四个多平台)发送推送通知。与城市飞艇不同的是,它是一种免费的服务,这样你就不用支付和整合,这很简单。

They have several extensive guides on how to integrate push notifications in your app, for instance: iOS, Android

他们有很多关于如何在你的应用中集成推送通知的指南,例如:iOS, Android

#2


4  

Depend on your budget. There're multiple solutions ready if you are willing to pay, e.g. Urban Airship

取决于你的预算。如果你愿意付钱的话,有多种解决方案可供选择,比如城市飞艇

I don't think you can force open popup on iOS if the screen is closed. In iOS the behavior of Push notification(APN) is entirely up to user. I could be wrong but that's my impression.

我不认为你可以在iOS上强制打开弹出如果屏幕是关闭的。在iOS中,推送通知的行为完全取决于用户。我可能是错的,但那是我的印象。

On Android(GCM) you can do that by faking popup in an Activity. Then wake the device from sleep to display the Activity.

在Android(GCM)上,你可以通过在活动中假装弹出来实现这一点。然后将设备从睡眠中唤醒,显示活动。

If you are looking into news solution, be aware that both Android and iOS only allow 1,000 push devices per API call. So you will need to manage them yourself.

如果您正在研究新闻解决方案,请注意,Android和iOS每个API调用只允许1000个推送设备。所以你需要自己管理它们。