Swift Parse : How to Push Notification To a Specific Device/objectId

前端 未结 1 1982
春和景丽
春和景丽 2021-01-15 18:43

i\'m trying to push notification to a specific user in my User Table, but my function didn\'t work and i don\'t understand why.

func testPush(){
    let mess         


        
相关标签:
1条回答
  • 2021-01-15 19:05

    The issue is in the line:

    query.whereKey("currentUser", equalTo: userQuery)
    

    It should be:

    query.whereKey("currentUser", matchesQuery: userQuery)
    

    I hope this solves the issue.

    0 讨论(0)
提交回复
热议问题