Title: Paulo Miranda's Replies | WordPress.org

---

# Paulo Miranda

  [  ](https://wordpress.org/support/users/dprogrammer/)

 *   [Profile](https://wordpress.org/support/users/dprogrammer/)
 *   [Topics Started](https://wordpress.org/support/users/dprogrammer/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dprogrammer/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dprogrammer/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dprogrammer/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dprogrammer/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dprogrammer/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 41 total)

1 [2](https://wordpress.org/support/users/dprogrammer/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dprogrammer/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/dprogrammer/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Plugin is not working as expected](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/#post-15255711)
 * HI,
 * You need to include this setting
    <meta-data android:name=”com.google.firebase.
   messaging.default_notification_channel_id” android:value=”app_channel”/>
 * After the application tag
 * [https://ibb.co/6NG57ty](https://ibb.co/6NG57ty)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Plugin is not working as expected](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/#post-15255445)
 * HI,
 * these are the settings i use
 * The key I get in the firebase configuration
 * [https://ibb.co/RzPwgFy](https://ibb.co/RzPwgFy)
    [https://ibb.co/1X5X3rB](https://ibb.co/1X5X3rB)
 * Channel Configuration
    [https://developer.android.com/training/notify-user/channels](https://developer.android.com/training/notify-user/channels)
   [https://firebase.google.com/docs/cloud-messaging/android/client?hl=pt-Br](https://firebase.google.com/docs/cloud-messaging/android/client?hl=pt-Br)
 * My configuration in AndroidManifest.xml (I use flutter)
 * <meta-data android:name=”com.google.firebase.messaging.default_notification_channel_id”
   android:value=”baruksoft_channel”/>
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] the plugin is not working for me](https://wordpress.org/support/topic/the-plugin-is-not-working-for-me-5/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/the-plugin-is-not-working-for-me-5/#post-15246999)
 * HI [@11meg](https://wordpress.org/support/users/11meg/),
 * I replied in the thread you created
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Plugin is not working as expected](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/#post-15246997)
 * HI,
 * the plugin needs to return in this format on the test page:
 * {“headers”:{},”body”:”{\”message_id\”:3863910649008513237}”,”response”:{“code”:
   200,”message”:”OK”},”cookies”:[],”filename”:null,”http_response”:{“data”:null,”
   headers”:null,”status”:null}}
 * This is the code that sends the notification, it just needs the key and topic
 * $args = array(
    ‘timeout’ => 45, ‘redirection’ => 5, ‘httpversion’ => ‘1.1’, ‘
   method’ => ‘POST’, ‘body’ => $payload, ‘sslverify’ => false, ‘headers’ => array(‘
   Content-Type’ => ‘application/json’, ‘Authorization’ => ‘key=’ . $apiKey, ), ‘
   cookies’ => array() );
 *  $response = wp_remote_post($url, $args);
 *  return json_encode($response);
 * The topic is in payload
 * $post = array(
    ‘to’ => ‘/topics/’ . $topic, ‘collapse_key’ => ‘type_a’, ‘notification’
   => $notification, ‘priority’ => ‘high’, ‘data’ => $notification_data, ‘timeToLive’
   => 10, );
 * $payload = json_encode($post);
 * Review the plugin configuration, it can be the topic name with space. Search 
   uses a topic name in this pattern: topicname
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] the plugin is not working for me](https://wordpress.org/support/topic/the-plugin-is-not-working-for-me-5/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/the-plugin-is-not-working-for-me-5/#post-15209445)
 * HI,
 * Do you have an example application on github that I can test?
 * How was this configuration done?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Ascii / Encoding problem | Notification received twice](https://wordpress.org/support/topic/ascii-encoding-problem-notification-received-twice/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/ascii-encoding-problem-notification-received-twice/#post-15209440)
 * HI,
 * The fix is ​​in version 1.9.0, about the character encoding issue
 * I did some testing and didn’t send a second notification after editing a post
   that had been scheduled and sent
 * Thanks for using the plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Receive the content with the square brackets [] in Divi theme](https://wordpress.org/support/topic/receive-the-content-with-the-square-brackets-in-divi-theme/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/receive-the-content-with-the-square-brackets-in-divi-theme/#post-15209426)
 * HI,
 * Your code was included in version 1.9.0
 * Thanks for using the plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Return Custom Fields in body](https://wordpress.org/support/topic/return-custom-fields-in-body/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/return-custom-fields-in-body/#post-15209417)
 * HI,
 * Thanks for the sugestion. The feature was added in version 1.9.0
 * Thanks for using the plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Plugin not working anymore](https://wordpress.org/support/topic/plugin-not-working-anymore-52/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-working-anymore-52/#post-14925860)
 * HI,
 * I tested it on my website, WP 5.8.1
 * Activate the logs in the plugin (fcm-dp-push-notification.php file) and see if
   there are any errors in your installation.
 * The log file (debug.log) is generated in the wp-content folder
 * To write to the log: $this->write_log(‘your text here’);
 * `API Return
 * {“headers”:{},”body”:”{\”message_id\”:7592770531357352034}”,”response”:{“code”:
   200,”message”:”OK”},”cookies”:[],”filename”:null,”http_response”:{“data”:null,”
   headers”:null,”status”:null}}
 * Send again
 * FCM Options
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Open post in App](https://wordpress.org/support/topic/open-post-in-app/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/open-post-in-app/#post-14792125)
 * HI,
 * Thanks for the feedback.
 * My code was very out of date. So I upgraded to Flutter 2 and redid the push notification
   routine.
 * I used this article.
 * [https://blog.logrocket.com/flutter-push-notifications-with-firebase-cloud-messaging/](https://blog.logrocket.com/flutter-push-notifications-with-firebase-cloud-messaging/)
 * Explains how to work with notification when the app is closed. When the application
   is in memory or when it has already been terminated.
 * See section “Handling background notifications”
 * The plugin sends the data part of the notification: article title and a part 
   of the text
 * line: 358
    file: fcm-dp-push-notification.php
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Limitations](https://wordpress.org/support/topic/limitations-9/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/limitations-9/#post-14763039)
 * HI,
 * The plugin sends the notification to the topic.
 * The limitation is not the number of devices, but the number of messages sent 
   to each device, as I understand
 * [https://firebase.google.com/docs/cloud-messaging/concept-options](https://firebase.google.com/docs/cloud-messaging/concept-options)
 * Maximum message rate to a single device
    You can send up to 240 messages/minute
   and 5,000 messages/hour to a single device. This high threshold is meant to allow
   for short term bursts of traffic, such as when users are interacting rapidly 
   over chat. This limit prevents errors in sending logic from inadvertently draining
   the battery on a device.
 * Upstream message limit
    We limit upstream messages at 1,500,000/minute per project
   to avoid overloading upstream destination servers.
 * We limit upstream messages per device at 1,000/minute to protect against battery
   drain from bad app behavior.
 * Topic message limit
    The topic subscription add/remove rate is limited to 3,000
   QPS per project.
 * For message sending rates, see Fanout Throttling.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] [WordPress 5.8] Featured image not sent in the notification](https://wordpress.org/support/topic/wordpress-5-8-featured-image-not-sent-in-the-notification/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wordpress-5-8-featured-image-not-sent-in-the-notification/#post-14725326)
 * HI,
 * Blz, thanks for using the plugin and for your feedback.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Send Notification to more than one topic](https://wordpress.org/support/topic/send-notification-to-more-than-one-topic/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/send-notification-to-more-than-one-topic/#post-14717597)
 * HI,
 * The alternative would be to submit to the category, but I don’t have a plan to
   implement this feature
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Api returns reponse with 200](https://wordpress.org/support/topic/api-returns-reponse-with-200/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/api-returns-reponse-with-200/#post-14717590)
 * HI,
 * is correct
 * messages sent via api are not saved in firebase
 * and the plugin does not record any logs
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FCM Push Notification from WP] Error Plugin](https://wordpress.org/support/topic/error-plugin-16/)
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/error-plugin-16/#post-14717586)
 * HI,
 * the return is correct
 * and
 * “code”:200,”message”:”OK”
 * and returned the id of the notification that was created
 * message_id\”:4296789318352858002
 * my test
    [https://ibb.co/3kZzv48](https://ibb.co/3kZzv48)

Viewing 15 replies - 1 through 15 (of 41 total)

1 [2](https://wordpress.org/support/users/dprogrammer/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dprogrammer/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/dprogrammer/replies/page/2/?output_format=md)