アプリ バックエンドから Azure Notification Hub にテンプレートを登録しようとしていますが、実際にそれを行う方法に関するドキュメントはなく、使用されているクラスのドキュメントもありません。
RegistrationDescription
GCM用に作成したテンプレートを作成する必要があるを作成しようとしています:
{
"data": {
"msg": "$(property1)"
}
}
GcmTemplateRegistrationDescription
したがって、オブジェクト ( http://msdn.microsoft.com/en-us/library/microsoft.servicebus.notifications.gcmtemplateregistrationdescription.aspx )を使用しようとしています。ただし、テンプレートをこのオブジェクトに挿入できる場所がわかりません。
を作成できるようになると、ハブへの登録は簡単になり、次のようにGcmTemplateRegistrationDescription
なります。
NotificationHubClient hub = GetHubFromConfig();
GcmTemplateRegistrationDescription registration = CreateRegistration();
hub.CreateOrUpdateRegistrationAsync(registration);
ハブにテンプレートを挿入するにはどうすればよいですか? これを行うためのまったく異なる方法はありますか?
ありがとう