rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
179 stars 161 forks source link

Receiving duplicate messages #46

Closed kentcb closed 8 years ago

kentcb commented 8 years ago

I haven't figured out why yet, but every message I send is received twice by PushNotificationGcmListener.

kentcb commented 8 years ago

The messages are delivered simultaneously on separate threads.

kentcb commented 8 years ago

What was happening was that without my own receiver and intent-filter in my manifest, I was not receiving any notifications. But if I added one, it would also pick up the one defined by this library. Hence, I would get two notifications.

To fix this, I had to modify the registration attributes, which I am about to PR.

rdelrosario commented 8 years ago

You didn't need to set this on the manifest it worked without a receiver on the manifest.