{"id":8458,"date":"2014-02-20T17:44:50","date_gmt":"2014-02-20T22:44:50","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=8458"},"modified":"2014-02-20T22:12:31","modified_gmt":"2014-02-21T03:12:31","slug":"how-do-alarm-clock-apps-work-on-ios","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2014\/02\/20\/how-do-alarm-clock-apps-work-on-ios\/","title":{"rendered":"How Do Alarm Clock Apps Work on iOS?"},"content":{"rendered":"<p><a href=\"http:\/\/oleb.net\/blog\/2014\/02\/alarm-clock-apps-ios\/\">Ole Begemann<\/a>:<\/p>\n<blockquote cite=\"http:\/\/oleb.net\/blog\/2014\/02\/alarm-clock-apps-ios\/\"><p>Rise&rsquo;s surprising solution is to <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/iphone\/conceptual\/iPhoneOSProgrammingGuide\/ManagingYourApplicationsFlow\/ManagingYourApplicationsFlow.html#\/\/apple_ref\/doc\/uid\/TP40007072-CH4-SW5\">opt out of iOS multitasking<\/a> altogether. What was presumably intended by Apple as a temporary option for apps when <a href=\"https:\/\/developer.apple.com\/library\/ios\/releasenotes\/General\/WhatsNewIniOS\/Articles\/iPhoneOS4.html#\/\/apple_ref\/doc\/uid\/TP40009559-SW5\">multitasking was first introduced in iOS 4.0<\/a> is still available.<\/p>\n<p>[&#8230;]<\/p>\n<p>Rise takes advantage of a subtle difference between the pre- and post-multitasking environments: unlike apps that support multitasking (which get suspended in the background when the device gets locked), an app that runs in the pre-multitasking compatibility mode <em>keeps running<\/em>. All the app has to do is wait for the alarm time and execute its custom code.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Ole Begemann: Rise&rsquo;s surprising solution is to opt out of iOS multitasking altogether. What was presumably intended by Apple as a temporary option for apps when multitasking was first introduced in iOS 4.0 is still available. [&#8230;] Rise takes advantage of a subtle difference between the pre- and post-multitasking environments: unlike apps that support multitasking [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[31,26,772,71,771],"class_list":["post-8458","post","type-post","status-publish","format-standard","hentry","category-technology","tag-ios","tag-iosapp","tag-ios-multitasking","tag-programming","tag-rise"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=8458"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8458\/revisions"}],"predecessor-version":[{"id":8459,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8458\/revisions\/8459"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=8458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=8458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=8458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}