Parse Cloud: Send Push to a single user

后端 未结 3 595
灰色年华
灰色年华 2020-12-30 14:09

I\'m using Parse and I can\'t make this method to work.

The idea is to send push to a single user with an already known user identifier from any platform within \'Cl

3条回答
  •  一整个雨季
    2020-12-30 14:46

    I am using the first of the two methods that you mentioned, and it works fine.

    Just make sure that you use objectId and not the username for targetUser.id.

    Ex:

    targetUser.id = 'Qhao1j22j';   //Never hard code like this though.
    

提交回复
热议问题