agilgur5 / agilgur5/react-native-manga-reader-app

Use BackgroundFetch and LocalNotifications to notify of new chapters

Đang mở
#18 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature
Ngôn ngữ chính
JavaScript
Star
19
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

- [BackgroundFetch API](https://docs.expo.io/versions/v35.0.0/sdk/background-fetch/)
- [Local Notification API](https://docs.expo.io/versions/latest/sdk/notifications/#notificationspresentlocalnotificationasynclocalnotification)

There's no server component to this, so we can't do this server-side and send a push notification, have to do it client-side and send local notification. Of course the major downside to this (apart from battery and phone usage) is that if the app is terminated or the phone is restarted, the BackgroundFetch won't start until the app is opened again 😕 On Android, there is a workaround built-in for both these cases, but not for iOS.

Sending Local Notif is easy enough, but BackgroundFetch requires some more reading and a bit of effort to get familiar and set-up.

Related to this would be loading chapters on the front-page / main view and highlighting mangas which have new unread chapters. New Unread Chapter indicates highlight in-app and LocalNotification out-of-app (probably no need to notify if app is still open, user will probably see the new chapter indicator themselves... well not if they quit the app while inside a manga... idk).

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.