Send personal or bulk push notifications to your clients. Schedule them, plan to send by client time zone, and have different languages over each message you deliver.
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.
To start using the push notifications service and it's API methods, you firstly need to enable push notifications service in your CodeMash dashboard.
Using SDK
If you decide to use one of our provided SDK, the following code shows how to initialize the notifications service.
var projectId =Guid.Parse("{YOUR_PROJECT_ID}");var apiKey ="{YOUR_SECRET_KEY}";var client =newCodeMashClient(apiKey, projectId);var pushService =newCodeMashPushService(client);
The following are examples of push notifications SDK using different languages and frameworks.
usingSystem;usingCodeMash.Client;usingCodeMash.Notifications.Push.Services;usingIsidos.CodeMash.ServiceContracts;namespaceConsoleApplication{classProgram {staticvoidMain(string[] args) { // 1. Get your Project ID and Secret Keyvar projectId =Guid.Parse("{YOUR_PROJECT_ID}");var apiKey ="{YOUR_SECRET_KEY}"; // 2. Create a general client for API callsvar client =newCodeMashClient(apiKey, projectId); // 3. Create a service objectvar pushService =newCodeMashPushService(client); // 4. Call an API methodvar response =pushService.SendPushNotification(newSendPushNotificationRequest { TemplateId =Guid.Parse("{TEMPLATE_ID}"), Users =newList<Guid> { Guid.Parse("{USER_ID}") } } ); } }}