Skip to content

vdininski/backend-services-push-hybrid-advanced

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

This application is an example of creating and receiving Push Notifications provided by Telerik Backend Services.

Requirements

  • Registration in Telerik Platform (https://platform.telerik.com/).
  • A new or existing Backend Services project in your Platform account.
  • The project must be configured for push notifications as specified in the Backend Services documentation.

In order to send a notification to a subset of users you will need a Telerik Platform subscription plan that supports "Push to Segment".

Showcased features of Telerik Backend Services

  • Users management in Telerik Backend Services.
  • Enabling a device for push notifications.
  • Registering of devices with a userId field.
  • Creating push notifications from the client app.
  • Targeting push notifications to specific users.

Supported platforms

  • iOS
  • Android
  • Windows Phone 8

Installation

  • Log in Telerik AppBuilder and clone this repository.
  • Open the config.js file located in the scripts folder.
  • Locate the variable app.config.everlive.apiKey and replace its value with the API key for the configured Backend Services project.
  • Locate the variable app.androidProjectNumber and replace it with your Google API Project Number. More details on obtaining the project number can be found here.

Running the sample app

Receiving push notifications is not supported in the AppBuilder simulator and in the Telerik AppBuilder Companion app, but you will be able to target and send push notifications to other users.

  • Deploy the project to a device and run it. More information of how to run your hybrid app created with Telerik AppBuilder on devices can be read here: Running Apps on Devices.

  • Authenticate to the app with an existing or new user account.

  • The app will try to automatically enable the device for push notifications and register it/update its registration in Telerik Backend Services. You will be able to survey the process in the main view of the app.

  • You can select specific users and tap the "Send" button to send an already predefined message to them. Alternatively, you can just tap the "Send" button and the app will send a notification to all registered devices in your app.

  • A message will be displayed in the main view of the app when the notification was sent and when you receive a push notification.

About

backend-services-push-hybrid-advanced

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.7%
  • Java 11.9%
  • Objective-C 4.7%
  • CSS 3.9%
  • C# 2.6%
  • Ruby 0.2%