Anto90 0 Posted December 28, 2024 Good morning, i now switch to send push notifications with firebase using the new method legacy with token with the example in kastri. I port the example in a thread and then implment the method. Can i use the example in a multi thread enviroment or some operation must be execute in main thread? I reported a small implementation of thread but sometime i get showmessage "Nothing to do ". Can someone help me? I attached an small example of my thread. Thank you Andrea Esempio.pas Share this post Link to post
Dave Nottage 568 Posted December 28, 2024 48 minutes ago, Anto90 said: I attached an small example of my thread You have not included the Execute method implementation in the example. Also, you do not show how SendPushNotificationNewVersion is being called. Share this post Link to post
Anto90 0 Posted December 28, 2024 this is an example. i Call directly method on execute for testing... FFCMSender is object in thread... Thank you Andrea procedure TTimerThreadSpedisciMailingList.Execute(); begin SendPushNotificationNewVersion(FFCMSender,'testtoken','test','test'); end; Share this post Link to post
Dave Nottage 568 Posted December 28, 2024 2 hours ago, Anto90 said: i get showmessage "Nothing to do " Sounds like there may be something wrong with the payload you are sending. You need to debug the SendPushNotificationNewVersion method to see what the value of LJSON is. Share this post Link to post