• dear developers,

    i’ve developed a Rss app on the iOS Platfotm, it works perfectly, i’ve been fetching title, links, thumbnail from my wordpress , i added push notifications support for my app , but i need to integrate my wordpress to the push notifications server, that i can send the new title and link as my alert

    can anyone point me where i should embed my code , and what are the variable names i should be looking for :

    here is the code am trying to implement :

    // Push The notification with parameters
    $this->load->library('PushBots');
    $pb = new PushBots();
    // Application ID
    $appID = 'xxxxxxxxxx';
    // Application Secret
    $appSecret = 'xxxxxxxxxx';
    $pb->App($appID, $appSecret);
    
    // Notification Settings
    $pb->Alert($msg);
    $pb->Sound($sound);
    $pb->Badge($badge);
    $pb->Platform($platforms);
    
    // Tags Array
    $pb->Tags($tags);
    
    // Custom fields
    $pb->Payload($customfields);
    
    // Country or state
    $pb->Geo($country , $gov);
    
    // Push it !
    $pb->Push();

    i just need the post title, and link in assigned to the variables $name, $customfields

    thank you in advance

  • The topic ‘pass new post title, link to other server ?’ is closed to new replies.