Reputation: 552
I have an android app that fetches the video from the YouTube channel. It is working fine. The problem is, I want to send the notifications to all the users who have installed the app, even if they are not subscribed to the YouTube. Videos list is fetched from PHP API at my server.
I am thinking of calling the cron every 5 minutes, which I think not a good logic.
Is there any kind of YouTube API or settings that, we can use so as that my server API can be called and I can send the notifications from server itself.
NOTE:-
Upvotes: 1
Views: 227
Reputation:
As for the API itself, I am not an expert so it is not my place to advise, however on the cron you could run it every second in reality as long as you server has the power to deal with the load.
Upvotes: 1