Paulo Miranda
Forum Replies Created
-
HI,
I just ran a test with WordPress 5.8 and it’s working.
I performed a test with a new post and when editing an existing one. In both cases the image was sent.
New post
https://ibb.co/9NH60BjEdit post
https://ibb.co/bPYQGH3Teste notification
https://ibb.co/3kZzv48Activate debug and check if you have any error messages
put these two commands on line 332
$this->write_log(‘post Id: ‘ . $post_id);
$this->write_log(‘imagem: ‘ . $image);the file is created in the wp-content folder
Forum: Reviews
In reply to: [FCM Push Notification from WP] Easy workThanks. I am checking how I do to approve the translations.
Forum: Plugins
In reply to: [FCM Push Notification from WP] Change Notification SoundHI,
thanks for using the plugin.
I created a new field in the configuration to be informed the name of the field.
there is the sound field in the notification part
to and data.Check the name of the fields in the file fcm-dp-push-notification.php
Forum: Plugins
In reply to: [FCM Push Notification from WP] Change plugin to push different informationHI,
Included routine to remove visual composer tags from page and post text
Version 1.6.0
If you find any errors in removing the tags, please let me know
Hi,
thanks for using the plugin.
I will review the instructions and include the part of configuring the app.
Thanks.
Forum: Plugins
In reply to: [FCM Push Notification from WP] Where to find application channel id ??HI,
plugin config
https://ps.w.org/fcm-push-notification-from-wp/assets/screenshot-1.png?rev=2236785Android app channel config, AndroidManifest. You define a name
<meta-data android:name=”com.google.firebase.messaging.default_notification_channel_id” android:value=”app_channel”/>Forum: Plugins
In reply to: [FCM Push Notification from WP] Change plugin to push different informationHI,
In this image, the except field is the first. It would be the news summary
https://i1.wp.com/ww.wp.xz.cn/support/files/2018/10/add-new-post-options-1024×750.png?ssl=1As for the PHP file, I will look for a solution to this problem of getting the shortcode of the post
It was just to show that if you inform the mentioned field, it doesn’t take the body text
Forum: Plugins
In reply to: [FCM Push Notification from WP] Change plugin to push different informationHI,
I tested it, and when a new post shows marked.
Only when going to edit does it show unchecked. It had a user forgetting to deselect when editing, and sends a new notification.
Only displays unchecked when creating new post if you check the disable setting
If you enter the except field, it will display it in the notification. That would be the temporary solution. I will check how to remove the shortcodes
line notification message (file fcm-dp-push-notification.php)
‘message’ => _mb_strlen($resume) == 0 ? _mb_substr(wp_strip_all_tags($content), 0, 55) . ‘…’ : $resume,great that the use of the plugin worked. thanks for using it
Thank you @will_brett
I will improve the documentation.
I’ll see if I create an example in flutter too.
Thanks for the feedback
HI,
I found this, but I didn’t see any comments on Firebase pages
https://stackoverflow.com/questions/42790940/save-notification-in-console-on-use-rest-api
HI,
I used the test option of the plugin and everything is ok
Notification received on smartphone
Test result
API Return
{“headers”:{},”body”:”{\”message_id\”:4446721866611171484}”,”response”:{“code”:200,”message”:”OK”},”cookies”:[],”filename”:null,”http_response”:{“data”:null,”headers”:null,”status”:null}}I think that the notifications sent are not recorded in the console.
HI,
plugin config
https://ps.w.org/fcm-push-notification-from-wp/assets/screenshot-1.png?rev=2236785Android app channel config, AndroidManifest. You define a name
<meta-data android:name=”com.google.firebase.messaging.default_notification_channel_id” android:value=”app_channel”/>to subscribe app in a topic. You can subscribe the app to more than one topic. There is a limit
_fbMessaging.subscribeToTopic(‘test’);More
https://www.filledstacks.com/post/push-notifications-in-flutter-using-firebase/
https://firebase.google.com/docs/cloud-messaging/android/client?hl=pt
https://rechor.medium.com/creating-notification-channels-in-flutter-android-e81e26b33bec
https://firebase.google.com/docs/cloud-messaging/android/topic-messagingForum: Plugins
In reply to: [FCM Push Notification from WP] URL is EmptyHI,
Thank you for submitting the correction. I already updated the plugin.
Forum: Plugins
In reply to: [FCM Push Notification from WP] Getting the notifications twiceHi,
I set to change the value of the false field when sending the first time. The save_post event is executed twice because of the field that is edited after the post is saved.
I sent a new version.
thanks for your contribution
Forum: Plugins
In reply to: [FCM Push Notification from WP] Notification on scheduleHI,
the save_post event was called on a scheduled post, but the routine that checked if it was marked to send did not work. When testing whether the option on the screen was checked, the field value was changed to no. And the routine did not send, the field value was false.
It includes a new action (add_action(‘future_to_publish’, array($this, ‘fcmdpplgpn_future_to_publish’), 10, 1); ) for scheduled posts and the routine started to work, since the field was with true value.
I sent a new version.
thanks for your contribution