Title: InvalidParameters: Bad topic or filter provided
Last modified: February 2, 2021

---

# InvalidParameters: Bad topic or filter provided

 *  Resolved [will_brett](https://wordpress.org/support/users/will_brett/)
 * (@will_brett)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/invalidparameters-bad-topic-or-filter-provided/)
 * Hi there,
 * I have a flutter application which is using FCM for push notifications.
 * When I sent a push notification from the firebase dash it does display in app.
 * However when I send a test messaging from this plugin I get the following errors:
 * _{“headers”:{},”body”:”{\”error\”:\”InvalidParameters: Bad topic or filter provided\”}”,”
   response”:{“code”:200,”message”:”OK”},”cookies”:[],”filename”:null,”http\_response”:{“
   data”:null,”headers”:null,”status”:null}}_
 * perhaps I am setting the plugin settings up wrong.
 * I have used my firebase project server key for api key. The topic that is configured
   in the app which in my case is: “One Track Mind Magazine”
 * for application channel I added this code to my android manifest:
 * _<meta-data android:name=”com.google.firebase.messaging.default\_notification\
   _channel\_id”
    android:value=”app\_channel”/>
 * and I’m using “app_channel” as channel name.
 * Any ideas what I am doing wrong?

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

 *  Thread Starter [will_brett](https://wordpress.org/support/users/will_brett/)
 * (@will_brett)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/invalidparameters-bad-topic-or-filter-provided/#post-13990995)
 * Quick update:
 * I changed my topic name to “otm_mag” to see if the issue was caused by upper 
   case or spaces and this has made a change. I’m now getting the following response
   from the test push:
 * _{“headers”:{},”body”:”{\”message\_id\”:8281251672685649131}”,”response”:{“code”:
   200,”message”:”OK”},”cookies”:[],”filename”:null,”http\_response”:{“data”:null,”
   headers”:null,”status”:null}}_
 * Still not push notification showing in-app and I can’t see the test message in
   the firebase cloud messaging console.
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/invalidparameters-bad-topic-or-filter-provided/#post-13991923)
 * HI,
 * I used the test option of the plugin and everything is ok
 * Notification received on smartphone
 * > [View post on imgur.com](https://imgur.com/uxogMV3)
 * Test result
 * > [View post on imgur.com](https://imgur.com/XGVgojv)
 * 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.
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/invalidparameters-bad-topic-or-filter-provided/#post-13992202)
 * 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](https://stackoverflow.com/questions/42790940/save-notification-in-console-on-use-rest-api)
 *  Thread Starter [will_brett](https://wordpress.org/support/users/will_brett/)
 * (@will_brett)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/invalidparameters-bad-topic-or-filter-provided/#post-13992265)
 * Still not getting any notifications appearing in the app when I send the test
   though.
 * Not sure if I’ve missed a step somewhere. Can’t work out how to debug either 
   as there seems to be no errors but nothing coming through to the app.
 *  Thread Starter [will_brett](https://wordpress.org/support/users/will_brett/)
 * (@will_brett)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/invalidparameters-bad-topic-or-filter-provided/#post-13992358)
 * Quick update.
 * I’ve tested this on a live device rather than a simulator and it is infact working.
   Not sure why it’s not working on simulator but hey ho.
 * Great plugin. Could possibly do with a little more documentation though.
 *  Plugin Author [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * (@dprogrammer)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/invalidparameters-bad-topic-or-filter-provided/#post-13994542)
 * Thank you [@will_brett](https://wordpress.org/support/users/will_brett/)
 * I will improve the documentation.
 * I’ll see if I create an example in flutter too.
 * Thanks for the feedback

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

The topic ‘InvalidParameters: Bad topic or filter provided’ 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/)

## Tags

 * [FCM](https://wordpress.org/support/topic-tag/fcm/)
 * [Firebase](https://wordpress.org/support/topic-tag/firebase/)
 * [Flutter](https://wordpress.org/support/topic-tag/flutter/)

 * 6 replies
 * 2 participants
 * Last reply from: [Paulo Miranda](https://wordpress.org/support/users/dprogrammer/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/invalidparameters-bad-topic-or-filter-provided/#post-13994542)
 * Status: resolved