Giter Club home page Giter Club logo

fusioninsite-push-server's Introduction

fusionInSite-push-server

Push notification server for Catalent

Schedule Configuration

<AppSettings> <add key="CronSchedule" value="" /> </AppSettings>
The cron schedule when the application will check for new push notifications to send

Cron-Expressions are used to configure instances of CronTrigger. Cron-Expressions are strings that are actually made up of seven sub-expressions, that describe individual details of the schedule. These sub-expression are separated with white-space, and represent:

Seconds
Minutes
Hours
Day-of-Month
Month
Day-of-Week
Year (optional field)

    • = any value
  • ? = any value used in Day-of-Week field

An example of a complete cron-expression is the string “0 0 12 * * WED” - which means “every Wednesday at 12:00 pm”.

Another example is the string “* 0/15 * * * ?” - which means “every 15 minutes”.

Logging Configuration

Logging done by Log4net and is configred by editing the fusionInsite.App.Console.exe.config file
See: https://logging.apache.org/log4net/release/config-examples.html

OneSignal Configuration

<AppSettings>
<add key="OneSignalAppId" value="" />
<add key="OneSignalApiKey" value="" />
</AppSettings>

Installation

Build the solution in Release mode in Visual Studio. This will produce a fusionInsite.App.Console/bin/Release folder. This folder can then be deployed by copying this folder onto the target machine, opening an Administrative command prompt and typing

fusionInsite.App.Console install
and then
fusionInsite.App.Console start

The service will be visible in the Windows "Services" Management Console, and will start automatically whenever the system restarts.

Push Notifications

Push notifications are sent through OneSignal

An example payload is as follows:

{
   app_id = '00000000-0000-0000-0000-000000000000',
   contents = new { en = 'Notification text content'}    include_player_ids = '00000000-0000-0000-0000-000000000000',
   data = {
      notificationId = 123456
   },
}

fusioninsite-push-server's People

Contributors

leeparkinson avatar leeparkinson-rtd avatar thunderliortest[bot] avatar

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.