Skip to content

Example: Notification from a Push Template

Blocking API

MessageStatus msgStatus = Backendless.Messaging.pushWithTemplate( "TemplateName" );

Non-blocking API

Backendless.Messaging.pushWithTemplate( "TemplateName", 
                                         AsyncCallback<MessageStatus> responder  );

Backendless Console includes a code generator which creates the client-side code for publishing a push notification for a template. To access the code generator, login to Backendless Console, select your app and click the Messaging icon. Select the PUSH NOTIFICATION tab and click the Push Templates menu. There is the "show code" icon for each created template as shown below. When you click the icon, a popup is displayed with the generated code:


The displayed popup lets you select the client-side language and copy the generated code: