如何更改注册时间(默认为90天)?我只在提到这篇文章的地方找到了它:
在移动设备上注册时,我使用AzureMessaging组件:https://components.xamarin.com/view/azure-messaging
我在蔚蓝的门户上没有找到任何设置。
在组件库中,我找到了一个ExpirationTime的Registration,但它是只读的。Registration-Class也受到保护,因此我没有访问权限。
var registration =_hub?.Register(registrationId, tags.ToArray());
var thisIsReadOnly = registration.ExpirationTime;谢谢你的建议。
发布于 2016-03-21 12:43:18
目前,您只能使用到期元素为APN模板设置TTL。
<?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>参考文献:创建注册
但是,请继续检查文档的更新,这可能会改变。
https://stackoverflow.com/questions/36082790
复制相似问题