App requests successful, but no notification shown

后端 未结 6 825
我寻月下人不归
我寻月下人不归 2020-12-05 03:34

I am using the normal setup for sending invites through the requests dialogue:

FB.ui(
  {
    method: \'apprequests\', 
    message: \"Please add me, I am do         


        
6条回答
  •  时光取名叫无心
    2020-12-05 03:54

    I had to implement facebook ‘apprequests’ instead of the deprecated ‘appinvites’ in an existing cordova app and spent hours debugging.

    • apprequests’ are only available in Facebook Apps categorized as ‘games’.
    • You can send notifications only to platforms (iOS, Android, Facebook web games) that are involved with the facebook app. That means, you will never receive a notification in your browser if you miss ‘facebook web games’ as platform. My expectation was to be notified in the facebook browser app if I was invited from a Mobile app.

    • iOS devices don’t get notifications. In my case, I’ve missed to fill the app store id in the Facebook app platform configuration. After that, notifications appeared instantly.

    • If you like notifications in the fb browser app, you have to add ‘Facebook web games’ (formerly known as ‘canvas’) as plattform.

    • You can save yourself a lot trouble by creating test users in the app role category of your facebook app.

提交回复
热议问题