Tuesday, 4 June 2013

New features on the Developer Dashboard

Last November we launched the iGoogle Gadget Dashboard, a tool to give our gadget developers more insight into how their gadget is used in the wild. For starters, we gave developers the ability to track their user count, pageviews, canvas views all over time, as well as the geographic distribution of their users. When we launched we promised more to come, and we're pleased to announce the release of several of the most requested features by our developer community.

You may have already noticed the newest additions to the dashboard, which we rolled out over the last week. Developers can now subscribe to their gadget's directory comments with their favorite RSS reader, so it's easy to stay current with your user's concerns and desires. If you're a developer with a lot of gadgets, we've added sorting options so you can keep gadgets ordered in the most useful way. Finally and for the first time, developers can easily submit and withdraw gadgets from the iGoogle directory, giving them even greater control over their presence on iGoogle.

We're firm believers in the principle that empowering our developers is the best way to bring a great iGoogle experience to our users, so we'll be listening to our developer community about the tools and data they need the most and the dashboard will continue to improve. In the meantime, you can play with the new version at: http://code.google.com/igoogle/dashboard/

Happy developing!

The forums, they are a-changin'

iGoogle developers, your lives are about to get a bit easier. For the last few years, the iGoogle Developer Forum has been the place for gadget developers to discuss development of gadgets for iGoogle. Despite the name, the forum only provided help and answers for one of the two iGoogle APIs. For themes questions, developers turned to the Google Themes API group, fragmenting the development community in two.

Starting immediately, the iGoogle Developer Forum will now be host for all iGoogle developer discussion, for both gadgets and themes. The Themes API group will be put into a read-only mode in a few days, and the welcome text will include a reminder to everyone to visit the combined group.

In addition, we have created a new shared issue tracker for reporting issues with the Gadgets and Themes APIs. The igoogle-legacy tracker is to be used exclusively for issues pertaining to the deprecated legacy gadgets API, and will remain active until the API is no longer supported. All gadgets.* API, Themes API, and directory issues should be posted in the new issue tracker.

If you have any questions about these changes, please let us know in the forum.

OpenSocial Development Environment 1.0 Released

OSDE (OpenSocial Development Environment) is an Eclipse plugin for developing and testing OpenSocial applications.
It's an Apache-2-licensed open-source project hosted at:
Its milestone version 1.0 was released on June 22, 2010.

OSDE provides a rich set of features that both enable and enhance OpenSocial application development. It helps people building for both the client within a gadget, or even on another server using the Java RESTful client libraries. Its features include:
  • A built-in Shindig server for local testing.
  • An integrated database for storing and managing social data.
  • Simple project and gadget code generation wizards to quickly generate your OpenSocial application projects and application code.
  • A multi-paned gadget spec editor to facilitate gadget development.
  • A new "OpenSocial" Eclipse perspective that provides enhanced editing and debugging with easy access and control of the local Shindig and social database.
  • An OpenSocial REST Java client wizard that can quickly generate a new project along with sample code that uses the OpenSocial RESTful Java client library to connect to the local OpenSocial server. 
  • Live testing against iGoogle server.
  • Performance Analysis.
For details of installation and how to use it, please read the user guide at: https://sites.google.com/site/opensocialdevenv/user-guide

For bugs reporting or feature requests, please visit: http://code.google.com/p/opensocial-development-environment/issues/list

Thanks for your support.

Base on Post content

HTML5 in Gadgets on iGoogle

Did you know gadgets can use html5? The key is in the doctype. Normally the doctype of a gadget isn't mentioned. Specify the html5 doctype in the gadget and it will be used when the gadget is rendered. Let's look at a quick example using the popular canvas drawing API:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
 <ModulePrefs title="html5 canvas">
 </ModulePrefs>
 <Content type="html" view="home,canvas">
  <![CDATA[
   <!DOCTYPE html>
   <script>
    var demo = {
     init: function() {
      var drawcan = document.getElementById('drawarea');
      if (drawcan.getContext){
       var context = drawcan.getContext('2d');
       var xmax = drawcan.width;
       var ymax = drawcan.height;
       context.strokeRect(0,0,xmax,ymax);
       for (var dotix = 0; dotix < 100; ++dotix) {
        var x = Math.random() * xmax;var y = Math.random() * ymax;
        context.strokeStyle = "#888888";
        var blueness = Math.floor(Math.random() * 256);
        context.fillStyle = "rgb(10,90,"+ blueness +")";
        context.beginPath();
        context.arc(x,y,5,0,Math.PI*2,true);
        context.closePath();
        context.stroke();
        context.fill();
       }
      }
     }
    };
 
    gadgets.util.registerOnLoadHandler(demo.init);

   </script>
   <canvas id="drawarea" width="150" height="150"></canvas>
  ]]>
 </Content>
</Module>


HTML5 in Gadgets on iGoogle

The top of the apparatus still has the accepted XML prolog because the apparatus blueprint is, as always, an XML document. The html, in this case html5, is central a CDATA block. The CDATA block agency the anatomy of the html5 agreeable is appealing abundant abandoned if parsing the XML. iGoogle doesn't do annihilation added for affinity with html5; appearance specific to html5 will still alone plan in browsers that abutment them. Gadgets accept the aforementioned cross-browser affinity apropos as any added web page. Accept a attending at the If can I use adviser for an abstraction of affinity of appearance beyond browsers.
The agreeable of this apparatus is appealing straightforward. It includes a canvas element. In the init adjustment it tries to get a cartoon context. If it's acknowledged (meaning the browsers supports html5 canvas) it will draw a rectangle about the extents of the aspect again draw 10 about placed dots inside. Use this apparatus as a starting point to get your own html5 apparatus running.
And yes, this apparatus has a canvas in your canvas so you can cede if you render.

Saturday, 1 June 2013

Live Gadget Previews

The iGoogle Apparatus Agenda just got better. Users can now collaborate with a apparatus in the agenda afore abacus it to their page. Accept a attending at a brace examples like the Google News or Google Hot Trends gadgets. 

Your accessories can accept reside previews too. Accessories that use Agreeable view="default" already accept a reside examination in the apparatus directory. Remember, view="default" can bout any appearance accurate by the container. Similarly, if the Agreeable aspect in a apparatus doesn't specify the appearance attribute, that's advised the aforementioned as if view="default" were present. Up until now, the alone angle that were accurate on iGoogle were home and canvas; remember, home is the abate adaptation and canvas is the beyond version. 

Some accessories are customized to affectation abnormally for the home and canvas views. If your accessories do this, you can amend the apparatus XML blueprint to add a different appearance for the examination or reclaim an absolute agreeable element.
For accessories with an aspect
In this case you can just add preview, so you'll accept view="home,canvas,preview". 

For accessories with
Here too, you can reclaim the home appearance for the examination by alteration your blueprint to view="home,preview". 

There are some added restrictions on the way the examination works. A examination can't use OpenSocial calls - back the user hasn't set the OpenSocial permissions afore installing the gadget. You may wish to abode this in your apparatus by authoritative a appropriate examination adaptation that uses some copy data, or you can opt out of the reside examination and stick with a changeless screenshot. 

Like all apparatus views, the examination is cached. This reduces amount and speeds up confined for users. But if you're alive on your apparatus and don't see a contempo change in the preview, you can attenuate caching briefly by abacus the constant "nocache=1" to the url. 

Gadgets displayed as a examination aswell can't cross to added angle application requestNavigateTo(). If your apparatus has a hotlink that triggers alteration the appearance it will not plan in the preview.
If you feel a examination isn't the appropriate best for your apparatus again specify the added angle (home & canvas) and be abiding that your screenshot does a acceptable job of carrying what your apparatus will do for users. 

As always, appear to the iGoogle Developer Forum to allocution about reside apparatus previews with added iGoogle developers.