NCL Community Forum Index
  Home   Login   Register   Help   Memberlist   Search   NCL  

NCL Community Forum Index » Provato Support » Sending WAP Push Messages
Post new topic  Reply to topic View previous topic :: View next topic 
Sending WAP Push Messages
PostPosted: Tue Jul 25, 2006 2:41 pm Reply with quote
Administrator
Site Admin
Joined: 11 Aug 2004
Posts: 237




A WAP Push service indicator can be sent into Provato for onward delivery by specifying it in the API as follows:

Code:


// myCreated and myExpired should be in format dd-MMM-yyyy HH:mm:ss

String pushContent = "<a class=\"service-indicator\" href=\"http://myLink\" created=\"01-Jan-2000 12:00:00\" expires=\"01-Jan-2010 12:00:00\" id=\"myUniqueId\" >The Title here</a>";

VivatoMessage pushMsg = new VivatoMessage();

pushMsg.setDestination("0123456789");

pushMsg.setContentType(VivatoMessage.PUSH_WAP_MESSAGE_TYPE); // or "text/vnd.ncl.push"

pushMsg.setContent(pushContent );


This will cause Provato to send one or more (depending on the length) binary SMS. The User Data Header and Data Encoding Scheme will be set automatically by Provato.

IMPORTANT. The ID should be set to something unique (e.g. the current time in long format). The created and expired used in WAP Push service indicators should be respectively set to well before and well after the current date in case the recipient phone date is not set. Typically created 1year previous and expires 1 year later.
View user's profile Send private message

Sending WAP Push Messages
 NCL Community Forum Index » Provato Support
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic