7 Replies Latest reply: Nov 12, 2014 9:59 AM by dmennenoh RSS

    retrieve and save data to the cloud

    Stephdidou Community Member

      Hi,

       

      I'm trying to create an Android app where I can send notifications to users.

       

      In order to send notification to the users, I need their devices ID.

       

      So I'd like to retrieve this info and send it to my server.

       

      For saving the ID here's what I did :

       

      private function pn_registerSuccessHandler( event:PushNotificationEvent ):void
        {
        message( "PN registration succeeded with reg ID: \n" + event.data  );
        _idField.text = event.data;
        mySharedObject.data._idField = event.data;
               mySharedObject.flush();
        sendData();
        }
      

       

      But what should I put in my sendData function in order to send, in a text format, the informations ?

       

      Thank you for your answers,