Notification badge counter in Microsoft Teams - notifications

I am working on a custom webApp for Microsoft Teams, I would like to manipulate the badge notification for my App (btw I am not sure if it's the right name), I need to add a counter like teams does for new messages or another symbol to indicate different actions in my app.
Is there a way to do this? using a sdk, api, (#microsoft/teams-js, etc...)
Thanks

Currently we don't have any API to display notification when some action happens in an app. You can raise an UserVoice for this if this needs to be considered as a feature request. If you want to Send activity feed notifications to users in Microsoft Teams please go through this documentation.

Related

Assigning webhooks to Firebase Messaging "subscribe to topic" event

In my current project I am using the Kreait Firebase PHP SDK to send out push notifications to Android & iOS devices that have subscribed to notifications on named topics. No issues thus far. However, rather than have fixed topic names I would now like to generate topic names based on the current "condition" of the connecting device. The condition could, for example, be a geographic location.
This is not too difficult either and I have modified my app to handle this. However, in order to put the ability to have such autogenerated topics to use I need to know the topic names on my server so I can send out targeted messages via Kreait. I find Google's Firebase documentation a bit dense at times and have not been able to establish whether it is possible to assign webhooks that get called by Firebase whenever a SubscribeToTopic, UnsubscribeFromTopic event occurs.
A simple question - does FCM even offer anything like this capability? If so, any pointers to the relevant documentation would be much appreciated.
There is no public API to get a list of topic names from Firebase, nor is there a way to hook into the subscription mechanism.
Your best bet is to simply make two calls when a user subscribes to a topic: one to Firebase, and one to your own backend API that keeps a list of active topics/conditions.

Can I Get Updates on the device's Contacts List - with React-Native

On a React-Native mobile app, I need to access the contacts list, which is stored on the mobile device. The following 2 libraries provide this functionality. However, it seems that none of them provides information about which contacts have been updated (added/deleted/changed) recently.
Is there any library, which (1) provides some sort of notifications, which my app can subscribe to, to get updates about the contacts' list, or (2) provide a timestamp for when each contact was last updated?
I looked into the following libabries, but they do not seem to have this functionality.
Expo Contacts (https://docs.expo.io/versions/v35.0.0/sdk/contacts/)
React-Native-Contacts (https://github.com/rt2zz/react-native-contacts)
Your feedback is highly appreciated...
I saw this in the Expo Contact library : Notifications Expo Contact
You just need to add listener, and after u can sort by categories :
Notifications.addListener(listener)
Notifications.createCategoryAsync(name: string, actions: ActionType[])
it return an EventSubscription object , u can remove notifications by :
EventSubscription.remove()
Hope it will help,
If you need a easy way for notification, Firebase CLoud Messaging is the easiest way for configuring notification, and you can send global notification too by the firebase admin panel ,
This is not currently possible. If you want this feature please request it in the issue tracker and we can deliberate.
The library would have to expose an event the javascript can register a listener for.

PWA Notification

I've added notifications to my PWA app and i'm facing a question I can't find an answer. Is there a way to hide the source of the notification? (the line between the title and the body, saying where the notification came from)? Thanks!
Browser vendors don't let developers remove site information from notifications for security and auditing purposes. They want to ensure that if a bad site is abusing notifications, users can easily identify the site and block them.

Detect a user's current song in Spotify api

I was wondering if it was possible to detect what song a user is listening to from his/her current active device via the spotify web api.
Thanks.
I know this is an old question, but there is a new beta API endpoint available that supplies this information. It does have some bugs that I've noticed though.
Stations only: If you change stations, you have to restart Spotify to get the API endpoint to update and continue updating.
According to bug reports, it lags behind 20 to 30 minutes at random. I haven't had that problem, so it may be fixed.
GET https://api.spotify.com/v1/me/player/currently-playing
Docs: https://developer.spotify.com/web-api/get-the-users-currently-playing-track/
This is not possible using the web API. If you're writing a Mac app, you can use the Spotify Desktop Client's AppleScript API to access the current track. If the user is scribbling to Last.fm, you can use Last.fm's APIs. Otherwise, this data is not accessible.

Is it possible to mark the message thread with 'unseen=0'?

I work on Google Chrome extension for facebook.
I have a button and if you click on it, a popup with latest active threads appears. I want to say to facebook server that no threads are 'unseen' afterwards. So that the messages jewel on Facebook main page will show no notifications.
Can I do this with Graph API? POST calls to graph.facebook.com/thread_id with unseen=0 don't work.
Alternatives?
You do not have write access to the inbox. Only read access read_mailbox. Sorry, but that's the only permission that Facebook currently has available. See: https://developers.facebook.com/docs/reference/api/permissions/
However, you can keep track of the inbox items on a remote server's data store and have your plugin query that to know what's been "seen". So at least from your plugin's perspective, things are showing up correctly.