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

Issue with Push Notifications in Delphi XE12.1: Token Changes and Notifications Not Displaying #270

Open
elcharlie opened this issue Nov 27, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@elcharlie
Copy link

Hello, I have a problem that I don't know how to solve. In an app developed for iOS a while ago, I use Push Notifications in the "old-fashioned way," similar to the EMBTFCM demo, with DW.PushNotification and Firebase 8.7. It has always worked well, and I would really prefer not to update it to the new Firebase version.

The issue is that after updating the app from Delphi XE12 to Delphi XE12.1, it doesn't work properly anymore.

Let me explain the problem: In the OnTokenReceived process, I have set it up to log the returned device token, and I see that when it runs for the first time, it returns a device token, instantly changes to another one, and later, when I close and reopen the app, it changes the token again.

The problem is that if I send a push notification immediately after installing to the last returned token, the app receives it without issues. However, if I close and reopen the app, and send the push to the newly generated token, Firebase reports that the push has been sent successfully, but no notification is displayed on the device.

Does anyone know what could be causing this?

I hope I explained myself well.
Thank you.

@DelphiWorlds DelphiWorlds self-assigned this Nov 27, 2024
@DelphiWorlds DelphiWorlds added the question Further information is requested label Nov 27, 2024
@DelphiWorlds
Copy link
Owner

Can you provide a reproducible example? It's otherwise very difficult to know what the problem is

@elcharlie
Copy link
Author

I’m going to try creating a basic example to see if I can reproduce the issue there.
Thank you.

@elcharlie
Copy link
Author

Sorry, but it will take me a few days to send the example. Please don’t close the thread; something unexpected came up, and it will take me a bit longer.

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

No branches or pull requests

2 participants