Not receiving push notification on android with parse.com

user2709885

I am very new to android app development. I am using parse.com for my backend, and I have followed the tutorial https://www.parse.com/tutorials/android-push-notifications to set up push notifications. However, whenever I send a notification using parse notification console (on the website) or from an android device, I do not receive any notification. Secondly, on the parse notification console, each notification shows 0 as pushes sent. And when I checked the registration ID in the deviceToken field of the app's current ParseInstallation, it is empty. Even GCMSenderID is empty. So I am suspecting that my app is not getting registered properly, but installationID field is not empty. I have added all permissions and credentials in the manifest file.

Please help me. It will be a big help. Thank you :)

Here's my Manifest file:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

<!--
  IMPORTANT: If you change the package name of this sample app, change
  "com.parse.tutorials.pushnotifications.permission.C2D_MESSAGE" in the
  lines below to match the new package name.
-->
<permission
    android:name="com.parse.swipeit.permission.C2D_MESSAGE"
    android:protectionLevel="signature" />

<uses-permission android:name="com.parse.swipeit.permission.C2D_MESSAGE" />

<application
    android:name="com.parse.swipeit.Application"
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.parse.swipeit.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <service android:name="com.parse.PushService" />

    <receiver android:name="com.parse.ParseBroadcastReceiver" >
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
            <action android:name="android.intent.action.USER_PRESENT" />
        </intent-filter>
    </receiver>

    <receiver
        android:name="com.parse.GcmBroadcastReceiver"
        android:permission="com.google.android.c2dm.permission.SEND" >
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <action android:name="com.google.android.c2dm.intent.REGISTRATION" />

            <!--
              IMPORTANT: If you change the package name of this sample app,
              change "com.parse.tutorials.pushnotifications" in the lines
              below to match the new package name.
            -->
            <category android:name="com.parse.swipeit" />
        </intent-filter>
    </receiver>
</application>
Stephan Branczyk

This part is important.

<!-- IMPORTANT: Change "com.parse.starter" to match your app's package
 name. -->

You need to use the Google developer console to enable the Google Cloud Messaging api for you. For that, you'll need to use your own unique valid package name (that only belongs to you and no one else).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Parse.com for sending push notification from .NET framework and receiving on iOS, Android and web page

From Dev

Push notification not receiving android

From Dev

Push notification not receiving android

From Dev

Windows Phone app not receiving push notification from Parse.com

From Dev

Error ~ parse.com push notification android?

From Dev

Not receiving Parse Push Notifications In Android

From Dev

apache cordova app crashes after receiving parse.com push notification

From Dev

Custom Push Notification coming twice using Parse.com and Android

From Dev

Android, Push notification using parse.com, launches the app automatically

From Dev

RuntimeException on android app with parse.com push notification

From Dev

Custom Push Notification coming twice using Parse.com and Android

From Dev

Parse.com disable push notification notification

From Dev

Android client for GCM not receiving echoing push notification

From Dev

Push notification with relational query with Parse.com

From Dev

Parse.com Push Notification To Friends

From Dev

Parse Open push notification in different Activity Android

From Dev

How to change Parse push notification icon in android?

From Dev

Parse Push notification not sending from Android to Channel

From Dev

Parse Open push notification in different Activity Android

From Dev

android push notification with parse doesen't work

From Dev

Android Parse Push Notification not working - "Outdated device"

From Dev

Android CGM start Activity after receiving Push Notification

From Dev

android Implement chatting through push notification using parse.com api

From Dev

error setting up push notification using parse.com and android studio

From Dev

I want to send push notification from one android device to another using my application by Parse.com.

From Dev

Android Parse Notification cannot receive notification if push form our server

From Dev

Not receiving worklight push notification in ios

From Dev

Not receiving Push Notification in Sleep Mode

From Dev

Not receiving push notification using GCM

Related Related

  1. 1

    Parse.com for sending push notification from .NET framework and receiving on iOS, Android and web page

  2. 2

    Push notification not receiving android

  3. 3

    Push notification not receiving android

  4. 4

    Windows Phone app not receiving push notification from Parse.com

  5. 5

    Error ~ parse.com push notification android?

  6. 6

    Not receiving Parse Push Notifications In Android

  7. 7

    apache cordova app crashes after receiving parse.com push notification

  8. 8

    Custom Push Notification coming twice using Parse.com and Android

  9. 9

    Android, Push notification using parse.com, launches the app automatically

  10. 10

    RuntimeException on android app with parse.com push notification

  11. 11

    Custom Push Notification coming twice using Parse.com and Android

  12. 12

    Parse.com disable push notification notification

  13. 13

    Android client for GCM not receiving echoing push notification

  14. 14

    Push notification with relational query with Parse.com

  15. 15

    Parse.com Push Notification To Friends

  16. 16

    Parse Open push notification in different Activity Android

  17. 17

    How to change Parse push notification icon in android?

  18. 18

    Parse Push notification not sending from Android to Channel

  19. 19

    Parse Open push notification in different Activity Android

  20. 20

    android push notification with parse doesen't work

  21. 21

    Android Parse Push Notification not working - "Outdated device"

  22. 22

    Android CGM start Activity after receiving Push Notification

  23. 23

    android Implement chatting through push notification using parse.com api

  24. 24

    error setting up push notification using parse.com and android studio

  25. 25

    I want to send push notification from one android device to another using my application by Parse.com.

  26. 26

    Android Parse Notification cannot receive notification if push form our server

  27. 27

    Not receiving worklight push notification in ios

  28. 28

    Not receiving Push Notification in Sleep Mode

  29. 29

    Not receiving push notification using GCM

HotTag

Archive