[3.0][messages]Add prerequisites - privileges
authorSangkoo Kim <sangkoo.kim@samsung.com>
Mon, 14 Mar 2016 02:18:26 +0000 (11:18 +0900)
committerSangkoo Kim <sangkoo.kim@samsung.com>
Mon, 14 Mar 2016 02:24:09 +0000 (11:24 +0900)
Change-Id: Iba0e2467f8791c96f929f49b32e6aca7bd9189b3
Signed-off-by: Sangkoo Kim <sangkoo.kim@samsung.com>
org.tizen.tutorials/html/native/messaging/sms_mms_tutorial_n.htm

index 5cc5490..cf76fa2 100644 (file)
                        <li><a href="#sending">Sending SMS or MMS Messages</a>
                        <p>Create and send a message, and add attachments to MMS messages.</p></li>
         </ul>
+ <h2 id="prerequisites" name="prerequisites">Prerequisites</h2>
+<p>To use the messages API, the application has to request permission by adding the corresponding privileges to the tizen-manifest.xml file.
+There are two privileges - message.read to fetch messages and message.write to send messages respectively.
+</p>
+<pre class="prettyprint">
+&lt;privileges&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;privilege&gt;http://tizen.org/privilege/message.read&lt;/privilege&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;privilege&gt;http://tizen.org/privilege/message.write&lt;/privilege&gt;
+&lt;/privileges&gt;
+</pre>
  
  <h2 id="init" name="init">Initializing the Messages Service</h2>