Git Product home page Git Product logo

Comments (14)

unpairedbracket avatar unpairedbracket commented on June 29, 2024

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.

Tom-Johnston avatar Tom-Johnston commented on June 29, 2024

I have an API key.

from film-night.

jstockwin avatar jstockwin commented on June 29, 2024

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.

jstockwin avatar jstockwin commented on June 29, 2024

@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.

unpairedbracket avatar unpairedbracket commented on June 29, 2024

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...

selection_132
^that one

from film-night.

Tom-Johnston avatar Tom-Johnston commented on June 29, 2024

An Android API key is for sending the requests from an app. It requires a package name and the apps SHA-1 signing fingerprint.

There are my options
image

from film-night.

unpairedbracket avatar unpairedbracket commented on June 29, 2024

Oh, I guess they've updated that to make it less confusing.
Web server then, I guess...

from film-night.

Tom-Johnston avatar Tom-Johnston commented on June 29, 2024

That's what you should have.

from film-night.

Tom-Johnston avatar Tom-Johnston commented on June 29, 2024

We have a zero quota?
image

from film-night.

unpairedbracket avatar unpairedbracket commented on June 29, 2024

I think I might have figured out the issue

from film-night.

unpairedbracket avatar unpairedbracket commented on June 29, 2024

Should the project-id be pluralised?

from film-night.

Tom-Johnston avatar Tom-Johnston commented on June 29, 2024

No.

from film-night.

unpairedbracket avatar unpairedbracket commented on June 29, 2024

That's strange, because it works if it is, and not if it's not...

from film-night.

unpairedbracket avatar unpairedbracket commented on June 29, 2024

Now works on Chrome and Firefox.

from film-night.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.