0

On my Android device,

I am

  1. Installing my application (Old install) and sending push from the server. I can receive push on my device.
  2. Remove the old install and Installing my application again (new install) on the same device, and send push from the server. I can receive the push message.
  3. In the backend server, I am replacing registration id of old install with new install's registration id.
  4. Now when I try to send push message to old install,

I am expecting the new install to receive the push message. Instead, I get the following warning message in logcat and my push notification is suppressed.

W/GCM-DMM(1641): broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com.pushping.xxx (has extras) }

Why is the broadcast canceled in this situation? I believe, with the right registration id I should be able to send the push message to the corresponding install.

Pang
  • 9,564
  • 146
  • 81
  • 122
Anurag
  • 11
  • 2
  • What do u mean by old install and new install? – Ranjan Feb 16 '17 at 03:37
  • Check this [SO question](http://stackoverflow.com/questions/39480931/error-broadcast-intent-callback-result-cancelled-forintent-act-com-google-and) if it can help you. – KENdi Feb 16 '17 at 13:01
  • @RanjanK.M. I am calling Install created using step 1 as the old install. and Install created using step 2 as new install – Anurag Mar 04 '17 at 23:10
  • @KENdi. Nopes thats not the issue. Thanks anyways – Anurag Mar 04 '17 at 23:12
  • @Anurag fcm sends notification only to those id which are currently registered with devices. But when you install again, new id is registered with the device so the old id is of no use. – Ranjan Mar 05 '17 at 03:23
  • @RanjanK.M. When you say "fcm sends notification only to those id which are currently registered with devices", is firebase tracking uninstalls? I guess not as i am getting that logcat on the device which means device can receive push message and gcm client is suppressing it . I will put my question in other words, Assuming I have registration id and project number and server key of the new install, is it possible for me to send a push message to that device from another push service (not firebase). If not that whats blocking it? – Anurag Mar 07 '17 at 06:40

0 Answers0