Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.task(name='task_send_exam_start_notification')
- def task_job():
- fcm_helper = FCMHelper()
- request_body = {
- "message": {
- "android": {
- "data": {
- },
- "notification": {
- "title": "job notification",
- "body": "hello saima",
- "clickAction": "com.hellobcs.job_preparation.screens.job_details.JobDetailsActivity"
- }
- },
- "data": {
- "job_id": str(1),
- "image_url": None
- },
- "token": "eZkHheLyRuC8CKXD1vwpF7:APA91bH-8jaUnd4i0GfVeMwgtu6RjFeRafb0Kyp7sCY99NFulX-NuAGWC3AZGmgK8i_MUPshMHvcgCpnJ8Eu8sEhl-y0fJJiy2ZEeAP8rw5cVCUj-OTMK78Vel2cI9eNuL_n3DuM8AlX"
- }
- }
- fcm_helper.send_notification(request_body=request_body)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement