{"id":29490,"date":"2020-07-14T17:01:38","date_gmt":"2020-07-14T21:01:38","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=29490"},"modified":"2020-07-14T17:01:38","modified_gmt":"2020-07-14T21:01:38","slug":"ios-14-pasteboard-notifications","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/07\/14\/ios-14-pasteboard-notifications\/","title":{"rendered":"iOS 14 Pasteboard Notifications"},"content":{"rendered":"<p><a href=\"https:\/\/twitter.com\/an0\/status\/1282867431975849984\">an0<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/an0\/status\/1282867431975849984\">\n<p>If you thought the new API <code>-[UIPasteboard detectValuesForPatterns:completionHandler:]<\/code> on iOS 14 is designed to avoid privacy alerts when accessing pasteboard, no, it is not. It still triggers privacy alerts.<\/p>\n<p>[&#8230;]<\/p>\n<p>Testing result in beta 1: even if the pasteboard content doesn&rsquo;t match the pattern.<\/p>\n<\/blockquote>\n\n<p>I would have expected that with no matches there would be no notification. I guess you are expected to first call the <code>detectPatterns<\/code> API and then, depending on the result, call <code>detectValues<\/code>.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/07\/03\/tiktok-ios-clipboard-snooping\/\">TikTok iOS Clipboard Snooping<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/07\/03\/linkedin-ios-clipboard-snooping\/\">LinkedIn iOS Clipboard Snooping<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/03\/17\/ios-apps-snooping-on-pasteboard-data\/\">iOS Apps Snooping on Pasteboard Data<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>an0: If you thought the new API -[UIPasteboard detectValuesForPatterns:completionHandler:] on iOS 14 is designed to avoid privacy alerts when accessing pasteboard, no, it is not. It still triggers privacy alerts. [&#8230;] Testing result in beta 1: even if the pasteboard content doesn&rsquo;t match the pattern. I would have expected that with no matches there would [&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":"2020-07-14T21:01:42Z","apple_news_api_id":"9242cb43-f978-49ea-8bc5-250c35855a90","apple_news_api_modified_at":"2020-07-14T21:01:42Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AkkLLQ_l4SeqLxSUMNYVakA","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":[4],"tags":[31,1837,111,1670,355,71],"class_list":["post-29490","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-ios","tag-ios-14","tag-notificationcenter","tag-pasteboard","tag-privacy","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/29490","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=29490"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/29490\/revisions"}],"predecessor-version":[{"id":29491,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/29490\/revisions\/29491"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=29490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=29490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=29490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}