This is a migrated thread and some comments may be shown as answers.

Missing API key!

1 Answer 160 Views
Google Android
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vivek Kumar
Top achievements
Rank 1
Vivek Kumar asked on 09 Apr 2014, 08:07 AM
Hi All,

I am just trying to configure https://github.com/telerik/backend-services-push-hybrid

But it always says that Missing API key! It appears that you have not filled in your Everlive API key. Please go to scripts/app/main.js and enter your Everlive API key at the beginning of the file.

I am changing API and google project on below stuffs but still it says above message. 

Could you please let us know how it will work?

Also how i can send test message once my device got registered. please let me know?

//This is your Everlive API key.
var everliveApiKey = 'EVERLIVE_API_KEY';

var androidProjectNumber = 'GOOGLE_PROJECT_NUMBER';

and on here

var onDeviceReady = function() {
        if (!everliveApiKey || everliveApiKey == 'EVERLIVE_API_KEY') {
            $("#messageParagraph").html("Missing API key!<br /><br />It appears that you have not filled in your Everlive API key.<br/><br/>Please go to scripts/app/main.js and enter your Everlive API key at the beginning of the file.");
            $("#initializeButton").hide();
        } else if ((!androidProjectNumber || androidProjectNumber == 'GOOGLE_PROJECT_NUMBER') && device.platform.toLowerCase() == "android") {
            $("#messageParagraph").html("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.");
            $("#initializeButton").hide();
        }
    };






1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 11 Apr 2014, 03:25 PM
Hello,

This question has been answered in another forum thread. For further questions and comments on this topic, please, head over to it.

Regards,
Anton Dobrev
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
Google Android
Asked by
Vivek Kumar
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or