Push notifications have become an integral part of Telerik Backend Services, and with this release we are bringing a wide range of new capabilities. Not only have we simplified the push notifications registration on a device using our own Telerik Push Notifications plug-in, but we also introduced the ability to easily troubleshoot failed messages and to control the badges count on the device straight from the server.
Without doubt, the most exciting feature is the ability to define and send Interactive Push Notifications, which were introduced in iOS 8. Interactive Push Notifications let you define action buttons straight in the notification in iOS. This is a great way to improve the user experience for some of your most common notifications.
Simply configure your push settings while registering the device with the necessary action buttons.
actions: [{
identifier:
'PURCHASE_IDENTIFIER'
,
title:
'Purchase'
,
activationMode: window.plugins.pushNotification.UserNotificationActivationMode.Foreground,
destructive:
false
,
authenticationRequired:
true
}, {
identifier:
'REMIND_IDENTIFIER'
,
title:
'Remind Me Later'
,
activationMode: window.plugins.pushNotification.UserNotificationActivationMode.Foreground,
destructive:
true
,
authenticationRequired:
true
}]
interactiveSettings: {
actions: [{
identifier:
'PURCHASE_IDENTIFIER'
,
title:
'Purchase'
,
activationMode: window.plugins.pushNotification.UserNotificationActivationMode.Foreground,
destructive:
false
,
authenticationRequired:
true
}, {
identifier:
'REMIND_IDENTIFIER'
,
title:
'Remind Me Later'
,
activationMode: window.plugins.pushNotification.UserNotificationActivationMode.Foreground,
destructive:
true
,
authenticationRequired:
true
}],
categories: [{
identifier:
'DEAL_CATEGORY'
,
actionsForDefaultContext: [
'PURCHASE_IDENTIFIER'
,
'REMIND_IDENTIFIER'
],
actionsForMinimalContext: [
'PURCHASE_IDENTIFIER'
,
'REMIND_IDENTIFIER'
]
}]
}
}
The team is doing its best to make sure customers familiar with Backend Services will feel at home when they start using the Backend Services with NativeScript. We have abstracted all the necessary logic in our SDK, making sure it will benefit from the Native capabilities of the device when running on NativeScript.
The methods and properties of the Backend Services SDK are the same, so you don’t have to learn new programming APIs when building Hybrid, Web or NativeScript apps.
To proof that, here is a sneak peak of the SDKs showing you how to get the Activities content type part of our Friends sample app.
var
Everlive = require(
'./everlive.all'
);
var
el =
new
Everlive(
"API-KEY-HERE"
);
// make sure to place your API Key here
el.data(
'Activities'
).get().then(
function
(data) {
Log(
'success sdk = '
+ JSON.stringify(data));
},
function
(err) {
Log(
'Error = '
+ JSON.stringify(err));
});
Hristo Borisov (@hristoborisov) is currently a product line manager in Telerik leading all cloud technologies part of the Telerik Platform after spending more than 6 years with the company. A passionate advocate of applying lean startup practices to existing organizations, Hristo is on the quest for discovering scalable and sustainable business models through product and customer development using tools like MVPs, Pivots, and Lean Business Model Canvases.