Title: firebase topic condition not expression doesn't work · Issue #11 · firebase/quickstart-python · GitHub
Open Graph Title: firebase topic condition not expression doesn't work · Issue #11 · firebase/quickstart-python
X Title: firebase topic condition not expression doesn't work · Issue #11 · firebase/quickstart-python
Description: I have a lib https://github.com/jiamo/pfcm to use firebase cloud message. def test_pfcm_send_topic_include_not2(): message_title = "topic" message_body = "{} body of message".format(datetime.datetime.now()) fsmapi = FcmAPI(project_name, ...
Open Graph Description: I have a lib https://github.com/jiamo/pfcm to use firebase cloud message. def test_pfcm_send_topic_include_not2(): message_title = "topic" message_body = "{} body of message".format(datetime.dateti...
X Description: I have a lib https://github.com/jiamo/pfcm to use firebase cloud message. def test_pfcm_send_topic_include_not2(): message_title = "topic" message_body = "{} body of message".fo...
Opengraph URL: https://github.com/firebase/quickstart-python/issues/11
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"firebase topic condition not expression doesn't work","articleBody":"I have a lib https://github.com/jiamo/pfcm to use firebase cloud message.\r\n\r\n```\r\ndef test_pfcm_send_topic_include_not2():\r\n message_title = \"topic\"\r\n message_body = \"{} body of message\".format(datetime.datetime.now())\r\n\r\n fsmapi = FcmAPI(project_name, private_file)\r\n pfcm = Pfcm(fsmapi)\r\n topic = \"!('test' in topics)\"\r\n results = pfcm.send_msg(\r\n topic_condition=topic,\r\n message_title=message_title,\r\n message_body=message_body)\r\n\r\n for result in results:\r\n print(result)\r\n assert not \"error\" in result\r\n\r\n```\r\n\r\nGot error:\r\n\r\n```\r\nF{\r\n \"error\": {\r\n \"code\": 400,\r\n \"message\": \"Request contains an invalid argument.\",\r\n \"status\": \"INVALID_ARGUMENT\",\r\n \"details\": [\r\n {\r\n \"@type\": \"type.googleapis.com/google.rpc.BadRequest\",\r\n \"fieldViolations\": [\r\n {\r\n \"field\": \"message.condition\",\r\n \"description\": \"Invalid condition expression provided.\"\r\n }\r\n ]\r\n },\r\n {\r\n \"@type\": \"type.googleapis.com/google.firebase.fcm.v1.FcmError\",\r\n \"errorCode\": \"INVALID_ARGUMENT\"\r\n }\r\n ]\r\n }\r\n}\r\n\r\n\r\n```\r\nprint the playload json: I already send email to firebase support(They said they are confirm it and need to wait to fix but don't know when)\r\n\r\n```\r\n'{\"message\": {\"notification\": {\"title\": \"topic\", \"body\": \"2018-03-27 12:24:23.399014 body of message\"}, \"condition\": \"!(\\'test\\' in topics) \u0026\u0026 (\\'test2\\' in topics)\"}}'\r\n```\r\n\r\n","author":{"url":"https://github.com/jiamo","@type":"Person","name":"jiamo"},"datePublished":"2018-03-08T09:27:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/11/quickstart-python/issues/11"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:16c24a07-a4ba-7798-41c3-d3e7f36f9f40 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A230:35A89A:1130C23:1742EDA:6964A623 |
| html-safe-nonce | 2263de6779fcc5a14ffcb41371e24a0e43c7eed0637743856ad34a43c3ce4400 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjMwOjM1QTg5QToxMTMwQzIzOjE3NDJFREE6Njk2NEE2MjMiLCJ2aXNpdG9yX2lkIjoiNTM5ODE4MzIwNTk4Nzk4NDkzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fa1e186dc7d461548e6dab76c7b50a787242526f2967ef71e46713d0871e653f |
| hovercard-subject-tag | issue:303411051 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/quickstart-python/11/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d3dbcb612cec7c9fae2bf72bfc7deb053a5155d23f555cf487ab3ccb2a3e5c35/firebase/quickstart-python/issues/11 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d3dbcb612cec7c9fae2bf72bfc7deb053a5155d23f555cf487ab3ccb2a3e5c35/firebase/quickstart-python/issues/11 |
| og:image:alt | I have a lib https://github.com/jiamo/pfcm to use firebase cloud message. def test_pfcm_send_topic_include_not2(): message_title = "topic" message_body = "{} body of message".format(datetime.dateti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jiamo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 15579c46431b7fd25941c3b09010f74fd1890c7a35226839bbbf40ce70fb3057 |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/quickstart-python git https://github.com/firebase/quickstart-python.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 86372150 |
| octolytics-dimension-repository_nwo | firebase/quickstart-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 86372150 |
| octolytics-dimension-repository_network_root_nwo | firebase/quickstart-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 499abb347cb197601d399c346cfeb4b3fa135d5c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width