android - In parse, pushes sent is always 0 -


for push notifications i've tried sending, status "succeeded" none have arrived on device.

in parse dashboard, installations not empty (there 5).

"client push enabled" set "yes" (tried sending both yes , no).

i have tried sending through parse dashboard , through django. have tried targeting "everyone" , "channels". in cases status green "pushes sent" 0.

this question has been asked couple of times none of answers working me.

here question closest situation mine: parse pushes not being sent question however, not answered.

i have face issue. reason of 0 recipients push sent because in present case push never sent of recipient although seeing entries in installation table.

reason: devicetoken field must missing in case.

if there installation entries in table these entries missing devicetoken parse not send push notification because devicetoken mandatory.

you have add following permissions in manifest file.

<uses-permission android:name="android.permission.get_accounts" /> <uses-permission android:name="android.permission.read_phone_state" /> <uses-permission android:name="android.permission.receive_boot_completed" /> 

along parse related code have add following code gcm parse can devicetoken:

<permission     android:name="your.package.name.permission.c2d_message"     android:protectionlevel="signature" />  <uses-permission android:name="your.package.name.permission.c2d_message" /> <uses-permission android:name="com.google.android.c2dm.permission.receive" />      <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" />              <category android:name="your.package.name" />         </intent-filter>     </receiver> 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -