push notification - background process - iPhone

前端 未结 4 534
梦毁少年i
梦毁少年i 2020-12-18 16:19

I have just heard that - \" push notification \" is possible in iPhone

I need following details.

  • what is push notification ?
  • How it works ?
4条回答
  •  一个人的身影
    2020-12-18 16:31

    The sort of background processing you're looking to do is not possible with push notification.

    Push notification allows you to notify the user of something. An example would be a Twitter client that sends a notification when the user receives a direct message on Twitter.

    Push notification can not react to things happening on the iPhone when the app is not running. Instead, it depends on you having a server that determines when to send a notification and then sends one.

    I'm not seeing any need for background processing in your application. If you store the user's initial location, the next time the app loads you can get their location and calculate the distance between the two. If you're looking for the route travelled, you're out of luck unless you make a deal with AT&T like Loopt just did.

提交回复
热议问题