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

Push Notifications With Cordova & Icenium for calling a .NET Web API

11 Answers 90 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 01 Nov 2013, 12:31 AM
Hello,

I am new in the Icenium community and on Android/IOS development and need a little help to get me started.  I want to create a Push Notification app that needs to call a specific ASP.Net Web API to provide REST web interfaces which resides on a server.  Will I need node.js in order to perform this action or Cordova takes care of everything?  Is server side javascript/node.js necessary in my Icenium development?

I want to follow these steps: http://www.icenium.com/blog/icenium-team-blog/2013/04/17/push-notifications-with-cordova-icenium
but will this help me to call a specific ASP.Net Web API?

Thanks for your help

11 Answers, 1 is accepted

Sort by
0
Nikola
Telerik team
answered on 01 Nov 2013, 01:57 PM
Hi Martin,

The blog post you are referring to walks you through both sides of the story - the client and the server. If you would like to use your own server implementation, this is absolutely fine - you just need to refer to the client part of the tutorial and replace the server calls with ones that are appropriate for your server.

Regards,
Nikola
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.
0
Martin
Top achievements
Rank 1
answered on 01 Nov 2013, 08:23 PM
Hi Nikola,

Thanks for your answer!

I will also need to make a call to GCM from my server so will post again if having difficulties on this part,
0
Steve
Telerik team
answered on 04 Nov 2013, 07:22 AM
Hi Martin,

If you're having trouble with push notifications in your app you can try first with this application: http://gcm.codeplex.com/ to rule out GCM problems in general.

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.
0
Martin
Top achievements
Rank 1
answered on 05 Nov 2013, 01:51 PM
Hi Steve,

Thanks for your feedback.  I will check this out,
0
Martin
Top achievements
Rank 1
answered on 09 Nov 2013, 08:18 PM
Hi Steve,

This is exactly what I need to do: http://androidexample.com/Android_Push_Notifications_using_Google_Cloud_Messaging_GCM/index.php?view=article_discription&aid=119&aaid=139

So the Icenium PushNotification plugin contains thefunctionality to do exactly this right?  I am having trouble to Register Android Device for GCM.  Do you have a specific link for me to action this?  Also, is there code samples where it shows exactly what we need to do in Icenium to perform the functionality I provided in my above link?

Please note that my Server is a .NET API application.

Thanks for your time!
0
Martin
Top achievements
Rank 1
answered on 09 Nov 2013, 08:27 PM
And getting this error when using http://gcm.codeplex.com/:

"error":"InvalidRegistration"

Is there an application we can use in order to Register android phone/ios to GCM without having to code?
0
Steve
Telerik team
answered on 11 Nov 2013, 02:45 PM
Hi Martin,

Yes, the PushPlugin is Cordova plugin created for the purpose of sending push notifications to iOS and Android devices. The plugin itself is under active development and there is a new version at least once in a couple of months, that adds bug fixes and missing functionality. You can refer to the plugin documentation for more information on the supported functionality for both platforms.

Getting invalidregistration on the GCM tool, means you are missing one of 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.

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.
0
Martin
Top achievements
Rank 1
answered on 11 Nov 2013, 11:08 PM
Thanks Steve!

Following up on this GCM tester: http://gcm.codeplex.com/

I did all the prerequisites but still getting a InvalidRegistration.  It seems not to like my  Device Token.  I am using an Android.  What do I need to enter in this filed for an Android?  I tried my device.uuid but no success.  My API key seems to be good,

Thanks again for your time!
0
Martin
Top achievements
Rank 1
answered on 12 Nov 2013, 02:08 AM
Hi Steve,

I was able to retrieve some Cordova logs with CatLog when running the Icenium Push Notification on my android by calling: pushNotification.register

Permission Denial:
broadcasting Intent { act=com.google.android.gcm.intent.RETRY flg=0x4 (has extras) } from telerik.<My project Number>(pid=-1, uid=xxxx) requires com.android.vending.permission.C2D_MESSAGE due to registered receiver BroadcasterFilter{xxxxx ReceiverList{xxxxxx com.android.vending/10024 remote:xxxx}}

I know I am close but missing a small configuration.  Any ideas what this error is all about?  I created Google API successfully.

Thanks again for your help
0
Martin
Top achievements
Rank 1
answered on 13 Nov 2013, 12:54 AM
Hi Steve,

I was able to register with GSM so all is good now.  Moving to the next step which is the server.  Thanks your help

Martin
0
Steve
Telerik team
answered on 13 Nov 2013, 07:55 AM
Hello Martin,

I'm glad you were able to get GCM service working. If there is a missing step or something not obvious with that part, please share what was missing on your end, so other users can benefit from your experience.

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
General Discussion
Asked by
Martin
Top achievements
Rank 1
Answers by
Nikola
Telerik team
Martin
Top achievements
Rank 1
Steve
Telerik team
Share this question
or