Title: Plugin is not working as expected
Last modified: January 10, 2022

---

# Plugin is not working as expected

 *  Resolved [11MeG](https://wordpress.org/support/users/11meg/)
 * (@11meg)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/)
 * Hello i have a similar problem as Lamine555 with my webview app.
    What can i 
   do to help solve this?
 * I have 2 topics “new record” en “update” they work via the firebase site. but
   not with the plugin. If i send a test notification i do not recieve any thing
   but get the code: {“headers”:{},”body”:”\n\n
 * I have a .apk file if you want but i don’t have the code on a Github page.
 * Hope you can help me and i can help you figure this out.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-does-not-work-for-me-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [4 years, 5 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
 *  Thread Starter [11MeG](https://wordpress.org/support/users/11meg/)
 * (@11meg)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/#post-15255359)
 * Hello,
    tank you for your response. I have looked into the code and found the
   code to send the message but i still don’t get anything in the app. I was wondering
   what the setting “Application Channel” means?
 * i have a topic update so there is no spaces in there.
 * hope you can help.
 *  Thread Starter [11MeG](https://wordpress.org/support/users/11meg/)
 * (@11meg)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/#post-15255385)
 * And i use the browser API key from firebase is that the correct one?
 *  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”/>
 *  Thread Starter [11MeG](https://wordpress.org/support/users/11meg/)
 * (@11meg)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/#post-15255469)
 * A yes thank you i will look in to the info you send me. I was using the wrong
   API i think.
 * Tank you again for your help.
 *  Thread Starter [11MeG](https://wordpress.org/support/users/11meg/)
 * (@11meg)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/#post-15255639)
 * i have got the source code from the developer but i don’t see a thing about
 * <meta-data android:name=”com.google.firebase.messaging.default_notification_channel_id”
   android:value=”app_channel”/>
 * in my AndroidManifest.xml like you mention in this post [https://wordpress.org/support/topic/where-to-find-application-channel-id/](https://wordpress.org/support/topic/where-to-find-application-channel-id/)
 * i think the app is made in flutter. is there an other place i should look?
 *  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)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Plugin is not working as expected’ is closed to new replies.

 * ![](https://ps.w.org/fcm-push-notification-from-wp/assets/icon-256x256.png?rev
   =2236794)
 * [FCM Push Notification from WP](https://wordpress.org/plugins/fcm-push-notification-from-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fcm-push-notification-from-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fcm-push-notification-from-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/fcm-push-notification-from-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fcm-push-notification-from-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fcm-push-notification-from-wp/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-work-for-me-7/#post-15255711)
 * Status: resolved