1. Download our Official Android App: Forums for Android!

Apps Android Push Notification via GCM

Discussion in 'Android Development' started by rony2006, Apr 3, 2016.

  1. rony2006

    rony2006 Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Apr 3, 2016

    Apr 3, 2016
    2
    0
    15
    Male
    Hello,
    Can anybody show me an example of how I can do a Push Notification app?
    I only want to send some simple text from a web page, and received it as a push notification on my android phone.

    I saw that this can be done through GCM and I tried some tutorials from internet but they are outdated and not working.

    Thank you!
     

    Advertisement

  2. Unforgiven

    Unforgiven OK Google
    Moderator
    Rank:
     #1
    Points:
    4,238
    Posts:
    35,926
    Joined:
    Jun 23, 2010

    Jun 23, 2010
    35,926
    41,308
    4,238
    Male
    Douglas, MA
    Application Development thread moved to the Development forum for better exposure.:)
     
  3. rony2006

    rony2006 Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Apr 3, 2016

    Apr 3, 2016
    2
    0
    15
    Male
    I am new to android an I need an aplication that send a text from web server and receive it like a push notification on an android phone.

    I found a code at Learn Sauce about GCM implementation, and the problem is that when I send a text from my server, I receive a notification on the mobile phone but instead of my text, I receving "null".

    If I send a text from my application to my username, I receive the text that I sent as a notification.

    Can you help me please to solve the problem?

    The source code and instructions that I followed can be found here: https://drive.google.com/open?id=0B6YK9uX7nLG8M2VMOWc1cktNNkE

    Thank you!

    [​IMG]google-cloud
     

Share This Page

Loading...