MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

REST based app notifications problem

Last post 11-20-2009 9:10 AM by Artavazd. 14 replies.
Page 1 of 1 (15 items)
Sort Posts: Previous Next
  • 07-02-2009 6:04 PM

    • Tatung
    • Not Ranked
    • Joined on 04-27-2009
    • Posts 3

    REST based app notifications problem

    Our application successfully sends app to user notifications until today.  Today we still get the "posted" response so it looks like everything is fine but the notification doesnt show up in the user's notification box.  It will show only occassionally.  Looks like MySpace is doing something to cut down on "spam"?  Is this correct and what rules are being used?

     -Tatung

  • 07-06-2009 10:47 AM In reply to

    Re: REST based app notifications problem

    We are always actively fighting spam; Wink

    The rules are:

    1. a notification will only be stored for 7 days
    2. only the last 5 notifications are stored

     

    We are currently working on some optimalization. The feature is a bit more popular than anticipated, and we are getting A LOT of the notifications.

    Once we have the system happy we will also show an indicator to the user that (s)he has a new notification.


    Marco

     

    Filed under:
  • 07-06-2009 5:32 PM In reply to

    • Tatung
    • Not Ranked
    • Joined on 04-27-2009
    • Posts 3

    Re: REST based app notifications problem

     The problem I am still seeing today is that not all the notifications show up in the user's Notification inbox.  It seems some are not being delivered even though the return code when posted them via. REST are all "posted".

     -Tatung

  • 07-06-2009 11:13 PM In reply to

    Re: REST based app notifications problem

    When you send multiple notifications you will receive a 'posted' 201 back when at least one succeeds. Users can unselect 'Receive notifications from this app' or can block all communication from your app. You do not get feedback from us when one or more recipients do not want to receive your notification.
  • 07-10-2009 10:10 AM In reply to

    Re: REST based app notifications problem

    Marco,

    I'm seeing the same thing, where the REST calls are returing success but the notifications are not being sent.  In fact I had one batch the was sent at 5:30 PM yesterday and I received in my inbox at 1:44 AM today.   I cannot verify if the others were delivered.  There were a number notifications total -- all sent in batches.

    Thanks,
    Tom

  • 07-13-2009 8:22 AM In reply to

    Re: REST based app notifications problem

    Unfortunately some apps were sending notifications to arbitrary users (this is also known as spam). This caused some queueing in the system. These app have been muted (not allowing any communications with any of the users) 

    We've made some improvements in our code to better handle this in the future, but that has not rolled into production yet. So we are temporary working with a delay. But all notifications do get delivered.

    Note that end users can block your app from receiving your notifications. So use this communication channel appropriate.

    Note 2: Activity events are now also showing to all users. 

  • 07-27-2009 11:35 AM In reply to

    Re: REST based app notifications problem

    I'm getting this response when I send notifications, but never arrives.


    HTTP/1.1 201 Notification sent
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Content-Length: 35
    Content-Type: application/json; charset=utf-8
    Expires: Sun, 19 Nov 1978 05:00:00 GMT
    Server: Microsoft-IIS/6.0
    Set-Cookie: MSCulture=IP=74.208.15.90&IPCulture=en-US&PreferredCulture=en-US&PreferredCulturePending=&Country=VVM=&ForcedExpiration=633842829641856983&timeZone=0&myStuffDma=&myStuffMarket=&USRLOC=QXJlYUNvZGU9NjEwJkNpdHk9V2F5bmUmQ291bnRyeUNvZGU9VVMmQ291bnRyeU5hbWU9VW5pdGVkIFN0YXRlcyZEbWFDb2RlPTUwNCZMYXRpdHVkZT00MC4wNTQ4JkxvbmdpdHVkZT0tNzUuNDA4MyZQb3N0YWxDb2RlPTE5MDg3JlJlZ2lvbk5hbWU9UEE=; domain=.myspace.com; expires=Wed, 26-Aug-2009 16:16:04 GMT; path=/
    Set-Cookie: ASP.NET_SessionId=dy3iqt55w1tw4455jtpu3e55; path=/; HttpOnly
    X-Server: a93ae998042931b7292d4aaae565f817976de6f4f1c0cf96
    Set-Cookie: SessionDDF1=5c4eb86d28de9bcd4e304b27cb1de4ef33f5c39c672fa8d0; domain=.myspace.com; path=/
    Set-Cookie: SessionDDF2=16f07c018684014ca4317103bc6ba67d2d7fe252220234d3; domain=.myspace.com; path=/; expires=Wednesday, 27-Jan-10 16:16:04 GMT
    Date: Mon, 27 Jul 2009 16:16:03 GMT

    {"postnotificationstatus":"posted"}

  • 07-28-2009 8:44 AM In reply to

    Re: REST based app notifications problem

    Federico,

    Can you let meknow yor application and how I can raise one notification. I can investigate what the issue might be.

    One thing I noticed that sometimes notifications are raised with invalid html. (E.g. forget a closing tag..)

    Marco

     

     

  • 07-30-2009 1:03 AM In reply to

    • Biraj
    • Not Ranked
    • Joined on 07-27-2009
    • Posts 7

    Error:send Notification only works for onsite application??

    i have developed application in asp.net using oAuth and also open Auth.(RestV1)

    i am getting all data from MySpace but can't send notification to friends.

    i am usingcode

    myspaceClient.SendNotification(490747817, recipients, "Hello MySpaceDemo From Biraj (TechSture Tech)", MySpaceID.SDK.Config.NotificationSurface.AppProfile, "button AppData", MySpaceID.SDK.Config.NotificationSurface.AppProfile, "Button AppData", null);            

    is it right?           

    how i can send notification to friends using open auth or oAuth.

    Thanks for reading mt issue

     

     

  • 08-06-2009 10:35 PM In reply to

    • Nikhil
    • Not Ranked
    • Joined on 12-11-2008
    • Posts 2

    Re: REST based app notifications problem

    Hey, Even we are seeing the same problem I post using the OAuth Testing Tool and it returns with "{"postnotificationstatus":"posted"}" but never see it in the User's Notifications. I tried this both from my app and from the Myspace tool and both return success but nothing on the User's page. Can you please help. Thanks Nikhil Here are more details POST /v1/applications/114748/notifications
  • 08-12-2009 7:43 PM In reply to

    • Nikhil
    • Not Ranked
    • Joined on 12-11-2008
    • Posts 2

    Re: REST based app notifications problem

    Hey There,

    Is there anyone who can look into the problem and let me know what could be wrong.

    Thanks

     

    Filed under:
  • 09-03-2009 11:23 PM In reply to

    Re: REST based app notifications problem

    Hi Macro,

     When i was trying to send test notifications via test tool, without any mediaItems it works fine. But When i was trying with mediaItems I am getting the response as {"statusCode":"400","statusDescription":"mediaItems parameter is invalid."}. Even if i tried by changing the userid alone in the sample, which is given in "http://wiki.developer.myspace.com/index.php?title=POST_v1_applications_applicationId_notification" it is not working. 

      Please look into the issue and let me know what could be wrong. 

     Thanks in advance...

  • 09-17-2009 11:06 AM In reply to

    Re: REST based app notifications problem

     Ganapathy,

    I'll look into it. Can you tell me what the values you passed to the mediaItems variable. Did you use the logical reference to media items?

    BTW: Please open new threads for different issues. Makes it easier for me to track. 

    Thanks,

    Marco

  • 10-27-2009 8:02 AM In reply to

    Re: REST based app notifications problem

     Hi,

     Today I tried sending the mediaItems in the notifcation via OAUTH TEST tool. It worked fine. But, When I tried sending a normal notification via my application code, I am getting timed out error. Please have a look at the below code and let me know what is wrong with the code.

    public function sendAppNotifications($receivers,$returnType='array')
        {
            try{
                $resource_uri = '/v1/applications/112316/notifications';
                $parameters['recipients']='402246408';
                $parameters['templateParameters']='{"content":"Notification Content Goes Here","button0_surface":"canvas","button0_label":"Go To Canvas", "button1_surface":"appProfile","button1_label":"Go To App Profile"}';
                $resource_signed_request = $this->getSignedRequestUri($resource_uri,NULL,"POST");
                $rest = new restClient();
                $rest->createRequest($resource_signed_request,"POST",$parameters);
                $rest->sendRequest();
                $res = $rest->getResponse();
                if ($returnType == 'xml'){
                    return $res;
                }else{
                    $xmlparser = new xml2Array();
                    $outputarray= $xmlparser->parse($res);   
                    return $outputarray;
                }
            }catch (Exception $e){
                throw new Exception($e->getMessage());
            }

        }

    Thanks in advance,

     M.S.M.Ganapathy

  • 11-20-2009 9:10 AM In reply to

    Re: REST based app notifications problem

    I'm having problem with sending notifications only with single app. it return 409 error code and says 

    The page was not displayed because there was a conflict.

     can anyone help me with this?

     

Page 1 of 1 (15 items)