Suat Alkan Suat Alkan - 2 months ago 36
Android Question

Check if players have received apprequest

I want to show players that they have received an apprequest from their friends.

I can do this already with this code:

FB.API("/me/apprequests", HttpMethod.GET, ResponseCallBack);

and repeat that every x seconds. But this will create a lot of traffic when the game gets more popular.

Is there another way to achieve this?

I searched for it but could not find any thing.

The game is written for android with unity in c#.


You should not use apprequests for realtime stuff, better use Websockets (Node.js + or Firebase (Realtime Database) for those kind of things. Apprequests are more like "fire and forget" notifications.