<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>how to call &amp;quot;parse_get_notif_attrs_response&amp;quot; function in ANCS?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7281/how-to-call-parse_get_notif_attrs_response-function-in-ancs</link><description>Hello, All. 
 I want to know AppID in iPhone&amp;#39;s App using ANCS.
(for example, Facebook App&amp;#39;s AppID is &amp;quot;com.facebook.Facebook&amp;quot;,
Facetime&amp;#39;s AppID is &amp;quot;com.apple.facetime&amp;quot;) 
 These are my environments. 
 
 Board: custom board. 
 chip: nrf51822AA 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 May 2015 12:47:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7281/how-to-call-parse_get_notif_attrs_response-function-in-ancs" /><item><title>RE: how to call "parse_get_notif_attrs_response" function in ANCS?</title><link>https://devzone.nordicsemi.com/thread/25742?ContentTypeID=1</link><pubDate>Thu, 28 May 2015 12:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ea8e9ed-11be-421c-a212-9ed0d1fa3595</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Min,&lt;/p&gt;
&lt;p&gt;In SDK v8.0 we only configure to receive Title, Subtitle, Message, MessageSize, etc. But not the AppID. If you want to get the app ID reported when you send Get Notification Attributes, you would need to enable it in service_init(), you should add:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = ble_ancs_c_attr_add(BLE_ANCS_NOTIF_ATTR_ID_APP_IDENTIFIER, m_attr_appID, ATTR_DATA_SIZE);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After that you should have the appid when you press button 2 on the nRF51DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>