GithubHelp home page GithubHelp logo

cockpit-push-notification's Introduction

Cockpit CMS Push Notification

Push Notification addon for Cockpit CMS

Download the repo and put it content in addons/pushNotification

User required fields

{
  "deviceType": "iOS/Android",
  "deviceToken": "Android or iOS device token"
}

Changes in config.yml

pushNotifications:
  cert:
    dev: 'cert-dev.pem'
    live: 'cert-live.pem'
  keys:
    ios: 'P@ssw0rd passphrase'
    android: 'AAAA_XXXXXXXXXXXXXXXXXXXX'

Make sure to add the iOS certificates in the same directory and make sure to change the config.yml cert file names

Usage:

currently there is no UI available but you can use it as follows:

$message = [
  'mtitle' => 'This is push notification title',
  'mdesc' => 'This is the content'
]
$this->app->module('pushnotification')->push($message);

cockpit-push-notification's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pwfoo

cockpit-push-notification's Issues

Push notifications with webpush api?

Hi,

I'm searching for headless cms with push notification support. Started playing with Directus before. So no experience with cockpit.

Your module is using FCM / Google push notifications, but it would be awesome to have a device dependent solution!

Do you know webpush api?
https://github.com/web-push-libs/web-push-php

It works with the push service dependent on the device / browser without to force for example firefox users to use google push service.

Any change you would take a look into the web-push-php library to make your push notification plugin independent from google service?

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.