Tuesday, January 24, 2012

Push Notification now available in Android Smart Device Generator.

In the GeneXus Smart Devices Generator, Push Notifications have been available for a while for iOS, and are now also available in Android.

Please check this article for an introduction to push notifications in GeneXus Smart Devices.

Android Push Notifications are based on the Android Cloud to Device Messaging (C2DM) technology and are available for all devices running Android 2.2 or higher that also have the Market application installed.

Using them from GeneXus is really simple, and is done by setting to True the “Enable Notifications” property in the Main object properties group. When doing this, a new set of properties is available (under the header “Notifications”):

You need to set the credentials for a GMail user that has been previously registered to use C2DM (see http://code.google.com/android/c2dm/signup.html). A typical user would be yourapp@gmail.com.

From now on, if you execute your GeneXus application in a Smart Device, a service called NotificationRegistrationHandler is executed in order to register the device information needed to send messages (AKA push notifications) to the device in the future. This information must be stored in your application’s database, and an example of a registration procedure is already included in your Knowledge Base. Every new device that uses your application will call this procedure with its own data.

With this information, you can start sending messages to registered devices (those that use your application) using the Call method in the Notification external object:

And that’s it. The messages sent will be shown as notifications in the Android device:



Now you are ready to use Push Notifications with Android. Enjoy!

Note: this feature is available in Android starting in build 52654 with C# and Java in the server side (see the night builds log). We will add Ruby option soon.

15 comments:

  1. Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.Android Training in velachery | Android Training in chennai

    ReplyDelete
  2. Such a fabulous articles in my job, It's enjoyable posts like easiest understands words of experience in information.
    Hadoop Training in Chennai | Best Hadoop Training in Chennai | Selenium Training Institute in Chennai | Android Training in Chennai with Placement

    ReplyDelete
  3. Hi, thanks for sharing such an informative blog. I have read your blog and I gathered some needful information from your blog. Keep update your blog. Awaiting for your next update.mulesoft training bangalore

    ReplyDelete

  4. Thanks for sharing the knowledgeable stuff to enlighten us no words for this amazing blog.. learnt so many things I recommend everyone to learn something from this blogger and blog.. I am sharing it with others also
    IT Software Training in Chennai | Python Training in Chennai | Dot Net Training in Chennai |Android Training in Chennai | J2ee Training in Chennai

    ReplyDelete
  5. I have to voice my passion for your kindness giving support to those people that should have guidance on this important matter.
    AI training chennai | AI training class chennai
    Cloud computing training | cloud computing class chennai



    ReplyDelete
  6. The businesses work with app developers hungry for some way to generate money from their smartphone program. You are curious to know more about active push ads, visit here.

    ReplyDelete
  7. If you don't have this, then you will find that a large amount of your visitors will be diverted to sites that don't provide a strong mobile experience. Get detailed info about legal ppc on this site.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. Are you Looking for Smart Device Development? QuantaEd Solutions is the Best Smart Device Development Company, We design and develop smart devices that suit the healthcare requirements. For any inquiry call us we will provide all kind of assistance. For more details visit- https://quantaedsolutions.com

    ReplyDelete
  11. It's a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way.Thank you so much.

    python Training in chennai

    python Course in chennai


    ReplyDelete
  12. Larger businesses can manage and host internal events like all-hands and sales summits or external events like user conferences and consumer events and Zoom's biggest focus has always been large enterprises. event marketing statistics and thank you for your volunteer service letter

    ReplyDelete