Hello Vivek Kumar,
Below, let's go through the code of the sample app where the control logic of the sample is defined.
1. These are the necessary variable assignments:
//This is your Telerik BackEnd Services API key.
//This is the scheme (http or https) to use for accessing Telerik BackEnd Services.
//This is your Android project number. It is required by Google in order to enable push notifications for your app. You do not need it for iPhone.
2. At line 12 of the script - set this variable to true only if you are running the app in the simulator. When deploying it to a device, set it to false
The developer is expected to assign manually only the aforementioned fields.
3. Continuing on the script - in the onDeviceReady
function (starting from line 22) is registered a simple check with two if
clauses. Do not
enter the actual api key and project number there. This checks verify if the variables exist and if they are set with a values, that are different from the sample defaults. In order to test the sample, do not modify the code snippet and leave it as it is by default:
(!baasApiKey || baasApiKey ==
"Missing API key!<br /><br />It appears that you have not filled in your Telerik BackEnd Services API key.<br/><br/>Please go to scripts/app/main.js and enter your Telerik BackEnd Services API key at the beginning of the file."
((!androidProjectNumber || androidProjectNumber ==
) && device.platform.toLowerCase() ==
"Missing Android Project Number!<br /><br />It appears that you have not filled in your Android project number. It is required for push notifications on Android.<br/><br/>Please go to scripts/app/main.js and enter your Android project number at the beginning of the file."
Let us know, if this works for you.
Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!