Global Feed Post Login
Replying to Avatar Vitor Pamplona

Push Notifications: how to do it? Amethyst doesn't have a server, so there nothing to push from.

Is it possible to sign up from push notifications from independent relays? Is it safe? 🤔

FYI: a push notification is simply an alert to the app that some new content is available. The push doesn't actually carry the content itself. Upon receiving, Android wakes the app up and the app needs to ping relays to download the new content and display as a notification.

Avatar
robdev 2y ago

Could use a WorkManager background service, or CoroutineWorker if using Kotlin Coroutines

Reply to this note

Please Login to reply.

Discussion

Avatar
robdev 2y ago

WorkManagers are long lived and usually not cancelled by android os unless they're real battery hogs. Could use one to periodically query for user notifications from relays

Thread collapsed