MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Problem sending notifications through java sdk

Last post 09-11-2009 10:33 PM by Donny Mack (DM). 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-01-2009 7:04 AM

    • Chaitu
    • Not Ranked
    • Joined on 08-31-2009
    • Posts 4

    Problem sending notifications through java sdk

    Hi,


    I am trying to use 'MySpaceID SDK for Java' for accessing the myspace data.
    I am having problems with sending notifications using this SDK.

    Its working fine and the notifications are displaying in the userprofile when
    the notification is for an internal application, i mean when the user adds my
    application.


    But since my requirement is i need to send notification from an external application,
    i have created and myspaceID application and other things like status update etc
    are working fine.
    The main problem is when i try to send notification for a user, i get the status
    as
    {"postnotificationstatus":"posted"}
    but the notification has not been seen in the user notification tab after several
    hours also.

    For the reference the following is my sample code which i used:

    SecurityContext scontext = new SecurityContext(exkey,exsecret);
    RestV1 restObj = new RestV1(scontext);

    HashMap tpMap = new HashMap();
    tpMap.put("content","sample notification content");

    Object postObj = restObj.sendNotification(<appid>, <userid>, tpMap, null);

    Please suggest on this and quick response is appreciated.

    Thanks for u r time in advance,
    Chaitu

     

  • 09-11-2009 10:33 PM In reply to

    Re: Problem sending notifications through java sdk

    Can you provide us with the sender and recipient userID and the appId for us to test?

    Follow us on twitter for major updates and announcements:

    http://twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    http://www.myspace.com/myspacedeveloperplatform
Page 1 of 1 (2 items)