Project

General

Profile

Actions

Feature #4766

closed

Post persistent notification to improve stability

Added by Junxiao Shi over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
gui
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

Android system may stop a background service during memory shortage.
A common way to reduce the chance of a service being stopped is posting a persistent notification.

This issue is to add a persistent notification to the NFD app:

  • When NFD is started on the app main screen, a persistent notification says "NFD is running" is posted, and it remains visible in the notification bar.
  • Tapping on the notification brings the user back to the NFD app.
  • When NFD is stopped on the app main screen, the persistent notification is removed.

Additional information and user interactions within the persistent notification is out of scope of this issue, and should belong to separate issues.


Files

5030-3.png (108 KB) 5030-3.png Junxiao Shi, 11/20/2018 04:50 AM
5030-5_off.png (50.1 KB) 5030-5_off.png Junxiao Shi, 11/21/2018 05:42 AM
5030-5_icon.png (129 KB) 5030-5_icon.png Junxiao Shi, 11/21/2018 05:42 AM
5030-5_notification.png (110 KB) 5030-5_notification.png Junxiao Shi, 11/21/2018 05:42 AM

Related issues 1 (0 open1 closed)

Related to NFD-android - Bug #3409: NFD-Android stops forwarding packets after running for about 15 minutesClosed

Actions
Actions #1

Updated by Junxiao Shi over 5 years ago

  • Related to Bug #3409: NFD-Android stops forwarding packets after running for about 15 minutes added
Actions #2

Updated by Davide Pesavento over 5 years ago

  • Subject changed from Post persistent notification to improve stableness to Post persistent notification to improve stability
  • Priority changed from Normal to High
Actions #3

Updated by Junxiao Shi over 5 years ago

  • Assignee set to Ju Pan

Beichuan decides to assign this to Ju on 20181105 NFD call.

Actions #4

Updated by Ju Pan over 5 years ago

  • Status changed from New to Code review
  • % Done changed from 0 to 50
Actions #5

Updated by Junxiao Shi over 5 years ago

Updated by Junxiao Shi over 5 years ago

I've tested Change 5030 patchset5 on a Sonim XP8800 running Android 7.1.1. It works well in the following items:

  1. Toggle to "NFD is started", a persistent notification appears. The icon says "NDN". It appears white when collapsed, and orange when expanded.
  2. Toggle to "NFD is stopped", the persistent notification disappears.
Actions #7

Updated by Ju Pan over 5 years ago

  • Status changed from Code review to Closed
  • % Done changed from 50 to 100
Actions

Also available in: Atom PDF