I try with opensocial-0.7 and it work! Why doesn't work with 0.8?
On 17 Mar, 15:42, stenoo <[email protected]> wrote:
> Why doesn't work?!?!?!
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
> <ModulePrefs title="Title">
> <Require feature="opensocial-0.8"/>
> </ModulePrefs>
> <Content type="html">
> <![CDATA[
> <script type="text/javascript" src="app.js"></script>
> ]]>
> </Content>
> </Module>
>
> gadgets.util.registerOnLoadHandler(init);
>
> function init() {
> sendNotification("This is a test email", "How are you doing?");
>
> }
>
> function sendNotification(title, body) {
> var params = [];
> params[opensocial.Message.Field.TITLE] = title;
> params[opensocial.Message.Field.TYPE] =
> opensocial.Message.Type.NOTIFICATION;
> var message = opensocial.newMessage(body, params);
> var recipient = opensocial.DataRequest.PersonId.OWNER;
> opensocial.requestSendMessage(recipient, message);
>
> }
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---