Send Notification from a Push Template¶
Backendless.Messaging.pushWithTemplate( templateName, templateValues )
.then( function( messageStatus ) {
}
.catch( function( error ) {
}
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: