Skip to content

Push Notifications

meow12 edited this page Dec 12, 2019 · 1 revision

CodeMash Push Notifications service allows you to push mobile notifications to your users. All notifications queuing and management is accessible through the dashboard. Using API methods you can register devices, push messages and more.

Install-Package CodeMash.Notifications

This package contains all of the methods for Email Notifications and Push Notifications services.

Dependencies

  • Servicestack

Working with Push Notifications SDK

The following links explore the usage of push notifications service:

  1. Connect
  2. Devices
  3. Notifications
  4. Templates

Example

The following is an example of an application connecting and using Push Notifications SDK.

using System;
using CodeMash.Client;
using CodeMash.Models.Entities;
using CodeMash.Notifications.Push.Services;
using CodeMash.Repository;
using Isidos.CodeMash.ServiceContracts;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            var projectId = Guid.Parse("{YOUR_PROJECT_ID}");
            var apiKey = "{YOUR_SECRET_KEY}";

            var client = new CodeMashClient(apiKey, projectId);
            var pushService = new CodeMashPushService(client);

            var response = pushService.SendPushNotification(new SendPushNotificationRequest
            {
                TemplateId = Guid.Parse("{TEMPLATE_ID}"),
                Users = new List<Guid> { Guid.Parse("{USER_ID}") }
            });
        }
    }
}


  1. Getting Started
    1.1. Register at CodeMash
    1.2. Install CodeMash
    1.3. Set up API keys

  2. Microservices
    2.1. Database
       2.1.1. Connect
       2.1.2. Insert
    2.2. Membership
       2.2.1. Connect
       2.2.2. User Registration
       2.2.3. Authentication
       2.2.4. User Management
    2.3. Files Service
       2.2.1. Connect
    2.4. Email Notifications
       2.2.1. Connect
       2.2.1. Emails
    2.5. Push Notifications
       2.2.1. Connect
       2.2.1. Devices
       2.2.1. Notifications
       2.2.1. Templates
    2.6. Scheduler
    2.7. Code Service
       2.2.1. Connect
       2.2.2. Functions
    2.8. Logs
       2.2.1. Connect
       2.2.2. Logs Management

  3. Other Services
    3.1. Project Settings
    3.2. Tokens Binding

Clone this wiki locally