Push received several times

22 views
Skip to first unread message

Alexandre LocowL

unread,
Nov 12, 2015, 5:24:37 AM11/12/15
to plot-users

Hi,


It appears we receive several times the same campaign notification.


I set « users should receive notifications » to « Once ». 


Should I call a special PlotProjects function in my iOS source code in order to say to your system that the user has correctly received the notification and he must not receive another one ?



Regards,


Alexandre

Mark van der Tol

unread,
Nov 12, 2015, 5:48:13 AM11/12/15
to plot-users
Hi Alexandre,

When a notification is received you indeed must call [Plot handleNotification:notification]; as explained in the integration guide. That is all that is required.

Did you remove and reinstall the app in between? Then all notifications are sent again.

Was it the notification for the same geofence or was it a different geofence?

You could look at the debug logging feature the Plot plugin provides, so you can look back in hindsight what happened. With the mailDebugLog method you could send to log to yourself so you can see what happened.

Kind regards,
Mark van der Tol
Plot Projects

Alexandre LocowL

unread,
Nov 12, 2015, 10:06:36 AM11/12/15
to plot-users
Thanks for your answer Mark.

Yes, I added : [Plot handleNotification:notif];
in didReceiveLocalNotification

but it's myself who send the local push notification and not plotprojects, what is the field which is used by handleNotification to know which geofence/campaign is ?


Regards,

Mark van der Tol

unread,
Nov 12, 2015, 10:14:33 AM11/12/15
to plot-users
Hi,

Are you using a notification filter? When a notification is filtered out in the notification filter, then the notification could be offered again to the notification filter at a later time. We recommend altering the notification there and letting Plot send the notification instead of sending a notification yourself. You can alter all the properties of the local notification there. Is there a reason why that wouldn't work in your case?

If you really don't want to alter the notifications, then we recommend using geotriggers. A disadvantage would be that we then won't be able to provide notification statistics.

We don't support handleNotification: for notifications other than notifications generated by Plot.

Please let me know if something is still unclear or if you have further questions.

Kind regards,
Mark van der Tol 
Plot Projects

Alexandre LocowL

unread,
Nov 13, 2015, 11:03:45 AM11/13/15
to plot-users
Hi Mark,
Yes it works better by using the Plot Projects notification.


Thank you very much,

Alexandre
Reply all
Reply to author
Forward
0 new messages