Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why on Xamarin Forms push notifications come twice only for Android? #86

Open
influs opened this issue Sep 7, 2016 · 5 comments
Open

Comments

@influs
Copy link

influs commented Sep 7, 2016

I'm using PushSharp through WCF Service on the server and plugin from this repository on the client(phone). From the server i send only one notifications(add logging and ascertained). But on the client only for Android in method void IPushNotificationListener.OnMessage(JObject arameters, DeviceType deviceType) message appears twice in fact the same time. How to fix this bug?

@rdelrosario
Copy link
Owner

Hi

On iOS you are getting just one notification and on Amdroid two?

Is it displaying two local notifications?

Sent from my iPhone

On 7 sept 2016, at 1:48 a.m., influs notifications@github.com wrote:

I'm using PushSharp through WCF Service on the server and plugin from this repository on the client(phone). From the server i send only one notifications(add logging and ascertained). But on the client only for Android in method void IPushNotificationListener.OnMessage(JObject arameters, DeviceType deviceType) message appears twice in fact the same time. How to fix this bug?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@influs
Copy link
Author

influs commented Sep 8, 2016

On iOS -one. On Android two notifications with the same content come parallel in two different threads.

@rdelrosario
Copy link
Owner

I'm not sure why this is happening since the OnMessage call is just done
once. I will do a sample to try it out but in the latest tests just had one
time OnMessage called. Currently using this version on one app an just get
one notification on Android.

On Wednesday, 7 September 2016, influs notifications@github.com wrote:

I'm using PushSharp https://github.com/Redth/PushSharp through WCF
Service on the server and plugin from this repository on the client(phone).
From the server i send only one notifications(add logging and ascertained).
But on the client only for Android in method void
IPushNotificationListener.OnMessage(JObject arameters, DeviceType
deviceType) message appears twice in fact the same time. How to fix this
bug?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#86, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ACbgJ5yD3orhsCUNltWXJ-RI6LsVmWNwks5qnlAegaJpZM4J2jpJ
.

@influs
Copy link
Author

influs commented Sep 8, 2016

do screens of this case for Android in Debug mode version 1.2.4
http://tinypic.com/view.php?pic=no5yio&s=9#.V9FTGph96Uk
http://tinypic.com/view.php?pic=2ly1xdh&s=9#.V9FTT5h96Uk

@TimofeyBurak
Copy link

Check that there are no additional receivers in your AndroidManifest.xml. We had the same problem because push notification were handled both by Xamarin.PushNotification plugin and by com.google.android.gms.gcm.GcmReceiver receiver defined in AndroidManifest. Removing excess receiver fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants