How to get notification from Youtube through ios push notification service [closed]
开发者_开发问答
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this questionI make youtube app for iphone. When my app state in background i want to get notification. How to receive the notice on the come messages from youtube through ios push notification service? tnx!
Does Youtube provide push notifications? You'll have to figure out how they register devices, and use the same method in your own app. Alternatively, you'll want to set up your own push server that scrapes Youtube or uses an API to interface with Youtube, so that it knows when to send push messages.
well you would need to use the JSON feed they have to get the info (ping it every 10/30 minutes via cron then if it sees a new video get it to send the message, if you search "advance ios apns" you will get a site/script that will send the notifications for you (to the apple devices)
精彩评论