Forums
Home / Plugin: FCM Push Notification from WP / URL is Empty
(@alchmi)
3 years, 10 months ago
Hi, i have a weird behavior when I’m updating a post with a push notification.
The data element from the remote message is completely filled except URL, which is needed for my app.
Can I provide any additional data?
WordPress 5.5.1
Screensnippet from debugging: https://imgur.com/YVeX5Z2
Fixed the issue by using the API for post url rather than the post entity itself.
Line 304 was changed: $post_url = esc_url(get_the_permalink($post->ID));
(@dprogrammer)
HI,
Thank you for submitting the correction. I already updated the plugin.