Jump to content
Anto90

KastriFree FCMRebooted push notication firebase

Recommended Posts

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
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

 

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×