I have a working version of bitchat android with full background persistance. can run in your pocket for days after closing, waiting for incoming messages, relaying the messages of others, with notifications when you receive a message. starts automatically after boot. battery use is minimal. all optional, user has full control.
remember when satoshi told @Martti Malmi "fuck linux, lets implement minimize to tray for windows, that's going to increase the node count by 300%" — that's what I'm doing now.
Thread
Login to reply
Replies (15)
wow!! doable for ios too?
Do notifications run over nostr relays?
Based
Is it the latest GitHub version?
Please change the name
what android, device in the popular range would you recommend (let's exclude GrapheneOS as this one is not allowed in certain situations 👀, but just works with #bitchat)?
Did you also handle the needed restart on new version being installed?
When user updates the app, Android will kill the process, then dispatch a system Intent to it after installation completion. It will receive a warm start whereby the Saved Instance State is recoverable.
Wow no I wasn't aware that's crazy. Does it need migrations?
Do you wanna help dev with bitchat btw? I could use a pro to show me the way.
> Wow no I wasn't aware that's crazy. Does it need migrations?
Unsure what you mean by migrations. The OS will install the new version over the old one. If you have defined in your manifest a broadcast receiver for `android.intent.action.ACTION_PACKAGE_REPLACED`, you'll receive the Intent upon completion and can restart your services and what not.
> Do you wanna help dev with bitchat btw? I could use a pro to show me the way.
I'm no pro 😂, just have been around the block once or twice. I'd love to, but have my plate full with a grant from @OpenSats working on kmp-tor for the next 3 months, then back to my other project.
See:
Android Developers
Intent | API reference | Android Developers
Sorry, the string value to declare in your manifest is actually `PACKAGE_REPLACED` not `ACTION_PACKAGE_REPLACED
Cool story, except that's not what Satoshi said :
A few suggestions
A few suggestions