Does Chrome or Firefox have an API whereby we can display a badge on the taskbar/dock icon? - api

I'm working on a web app that does notifications much the same as Twitter, Facebook, and StackOverflow.
When there are async notifications sent to the notification area on these websites, you'll notice that usually the <title> is also updated to reflect the notification.
<title>(3) Twitter / Home</title>
I'm wondering if either Firefox or Chome have a Badge api whereby we can send a badge to the dock/taskbar that sums up all of the notifications (much the same as Apple Mail.app)? I am fairly confident that IE wouldn't have this.
So if the browser has a twitter notification,
It would also have a dock notification
note, these graphics are OS X, but my question is generic... ie: all OS platforms
My personal vision for this would be to add a meta tag to the page when the notification is sent to the client.
<meta notification-badge="3" />
If there is not an API for this, is there a way to swap out the browser icon asynchronously to achieve the same effect?

I didn't realize this was an apple-specific question until I saw the graphic. The answer is "No", browsers do not have Apple OS-specific APIs. You would have to write your own client application to get this effect.

Related

set the notification for Slack's notion app

notion page image
slack apps image
like the image above, I connected Slack and Notion.
I'm getting a notifications for all the changes on the linked Notion page.
but I only want the notification to come when I'm on a mention.
how can I do?

Facebook Notification Handler with iPhone application

I have little Confusion regarding my iPhone application. So I hope I got solution from here.
Now My Question is:
Currently I am developing an iPhone application with Facebook user integration. User can send application request to his/her friend as a Facebook notification. If receiver accept that request or click on that request then how should I detect that through my iPhone application? Or is there any way to show that notification in my iPhone application?(Functionality is like get Life by Friends in Candy Crush Game)
Some Points
I have created canvas for application integration with Facebook but there is no any kind of functionality on my application's canvas page. It is totally blank. I just want application on iPhone not on Facebook.
On every click on app invitation notification by receiver I want to give some points to notification sender.
If you have any king of link or document related to this topic then please send me.

Playing youtube/vevo videos on iOS

I've seen the Google blog article explaining the way to embed youtube videos in an iOS app. I've successfully embed videos in my iOS app. BUT, I've seen the WhoSampled app where they are able to play Vevo/youtube videos. Somehow they are able to play those videos and my app is not able to play them. (In my app, there is a blue play circle with a line through it showing that is not playable.)
How do I allow those videos to be playable?
Do I have to setup the youtube link in a specific way or is there a way I need to setup the developer key?
There is a way to get the actual video stream for a given YouTube video instead of the HTML-embedded one. See this project:
https://github.com/hellozimi/HCYoutubeParser
The problem with this approach is that it will likely violate the EULA of YouTube APIs, especially if you are releasing it in a paid application:
In addition, please remember that attempting to play a YouTube video outside of either the YouTube embedded, custom or chromeless player is strictly prohibited by the API Terms of Service.
(source: https://developers.google.com/youtube/creating_monetizable_applications)
You just have to use the iframe embed as opposed to the Flash one.

Is there anyway to have hangouts outside google+?

Is there any way by which we can have a hangout session within our webapp, say in an iframe ?
I was about to experiment with hangout api, but going by existing apps on hangout, it seems they can only be viewed and used from within Google+.
Is there a work around where I can make the user feel that hangout is a part of my app rather than my app being part of the hangout ?
There's no way to embed a hangout into your web application, but you can use the hangout button to launch a hangout app. This allows you to integrate features and data from your web application into a hangout.
The hangout button is made up of an image and a hangout launching link. It comes in a few sizes. Here's the code for the smallest size (75x19 px)
<a href="https://plus.google.com/hangouts/_?gid=APP_ID" style="text-decoration:none;">
<img src="https://ssl.gstatic.com/s2/oz/images/stars/hangout/1/gplus-hangout-15x79-normal.png"
alt="Start a Hangout"
style="border:0;width:79px;height:15px;"/>
</a>
In this snippet you must substitute APP_ID with your application's ID from the API console. When you are viewing your project you'll find the application ID at the end of the URL.
Currently, there's no way of embedding a Hangout app in your web application. But, there's an opened issue tracker where you can add your comments about the need of this feature and Google might release it in their future API releases.

How can I post a video, via Facebook's Connect API, to my Facebook profile page?

Has anyone posted a video via the Facebook Connect API to their profile / feed page?
Ideally, the video should be queued to the first frame with the superimposed Facebook's blue right arrow "play" button. Or if a thumbnail representing the video has to also be uploaded (rather than the video being queued to the first frame) as well, this is fine.
Also, when the video, or thumbnail, on the profile page is clicked, the video plays where it is - rather than going to another page off Facebook to be played there.
The question may have not been correctly worded. The term "API" was misleading to a couple of folks - and I apologize for that.
What I was trying to do was to "share" a video by linking it in Facebook, AND to have it play in the profile feed (ie. to not leave the Facebook site while viewing the video - just like YouTube and Hulu.com do).
After digging into the JavaScript that Hulu was using to get this behavior, we noticed that a link tag was missing between our version of the <meta> and <link> tags, and Hulu's.
Facebook's web page, http://www.facebook.com/share_partners.php, was missing a tag that you should have if the content is a video, and you want it played in the profile feed.
Along with:
<link rel="video_src" href="http://www.example.com/player.swf?video_id=123456789"/> ...
You should include:
<link rel="media:video" href="http://www.example.com/player.swf?video_id=123456789"/>
That will get it to play in the feed. BUT, your domain name must be whitelisted.
To get your domain whitelisted, fill out this form: http://www.facebook.com/share_partners.php#/developers/developer_help.php
I got a reply, and approval, within a day! Kudos to the Facebook developer support staff!
Use the Video.upload as described by stevedbrown or the Stream API or if you want to go simple share the link via API or share link.
Have you read the Facebook developer wiki page on this? That explains what is possible and how, it's pretty decent.