Replies (54)

I know pokey sends push notifications to your android from nostr but what do citrine and amber do? Please #explainlikeimfive I’m not someone versed in coding or computer science
Derek Ross's avatar Derek Ross
How to use Nostr while you're offline via Amethyst Yesterday, some of you may have seen my test notes as I was testing out a scenario where I had lost Internet access and still wanted to use Nostr. Maybe you live in a rural area like me and sometimes your cellular service is spotty. Maybe you are about to board an airplane and don't want to pay for expensive and often shitty WiFi. This solution will work for you, if you have Android. First, you'll need to install the Citrine relay on your mobile device. This is a relay that runs locally on your device. You can install it after you download it from GitHub or you can use an application manager such as Obtainium or Zap.store. https://github.com/greenart7c3/Citrine Once installed, launch the Citrine application and copy the relay URL from your notification drop down shade. It will look something like this. ws://localhost:4869 Next, head into Amethyst's relay settings and add this new relay. Press save. That's it! The next time you are without Internet access (or you can turn off WiFi and mobile data to test) you'll need to make sure that your new local really is running and then you'll creates new notes and replies as you previously would have done and post them as normal. This time however, they will only get posted to your local relay on your device. Once your Internet connectivity has returned, you will need to re-broadcast your notes and replies out to all of your other relays for other people to be able to read them. That's easy to do, though you do need to do this manually for everything that you created while offline. image That's it! You can now use Amethyst offline and broadcast your offline events to the world at a later time. I did try this with Primal on Android and had issues. First, when I added the new Citrine relay, all of my relays were nuked and I had to add them all back. 😡 Second, Primal will post to your Citrine relay when you're offline. I verified that the notes were there via Amethyst. However, once back online, the notes no longer showed up ony profile tab. Lastly, even if they did show up, Primal does not give you an option to broadcast an event from your timeline. Good luck!
View quoted note →
I noticed that in Graphene, if you switch users sometimed it does not connect again to the relays when you are back. Is it possible that was your case? Maybe same situation will happen if the phone was turned off.
I'm not using Graphene. I force closed and restarted the app. It seems to be working now. I'll see if it continues working the rest of the day. I wonder if Adaptive Battery killed the process?
It shouldn't. Next time chekc your relays tab. If there is nothing or just a few, try just the Stop and Start button. It should do the trick
Yo 🤙 what does your citrine setup look like? I just downloaded and set it up, learning as i go. So far, it's not taking my notes (although i have authorized this npub and added 1 under kinds, and added it to my relay list).
It’s literally a relay on your phone. It backups events you post or others depending on how you set it up. You can also use it on Amethyst as your private relay. I didn’t know about the offline posting feature Derek described.
I know that you can add an external backup to Citrine. Is there a guide that can show me how I can download all my older events from a public relay I've been broadcasting to?
This would essentially make my Citrine relay home to every single event that I've signed and broadcasted on Nostr since I created these keys. It would be super cool!
I can validate that. I use Graphene, and Pokey worked the first time. I switched profiles and I've not been able to get it to work since, even though it says it's running. I've even uninstalled/reinstalled everything (Pokey, Zapstore, Amethyst), it seems I completely broke it. 😑
LpLiberto's avatar
LpLiberto 1 year ago
Can you point me to tutorials on how to implement that set up? I’m useless… or would you consider making one yourself??
Derek Ross's avatar Derek Ross
How to use Nostr while you're offline via Amethyst Yesterday, some of you may have seen my test notes as I was testing out a scenario where I had lost Internet access and still wanted to use Nostr. Maybe you live in a rural area like me and sometimes your cellular service is spotty. Maybe you are about to board an airplane and don't want to pay for expensive and often shitty WiFi. This solution will work for you, if you have Android. First, you'll need to install the Citrine relay on your mobile device. This is a relay that runs locally on your device. You can install it after you download it from GitHub or you can use an application manager such as Obtainium or Zap.store. https://github.com/greenart7c3/Citrine Once installed, launch the Citrine application and copy the relay URL from your notification drop down shade. It will look something like this. ws://localhost:4869 Next, head into Amethyst's relay settings and add this new relay. Press save. That's it! The next time you are without Internet access (or you can turn off WiFi and mobile data to test) you'll need to make sure that your new local really is running and then you'll creates new notes and replies as you previously would have done and post them as normal. This time however, they will only get posted to your local relay on your device. Once your Internet connectivity has returned, you will need to re-broadcast your notes and replies out to all of your other relays for other people to be able to read them. That's easy to do, though you do need to do this manually for everything that you created while offline. image That's it! You can now use Amethyst offline and broadcast your offline events to the world at a later time. I did try this with Primal on Android and had issues. First, when I added the new Citrine relay, all of my relays were nuked and I had to add them all back. 😡 Second, Primal will post to your Citrine relay when you're offline. I verified that the notes were there via Amethyst. However, once back online, the notes no longer showed up ony profile tab. Lastly, even if they did show up, Primal does not give you an option to broadcast an event from your timeline. Good luck!
View quoted note →
Check your relay list next time. It should get fixed if you just stop and start the service. The bad news is that notifications before restart won't appear again.
Did you disable battery optimizations for Pokey? It should be set to "Unrestricted" to keep it from being closed or deactivated by Android's regular device optimizations.
My Pokey is pulling less than 0.1% of battery usage. I comparison, Amethyst is pulling 1.4%. So Pokey's battery useage has been very good for me. I suspect its battery useage is dependant on how many notifications a user receives over time, but generally speaking it appears to be very efficient.
probably not much because it basically offloads a heap of work from the app itself, one is the signer, one is the relay, one is notifications... they all sit there doing nothing until teh user pokes at them oh yeah, pokey might be a bit of a power drain, the other to no