Get the title of the toast when the toast notification is removed from action center in UWP - windows-store-apps

I have an application which is able to send three different types of local toasts,using the notifier.Show(toast) method.I need to track the notification title and current time when the notification is removed from the action center.I have registered my background task as "ToastNotificationHistoryChangedTrigger(application_Id)".my background task is triggered when the notification is removed from the action center,but the details of the removed notification is not available in the background task.so,I am unable to get the title of the removed toast.can anyone help me to overcome this problem?.

Notification Listener Documentation should be able to get the removed notifications detailed information.

Related

How track data with Angular and Google Analytic?

I work on a one single page application (360 virtual visit) with Angular 11. I would like to track user events and especially on buttons.
I started to put the Global site tag in my Index.html file like this: Global Site tag in Index.html
On google analytic, I receive connection data user First Data User
But I have no idea how I can track bouton click with Angular.
Does anyone have an idea that works today ?
do not hesitate to ask me questions for more information. :D
Thank you in advance for your answers. I would share my progress.
For something like Button Clicks, you have to configure custom events in Google Analytics and push that custom event whenever user clicks the button.
You can create onButtonClick() function and call it when user clicks the button. In the function, you should push event to the window.dataLayer:
onButtonClick() {
window.dataLayer.push({
event: 'button_click',
data: {
user: this.current_user._id,
... // Send some custom data that you want to track
}
})
}
You should be careful with SPA when you install gtag the way it is described into docs as it will track page views incorrect. In SPA browser loads the page only once, and all other actions will rerender the content but it still will not be counted as a views.
Instead you will need to set up router events. Here is a great tutorial for that. It also will explain how to set up other events like button clicks.
By the way in the example above they suggest to send user id with event. Instead of it you may send it with config only once, and it will be automatically added to any your event:
gtag('config', 'GA-ID', {
page_path: event.urlAfterRedirects,
user_id: this.user.id
});
You need to configure the Google tag manager to send events to Google Analytics. I've written a post about it: https://pieterjandeclippel.medium.com/angular-or-react-or-whatever-and-google-analytics-97342c909e61
Now it seems that Universal analytics will be on its way out, so you might want to try GA4 instead.
But I haven't tried with that one yet, since my own website has been configured to use UA.
We've added the same feature recently and this guide here, albeit a bit dated, explains it quite well.
It boils down to you using a dedicated GoogleAnalyticsService that enables you track specific events (ie. button clicks, scroll events, etc).

How to push my customize Push notification for Chrome

I am working on question and answer website and wonder to create push notification for this site but is it possible that user subscribes for notification on site and then I could send notification later to chrome whenever its question is answer and user are on another tab of chrome or may be closed the chrome.
Maybe it feels bit foolish but just want to clear my concept about Chrome notification.
I would like to explain the working of push notification to you. We will use your case study.
User visits your website, he sees the pop-up/dialog box to subscribe to push notification. He clicks on Allow. After clicking on Allow, he will be subscribed to push notifications from your website.
Now only thing the subscriber needs to do is, he need to keep the browser open. Even if the subscriber is not on your website, he will get push notification when you will send one from the tool/dashboard.
You can take a look at PushCrew - push notification tool. It will be easier for you to check how push notifications work.

Opening email popups from Adobe AIR application

I need to open several email popups (~30) from Adobe AIR Flex app, I am currently using navigateToURL but I observed that at times some email popups go missing. I have tried callLater as well. WHen I introduce delay between popups it works better but still has a risk of some popup missing. Can anyone advise please? These emails dont have any attachments but have html contents.
I am guessing that you don't want all 25-30 messages to appear at once. If you could try to schedule a better way like the one below, I think that will really help you fix the problem:-
Add references to all the 25-30 objects in an array
Now on click of a button, show the 1st email body. Have a button in the popup which reads something like 'Send and Read next email'. On click event, fire the email to be sent and pop the next object from your array to show contents of the next email.

How do you add event notifications for my application

The Event Notifications Wiki Page tells you to click edit your app and then shows a screenshot and tells you to click "create new event notification" under the Event Notifications heading.
When I look at the Event Notifications heading for my app it just says "No event notification added" and does not have a clickable link "create new event notification" as shown in the screenshot on the wiki page.
How do I go about adding event notifications when that link is not displayed?
Event Notifications are currently in beta and need to be manually enabled for your Box API key by someone on our team. Please shoot us an email at API[at]boxDOTcom with your use case, and we'll see if we can get you into the beta.

Creating a notification from within a notification

I'm creating an extension for Chrome, and one of the functionalities included is the ability for the end user to add people as contacts.
Currently, the contact is saved to the database via AJAX, after which a desktop notification is displayed telling the user that the deed has been done.
However, I would want to first ask the user if he's sure he wants to do that. So I got the mad idea of wanting to create a new notification from within a notification.
So first, the confirmation HTML notification would be created from the background.html, and displayed. It contains a button, and upon clicking it, it should run the AJAX function and create a second notification, containing the feedback.
However, I seem to be unable to do this. I can't run createNotification() from the notification, sendRequest() doesn't seem to go through neither, and I can't use the onClose listener from background.html, because I want to differentiate between clicking the "Yes" button and the "No" button.
Is there any way I can do this? And if not, how should the confirmation dialog be implemented instead?
Have you tried using chrome.extension.getBackgroundPage()? This may provide the access to your background page's API that you require. For example, your first notification page calls the following when Yes is clicked;
function yesClicked() {
chrome.extension.getBackgroundPage().showSecondNotification();
}
The background page declares the showSecondNotification method as follows;
function showSecondNotification() {
webkitNotifications.createHTMLNotification(
chrome.extension.getURL('notification2.html')
).show();
}
Hopefully, this will cause the second notification to be displayed. I've used a similar method in my extensions before but only to retrieve information from the background page. However, I see no reason this shouldn't work.