Actions
Feature #4766
closedPost persistent notification to improve stability
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
Updated by Junxiao Shi about 6 years ago
- Related to Bug #3409: NFD-Android stops forwarding packets after running for about 15 minutes added
Updated by Davide Pesavento about 6 years ago
- Subject changed from Post persistent notification to improve stableness to Post persistent notification to improve stability
- Priority changed from Normal to High
Updated by Junxiao Shi about 6 years ago
- Assignee set to Ju Pan
Beichuan decides to assign this to Ju on 20181105 NFD call.
Updated by Ju Pan about 6 years ago
- Status changed from New to Code review
- % Done changed from 0 to 50
Actions
#6
Updated by Junxiao Shi about 6 years ago
- File 5030-5_off.png 5030-5_off.png added
- File 5030-5_icon.png 5030-5_icon.png added
- File 5030-5_notification.png 5030-5_notification.png added
I've tested Change 5030 patchset5 on a Sonim XP8800 running Android 7.1.1. It works well in the following items:
- Toggle to "NFD is started", a persistent notification appears. The icon says "NDN". It appears white when collapsed, and orange when expanded.
- Toggle to "NFD is stopped", the persistent notification disappears.
Updated by Ju Pan about 6 years ago
- Status changed from Code review to Closed
- % Done changed from 50 to 100
Actions