Hi,
I just tried to develop a quick simple app to get notifications from Kinvey and everything works fine on iOS (iPad and iPhone), when I send a string, it's propagated to iOS and I add it to a Memo field for each notification string.
On Android though, I get each notification 8 times...
Any idea why?
I don't have any loop, so I just don't get it why I get 1 notification on iOS and why I go 8 times into the PushReceived event when on Android.
My Code for PushReceived is as follows:
procedure TForm1.PushEventsPushReceived(Sender: TObject; const AData: TPushData); begin Memo.Lines.Add('-- '+formatDateTime('dd-mm-yyyy hh:nn:ss', Now )+' --' ) ; {$IF DEFINED(iOS)} Memo.Lines.Add(AData.APS.Alert) ; Memo.Lines.Add(AData.APS.Badge) ; {$ENDIF} {$IF DEFINED (ANDROID)} If( AData.GCM.Title <> '') Then Memo.Lines.Add('- '+AData.GCM.Title+' -') ; Memo.Lines.Add(AData.GCM.Msg) ; {$ENDIF} Memo.Lines.Add('') ; end;
Thanks for any clue.
Steve J