Comments (14)
I've got the first bit of work done on this. It's in the webpush branch at bdf467f - if someone else wants to do any testing that'd be great. Currently works on FF and should work on Chrome when the manifest has our project ID and we get a GCM key. I've used a php var for the GCM API key that @Tom-Johnston'll need to get from Google so we can store it in an above-root php file like the db details if need be - should we be doing that with the client id as well, or is it fine as it is?
from film-night.
I have an API key.
from film-night.
I would suggest making it a variable in database.php.
I'll add it to the one on the pis tomorrow.
On Mon, 8 Feb 2016, 22:44 Tom Johnston [email protected] wrote:
I have an API key.
—
Reply to this email directly or view it on GitHub
#21 (comment)
.
from film-night.
@unpairedbracket API keys etc are now in database.php, and so provided this is included will be available to you on the pis.
$push_api is the API key
$push_id is the project ID
$push_number is the project number.
I'll also private message you with these so you can use them in your local dev environment.
from film-night.
I seem to still be having issues with registering to receive pushes in Chrome...
Maybe it's taking a while to enable GCM? I think the thing I saw had GCM for Chrome and GCM for Android APIs available, and we actually want the for android one - I probably should have mentioned that...
from film-night.
An Android API key is for sending the requests from an app. It requires a package name and the apps SHA-1 signing fingerprint.
from film-night.
Oh, I guess they've updated that to make it less confusing.
Web server then, I guess...
from film-night.
That's what you should have.
from film-night.
from film-night.
I think I might have figured out the issue
from film-night.
Should the project-id be pluralised?
from film-night.
No.
from film-night.
That's strange, because it works if it is, and not if it's not...
from film-night.
Now works on Chrome and Firefox.
from film-night.
Related Issues (20)
- Favicon is the same colour as the theme HOT 8
- Colours
- execute.php doesn't actually check the users email settings
- gethostname() is getting server hostname not client HOT 2
- Settings is broken HOT 1
- MathJax doesn't work when changing to the results page. HOT 3
- Should have separate settings for notification via webpush vs via email
- Mixed content on voting page
- Conflicting stylesheets
- Settings handler code is horrible HOT 1
- Should probably get rid of override.php
- Need to set viewport
- My nice mechanical keyboard has broken :( HOT 1
- We are not very responsive.
- Nominations/Veto is completely broken
- Not all films were migrated.
- Calculating results server-side HOT 1
- Something is wrong with notifications HOT 3
- Using a better normalized database HOT 4
- Voting reminder emails are broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from film-night.