Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

PanicKit integration #157

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

eighthave
Copy link

This adds a settings screen called "Panic Responders" that lets the user configure which apps will receive the PanicKit panic trigger when the panic button is pressed. This also hooks up the panic button to send the PanicKit trigger message to all enabled apps.

You can see an example of this setup here:
https://www.youtube.com/watch?v=mS1gstS6YS8

It is demoing Ripple, Orweb, and a little bit of Zom.

@jmatsushita
Copy link
Member

Awesome to see this finally implemented! Thanks a lot for your work that's a great Christmas present :)

I've merge this into a panickit branch and did some basic testing. When I click on "EDIT" to configure the Zom responder, there is a screen asking to open with Zom or the Panic Trigger App. I intuitively tried with Zom but that didn't work, and then reverted to Panic Trigger App which seems to be the correct link. Gladly I had asked "Just Once" so I can change this. But this could prove to be a usability problem?

I'll merge #156 onto panickit now so you can restart from there and keep this PR open if you want to do further work, alternatively feel free to close this one and start another one!

@eighthave
Copy link
Author

That Zom/Panic Trigger App chooser should never show, that was a bug on
my part, I set the Intent Action to null rather than
Panic.ACTION_CONNECT. I added that fix here. I rebased my commits on
top on the main dev branch and force pushed them again here. So
you can just merge this, and then delete your panickit branch.

@jmatsushita
Copy link
Member

Hey, if you could make the base of this PR the panickit branch then I could just accept the merge as I'm keeping dev clean for our upcoming 1.5.0 release. Thanks!

@eighthave
Copy link
Author

My rebased version updated the stuff for the latest work in dev, so
perhaps that's the best place to test from without merging? You can
test my branch without merging by doing:

git remote add eighthave https://github.com/eighthave/PanicButton
git fetch eighthave
git checkout eighthave/panickit-integration

Then if that works for you, you can update your panickit branch by doing:

git branch -D panickit # deletes the local copy of the branch
git branch panickit eighthave/panickit-integration # make a new
panickit branch

Then to force push your local panickit, overwriting the old one:

git push -f origin panickit

I tried rebasing my panickit-integration branch on your panickit branch,
but it already includes the new stuff from dev, so its not easy to do.

@kevinmday
Copy link

Hi all. I'm new and just opened a new repository called panicbutton-ccw. like panicbutton.io, my idea is for a panicbutton specifically for CCW holders and other 1st responders. citizen defenders would receive any triggered alert originating within their own user-defined response area. this is a public safety initiative aimed at better protecting innocent people against terrorism, anarchy, and other mass shooters.

@eighthave
Copy link
Author

Good to see more ideas around panic responses! PanicKit is meant to make this all possible. Let me know if you have PanicKit questions.

@kevinmday
Copy link

Thanks! I'll check panickit out on the hub. Kevin M. Day

  From: Hans-Christoph Steiner <[email protected]>

To: PanicInitiative/PanicButton [email protected]
Cc: bendor [email protected]
Sent: Monday, February 29, 2016 12:39 PM
Subject: Re: [PanicButton] PanicKit integration (#157)

Good to see more ideas around panic responses! PanicKit is meant to make this all possible. Let me know if you have PanicKit questions.—
Reply to this email directly or view it on GitHub.

@eighthave
Copy link
Author

I rebased this to be on top of the latest dev branch.

@eighthave
Copy link
Author

any word on getting this included? I'm happy to fix the merge conflicts when you're ready to merge this.

@kevinmday
Copy link

Hello,
I must admit, this was just an idea I had a while back. I don't know how to merge this, but definitely support those who do. 
What do I need to do in order to move this along? Thanks in advance. Kevin 
From: Hans-Christoph Steiner [email protected]
To: PanicInitiative/PanicButton [email protected]
Cc: bendor [email protected]; Comment [email protected]
Sent: Friday, June 24, 2016 1:48 AM
Subject: Re: [PanicInitiative/PanicButton] PanicKit integration (#157)

any word on getting this included? I'm happy to fix the merge conflicts when you're ready to merge this.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@eighthave
Copy link
Author

Ok, I rebased and fixed this to be on top of the latest dev branch. Its ready to be merged! :-)

This shows all apps that will responder to the panic trigger, and provides
a switch each app so the user can enable/disable which apps should receive
the trigger.
@eighthave
Copy link
Author

I think its important to the Panic Initiative to see this feature put out in a full release of PanicButton so we have two clear panic button apps available. How about I make a version of this that is on top of the last official release, so that this would be the only change? Then we can get that out sooner since the changes would be small and very low risk. We could include some translation updates while we are at it, since I believe Localization Lab recently worked on this app.

Then the code can be integrated in the dev branch and included once that goes through the final review process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants