Text Messages

Composing a text message

Here are the invocation attributes that you use to open the composer card for the Text Messages app with specific body text and recipients:

Attribute Value
Target ID

sys.pim.text_messaging.composer

Action

bb.action.COMPOSE

MIME type

application/text_messaging

The following examples show PPS-encoded data fields:
// Example 1
body::Hello world!
to:json:["2125551212","9785551234"]

// Example 2
body::Hello world!
send:b:true
to:json:["2125551212"]

Here are the invocation attributes that you use to open the composer card for the Text Messages app with a recipient field set to a specified phone number:

Attribute Value
Target ID

sys.pim.text_messaging.smsuri

MIME type

application/vnd.blackberry.string.phone

Data

Recipient’s phone number

You can perform the same invocation by using the following invocation attributes in your invocation request:

Attribute Value
Target ID

sys.pim.text_messaging.smsuri

Action

bb.action.SENDTEXT

URI

tel:5198887465

Sharing an attachment with a recipient

Here are the invocation attributes you use to share an attachment with a recipient, using the Text Messages app:

Attribute Value
Target ID

sys.pim.text_messaging.sharemedia

Action

bb.action.SHARE

URI

list://

MIME type

filelist/media

You can perform the same invocation by using the following invocation attributes in your invocation request:

Attribute Value
Target ID

sys.pim.text_messaging.smsuri

Action

bb.action.SENDTEXT

URI

tel:5198887465

Data should be sent in JSON format, as follows:

[
   {
      "uri": "file:///path/to/file"     
   },
   {
      "uri": "file:///path/to/another_file"     
   },
   ...
]

Last modified: 2015-03-19



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus