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

Push Plugin

3 Answers 155 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Adt
Top achievements
Rank 1
Adt asked on 23 Sep 2013, 11:34 AM
Hi there,

I am trying to test the PUSH functions in icenium and Kendo UI according to this post:

http://www.icenium.com/blog/icenium-team-blog/2013/04/17/push-notifications-with-cordova-icenium

I have no problem with the Server, but when I try the Cordova-based PushPlugin plugin, I get this Error massage:

http://prntscr.com/1sz6oc (src/android/libs/gcm.jar fie not found)

How to correct this Error, has someone idea?

Best regards
Tony

3 Answers, 1 is accepted

Sort by
0
Kristina
Telerik team
answered on 24 Sep 2013, 12:40 PM

Hey Tony,

As I see from the screenshot that you have provided, you have included lots of versions of the Push Plugin. For your convenience we have provided specific version of the plugin that is already tested and working in our infrastructure. So you could just create new Blank project, add the Push Plugin from Project Properties and follow the blog for the rest of the steps. You could find more information about enabling our integrated plugins here.

About the error message that you receive, the Push Plugin for android relies on the Google Cloud Messaging library. The plugin.xml for your plugin defines the location of the reference, so the build would fail if the library is not presented at that location. 

Please contact us if you have any other problems!

Best Regards,
Kristina
Telerik

Big news for mobile app and .NET developers! Hear about it at our Release Keynote. Thursday, September 26th, 11AM EDT
Do you enjoy Icenium? Vote for it in Windows IT Pro Community Choice Awards as Best Cloud Computing Product or Service (Category 5).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Adt
Top achievements
Rank 1
answered on 11 Oct 2013, 03:34 PM
Hello Kristina,

thank you for your answer.

I followed your instructions, and now I can compile the push Plugin with no problems.

Unfortunately I have still a lot of problems with the example-post. I downloaded the test-project from the tutorial(post), and copyed the index.html and the hello-world.js files from it. But It still doesnt works. I used on it my own API key and server IP. I saw that in the index.html file there is called a function "sayHello()" on click, but this function is not in push.js and not in hello-world.js. I think the post or push-tutorial is incompleted. Or am I doing something wrong?

I would be glad if there were some working examples with push notification, so is the easyest way to understand it.

with best regards
Tony
0
Steve
Telerik team
answered on 16 Oct 2013, 11:16 AM
Hi Tony,

We have a complete sample that uses push notifications available that also integrates our BaaS provider Everlive, you can clone it from here. Before testing the app functionality on Android devices, make sure that you meet the following prerequisites.

  • Verify that you have created an API project in the Google APIs portal.
  • Verify that you have enabled the Google Cloud Messaging for Android service for your Google API project. In the Google APIs portal, click Services and verify that the status of the Google Cloud Messaging for Android service is ON.
You can find documentation on the sample here.

If you're still having problems, please try to send a notification using this software:
http://gcm.codeplex.com/

With the above software you can use the same push token and android API key and check if the problem is in getting a valid token or in your app itself.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Apache Cordova
Asked by
Adt
Top achievements
Rank 1
Answers by
Kristina
Telerik team
Adt
Top achievements
Rank 1
Steve
Telerik team
Share this question
or