Skip to content

chaione/azure_push_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AzurePushClient

Send push notifications through Azure

Base on: https://github.com/christian-s/azure-push

Installation

  1. Add azure_push_client to your list of dependencies in mix.exs:

    def deps do [{:azure_push_client, github: "chaione/azure_push_client"}] end

  2. Ensure azure_push_client is started before your application:

    def application do [applications: [:azure_push_client]] end

Usage

Function signature: send({namespace, hub, access_key}, payload, tags \\ [], format \\ "apple")

AzurePushClient.Message.send({namespace, hub, access_key}, %{aps: %{alert: "Testing"}})
AzurePushClient.Message.send({namespace, hub, access_key}, %{aps: %{alert: "Testing"}}, ["tags"], "apple")

TODO

  • Google cloud messaging

Notes

Version 1.0.0 removes OTP.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages