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

12 posts, 0 answers
  1. Martin
    Martin avatar
    10 posts
    Member since:
    Oct 2013

    Posted 31 Oct 2013 Link to this post

    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
  2. Nikola
    Admin
    Nikola avatar
    22 posts

    Posted 01 Nov 2013 Link to this post

    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.
  3. Martin
    Martin avatar
    10 posts
    Member since:
    Oct 2013

    Posted 01 Nov 2013 Link to this post

    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,
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 04 Nov 2013 Link to this post

    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.
  5. Martin
    Martin avatar
    10 posts
    Member since:
    Oct 2013

    Posted 05 Nov 2013 Link to this post

    Hi Steve,

    Thanks for your feedback.  I will check this out,
  6. Martin
    Martin avatar
    10 posts
    Member since:
    Oct 2013

    Posted 09 Nov 2013 Link to this post

    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!
  7. Martin
    Martin avatar
    10 posts
    Member since:
    Oct 2013

    Posted 09 Nov 2013 Link to this post

    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?
  8. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 11 Nov 2013 Link to this post

    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.
  9. Martin
    Martin avatar
    10 posts
    Member since:
    Oct 2013

    Posted 11 Nov 2013 Link to this post

    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!
  10. Martin
    Martin avatar
    10 posts
    Member since:
    Oct 2013

    Posted 11 Nov 2013 Link to this post

    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
  11. Martin
    Martin avatar
    10 posts
    Member since:
    Oct 2013

    Posted 12 Nov 2013 Link to this post

    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
  12. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 13 Nov 2013 Link to this post

    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.
Back to Top