<?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>Notification on phone at button press</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63750/notification-on-phone-at-button-press</link><description>Hello! 
 I would like to try the following using my nRF52840 board: press a button on the board and then receive a notification on the phone. And the other way round , press something on the phone and turn on an LED from the board. Therefore, my questions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Aug 2020 09:53:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63750/notification-on-phone-at-button-press" /><item><title>RE: Notification on phone at button press</title><link>https://devzone.nordicsemi.com/thread/264212?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 09:53:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4fcdd57-2d76-45b7-b426-48a663513ab1</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Glad I could help Marry, the best of luck with your project &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notification on phone at button press</title><link>https://devzone.nordicsemi.com/thread/263978?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 09:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eee675b1-eb31-40cb-8114-fa2d87dd5885</guid><dc:creator>Marry</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn and thanks for taking me over. I am sorry for the late reply, but I have been on&amp;nbsp;an exam-break too.&lt;/span&gt;&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/63750/notification-on-phone-at-button-press/263011"]if you are planning to send custom user defined notifications I would not recommend using ANS[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;- Ok, I understood this. Thanks for clearing&amp;nbsp;this for me.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/63750/notification-on-phone-at-button-press/263011"]code &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Blinky"&gt;here&lt;/a&gt;[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;- I tried this code in Java. It&amp;#39;s amazing, thank you so much!!!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/63750/notification-on-phone-at-button-press/263011"] this article:[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;- Also, extremely&amp;nbsp;helpful!! Thank you so much!!! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4af.svg" title="100"&gt;&amp;#x1f4af;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notification on phone at button press</title><link>https://devzone.nordicsemi.com/thread/263011?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 13:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b29d8db3-cf97-4c02-9dea-b8e9eacf12ae</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Marry&lt;/p&gt;
&lt;p&gt;Kenneth is currently on vacation, and I will handle your case in the mean time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Alert Notification Service is a good option if you want your device to show what is happening on the phone, such as an incoming phone call or text message, but if you are planning to send custom user defined notifications I would not recommend using ANS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In this case it is a much better option to use the blinky example, as Kenneth mentioned earlier.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Android blinky app does not show notifications, but we provide you the source code &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Blinky"&gt;here&lt;/a&gt; so you can change the app to your requirements.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For information on how to implement notification in Android you can have a look at this article:&lt;br /&gt;&lt;a href="https://developer.android.com/training/notify-user/build-notification"&gt;https://developer.android.com/training/notify-user/build-notification&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notification on phone at button press</title><link>https://devzone.nordicsemi.com/thread/261771?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 12:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c47645-e15f-42e7-b74e-e1738a9caa98</guid><dc:creator>Marry</dc:creator><description>&lt;p&gt;Hello. Is anyone there? &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notification on phone at button press</title><link>https://devzone.nordicsemi.com/thread/260322?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 09:38:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcf63fa5-1439-4303-a826-193167918988</guid><dc:creator>Marry</dc:creator><description>&lt;p&gt;That would mean, that the phone (instead of the nrf dongle) would need to become&amp;nbsp;&lt;span&gt;the Alert Notification Service (ANS) server, if I understood correctly, right? &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notification on phone at button press</title><link>https://devzone.nordicsemi.com/thread/260312?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 09:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e66298f-0cd4-4fa8-b985-12046011005e</guid><dc:creator>Marry</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/kme"&gt;Kenneth&lt;/a&gt;&amp;nbsp;and thanks for your answer.&lt;/p&gt;
&lt;p&gt;Ok, I will start with these 2 examples and come back with some other questions. But what about the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_alert_notification.html"&gt;notification tutorial&lt;/a&gt;? Is there some way to get notifications on the phone, instead of visualising them just with putty, on the computer?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notification on phone at button press</title><link>https://devzone.nordicsemi.com/thread/260166?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 13:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecab0f49-d3e0-4635-8de4-2518b205d102</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;A&amp;nbsp;better starting point may be:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_blinky.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_blinky.html&lt;/a&gt;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_blinky_c.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_blinky_c.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>