Thanks a lot.
Thank you.
So basically defining a Notification Type helps in many things: 1- Users can unsubscribe to notification types 2- Permission can be given for the notification type, who can see this notification or not
Regards Bilal
Thank you. I read this document.
Is it implemented by default for Web APIs or I have to write the code to use it? Do I need to change how users login, etc. ?
Thanks
How come one of the notifications the "welcome" is not defined before used? Can we do this? If a notification type is not defined then when publishing we can limit it for a tenant(s) or user(s)?
also, if the application sends a notification while user is logged in, it will popup? Or how?
thanks
Yes, thanks a lot.
So, if I define a new Notification Type NN with a Permission X, then if I add the Permission X to Group Users, then any member of this group would receive notifications of type NN?
One more thing, when subscribing to notification types, is this information stored in the database? So, if the application publishes several notifications, then when the user logins with appropriate permissions, he/she will be able to see all collected notifications?
For instance,
//Notifications
await _notificationSubscriptionManager.SubscribeToAllAvailableNotificationsAsync(user.ToUserIdentifier());
This means that somewhere in the DB, the newly registered user, is now subscribed to all notifications that this uer's role/group has permission for?
Also, in this code:
public async Task WelcomeToTheApplicationAsync(User user)
{
await _notificationPublisher.PublishAsync(
AppNotificationNames.WelcomeToTheApplication,
new MessageNotificationData(L("WelcomeToTheApplicationNotificationMessage")),
severity: NotificationSeverity.Success,
userIds: new[] { user.ToUserIdentifier() }
);
}
The Notification Type "WelcomeTpTheApplication" is published and targeting specific users, correct? So, given the first call above, this means, the user is now subscribed to receive this notification correct?
Also, I read somewhere in the documentation, a notification type should be registered before it is being used. In this case, I don't see anywhere in the code where this specific notification type is registered?
Also, since the code subscribes a newly registered user to all notifications that users have permission on, so my custom code can simply publish notifications and I don't need to worry about how to pass the notifications to users, this is done automatically by the framework given of course this line of code:
//Notifications
await _notificationSubscriptionManager.SubscribeToAllAvailableNotificationsAsync(user.ToUserIdentifier());
Finally, are notifications stored in the DB? When he/she logs in, then all notifications that were published before, would now load for the user to see?
Many thanks
Thank you so much.
How to configure subdomains locally while development? Or I don't need to? I can specify Tenant or now, and on production I configure subdomains?
Thanks
I am trying to configure my multi-tenant website as :
WebSiteRootAddress to be <a class="postlink" href="http://localhost:6240/">http://localhost:6240/</a>{TENANCY_NAME}
When I try to access website as:
<a class="postlink" href="http://localhost:6240/Default">http://localhost:6240/Default</a>
I get 404 Not Found
Any idea? Thanks