如何设置推主题为标题的推送通知? [英] How to set push subject as the title for push notification?

查看:492
本文介绍了如何设置推主题为标题的推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有设置推送主题为推送通知的任何所有权的可能性?
我得到的应用程序的名称作为主题,如推给定的描述是一样的。我想改变推的称号。结果
这是可能在iOS中?我希望这是可能的机器人。

Is there any possibilities of setting push subject as the title in push notification? I'm getting app name as the subject and description is same as given in the push. I want to change the title of the push.
Is this possible in iOS? I hope it is possible in android.

推荐答案

您不能更改标题。它总是应用程序的名称。

You can't change the title. It's always the application name.

假设你正在下棋与您的朋友在线。当你在国际象棋的应用程序,你的朋友的举动出现在黑板上的时候了。当您切换到另一个应用程序,例如,当您的朋友决定搬到哪里,应用程序需要一种方式,当你的朋友移到通知您阅读电子邮件。这是一个完美的使用案例推送通知,东西是用户感兴趣的应用程序之外的变化。

Suppose you are playing chess with your friend online. While you are in the chess app, your friend’s moves appear on the board right away. When you switch to another app—for example, to read email while your friend decides where to move—the app needs a way to notify you when your friend moves. This is a perfect use case for a push notification—something changed outside of the app that is of interest to the user.

有关国际象棋的应用程序提供者得知这一招,看到你的设备上的应用程序棋不再连接,发送推送通知到苹果推送通知服务(的APN)。几乎同时,您的设备或多个precisely,操作系统您的设备接收通过Wi-Fi或从APN的蜂窝连接的通知。因为你的棋应用程序当前没有运行,iOS设备显示一个警告类似于图1-1。该消息由应用程序名后,短消息,并(在这种情况下)两个按钮:关闭和视图。右边的按钮被称为动作按钮并其默认的标题是视图。应用程序可以自定义操作按钮的标题,并且可以在国际化的按钮标题和信息,使他们在用户的preferred语言。

The provider for the chess application learns about this move and, seeing that the chess application on your device is no longer connected, sends a push notification to Apple Push Notification service (APNs). Almost immediately, your device—or more precisely, the operating system on your device—receives the notification over the Wi-Fi or cellular connection from APNs. Because your chess application is not currently running, iOS displays an alert similar to Figure 1-1. The message consists of the application name, a short message, and (in this case) two buttons: Close and View. The button on the right is called the action button and its default title is "View". An application can customize the title of the action button and can internationalize the button title and the message so that they are in the user’s preferred language.

您可以参考你的客户的<一个href=\"https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/WhatAreRemoteNotif.html#//apple_ref/doc/uid/TP40008194-CH102-SW1\">official APNS文档说服他们这就是事情是这样的。

You can refer your client to the official APNS docs to convince them that's the way it is.

这篇关于如何设置推主题为标题的推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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