首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >azure注册中心注册时间

azure注册中心注册时间
EN

Stack Overflow用户
提问于 2016-03-18 11:06:04
回答 1查看 168关注 0票数 1

如何更改注册时间(默认为90天)?我只在提到这篇文章的地方找到了它:

https://github.com/Azure/azure-content/blob/master/articles/notification-hubs/notification-hubs-registration-management.md

在移动设备上注册时,我使用AzureMessaging组件:https://components.xamarin.com/view/azure-messaging

我在蔚蓝的门户上没有找到任何设置。

在组件库中,我找到了一个ExpirationTimeRegistration,但它是只读的。Registration-Class也受到保护,因此我没有访问权限。

代码语言:javascript
复制
var registration =_hub?.Register(registrationId, tags.ToArray());
var thisIsReadOnly = registration.ExpirationTime;

谢谢你的建议。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-21 12:43:18

目前,您只能使用到期元素为APN模板设置TTL。

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom">
    <content type="application/xml">
        <AppleTemplateRegistrationDescription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect">
            <Tags>myTag, myOtherTag</Tags>
            <DeviceToken>{DeviceToken}</DeviceToken>
            <BodyTemplate><![CDATA[{Template for the body}]]></BodyTemplate>
            <Expiry>{Template for Expiry in }</Expiry>
        </AppleTemplateRegistrationDescription>
    </content>
</entry>

参考文献:创建注册

但是,请继续检查文档的更新,这可能会改变。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36082790

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档