{"id":1394,"date":"2017-12-29T01:15:14","date_gmt":"2017-12-28T16:15:14","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=1394"},"modified":"2017-12-30T11:49:12","modified_gmt":"2017-12-30T02:49:12","slug":"awsswift4-aws-sns-cognito-ios10%e3%81%a7%e3%82%b5%e3%83%bc%e3%83%90%e3%83%ac%e3%82%b9%e3%81%a7apns%e3%82%92push%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/awsswift4-aws-sns-cognito-ios10%e3%81%a7%e3%82%b5%e3%83%bc%e3%83%90%e3%83%ac%e3%82%b9%e3%81%a7apns%e3%82%92push%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"[AWS\/Swift4] AWS SNS + Cognito + iOS10\u3067\u30b5\u30fc\u30d0\u30ec\u30b9\u3067APNs\u3092push\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>AWS SNS + Cognito + iOS10\u3067\u30b5\u30fc\u30d0\u30ec\u30b9\u3067APNs\u3092push\u3059\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n<p>\u74b0\u5883\uff1axcode9, swift4, iOS10<\/p>\n<h2>APNs\u8a3c\u660e\u66f8\u306e\u6e96\u5099<\/h2>\n<p>\u307e\u305a\u306f\u901a\u5e38\u306eAPNs\u3068\u540c\u3058\u304f\u3001p12\u8a3c\u660e\u66f8\u3092\u5165\u624b\u3059\u308b<\/p>\n<h3>CSR\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h3>\n<p>Mac\u4e0a\u3067\u300c\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u30a2\u30af\u30bb\u30b9\u300d\u3092\u8d77\u52d5\u3055\u305b\u3001\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306e\u300c\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u30a2\u30af\u30bb\u30b9\u300d\u2192\u300c\u8a3c\u660e\u66f8\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u300d\u2192\u300c\u8a8d\u8a3c\u5c40\u306b\u8a3c\u660e\u66f8\u3092\u8981\u6c42\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1395\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.37.31-1024x251.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 0.37.31\" width=\"1024\" height=\"251\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.37.31-1024x251.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.37.31-300x74.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.37.31-768x188.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.37.31.png 1656w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u8981\u6c42\u306e\u51e6\u7406\u3092\u300c\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u5b58\u300d\u3092\u9078\u629e\u3057\u3066\u3001\u5834\u6240\u306f\u3069\u3053\u3067\u3082\u3088\u3044\u306e\u3067CSR\u8a3c\u660e\u66f8\u3092\u4fdd\u5b58<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1396\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.39.15.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 0.39.15\" width=\"880\" height=\"510\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.39.15.png 880w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.39.15-300x174.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.39.15-768x445.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/p>\n<h3>\u958b\u767a\u7528\u8a3c\u660e\u66f8(.cer)\u306e\u4f5c\u6210<\/h3>\n<p><a href=\"https:\/\/developer.apple.com\/\" target=\"_blank\">https:\/\/developer.apple.com\/<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u300cCertificates, Identifiers &amp; Profiles\u300d\u3092\u958b\u304f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1397\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.44.17-1024x260.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 0.44.17\" width=\"1024\" height=\"260\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.44.17-1024x260.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.44.17-300x76.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.44.17-768x195.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.44.17.png 1086w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u300cCertificates\u300d\u2192\u300cAll\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u300ciOS App Development\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u3001\u300cContinue\u300d\u2192\u300cContinue\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1398\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.45.49-1024x302.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 0.45.49\" width=\"1024\" height=\"302\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.45.49-1024x302.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.45.49-300x88.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.45.49-768x226.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.45.49.png 1962w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fCSR\u8a3c\u660e\u66f8\u3092\u9078\u629e\u3057\u3066\u3001\u300cContinue\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1399\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.47.34-1024x250.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 0.47.34\" width=\"1024\" height=\"250\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.47.34-1024x250.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.47.34-300x73.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.47.34-768x188.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.47.34.png 1376w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u958b\u767a\u8005\u7528\u8a3c\u660e\u66f8\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u300cDownload\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u308f\u304b\u308a\u3084\u3059\u3044\u5834\u6240\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304f\u3002<\/p>\n<h3>AppID\u306e\u4f5c\u6210<\/h3>\n<p>\u6b21\u306f\u300cIdentifiers\u300d\u2192\u300cAppIDs\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u53f3\u4e0a\u306e\u300c\uff0b\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p>\u300cBundle ID\u300d\u306fXcode\u3067\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u3068\u540c\u3058\u3082\u306e\u3092\u6307\u5b9a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1400\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.55.06-1024x498.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 0.55.06\" width=\"1024\" height=\"498\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.55.06-1024x498.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.55.06-300x146.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.55.06-768x374.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.55.06.png 1952w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u753b\u9762\u306e\u4e0b\u306b\u300cPush Notification\u300d\u304c\u3042\u308b\u306e\u3067\u30c1\u30a7\u30c3\u30af<\/p>\n<p>\u65e2\u306bApp ID\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001Edit\u3067Push Notification\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b\u3053\u3068<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1401\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.56.25-1024x374.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 0.56.25\" width=\"1024\" height=\"374\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.56.25-1024x374.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.56.25-300x110.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.56.25-768x281.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-0.56.25.png 1428w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>\u30c6\u30b9\u30c8\u7aef\u672b\u306e\u767b\u9332<\/h3>\n<p>\u5b9f\u6a5f\u30c6\u30b9\u30c8\u3092\u884c\u3046\u7aef\u672b\u3092\u767b\u9332\u3059\u308b<\/p>\n<p>\u300cDevices\u300d\u2192\u300cAll\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u53f3\u4e0a\u306e\u300c\uff0b\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1402\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.00.19-1024x115.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 1.00.19\" width=\"1024\" height=\"115\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.00.19-1024x115.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.00.19-300x34.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.00.19-768x86.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.00.19.png 1462w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u610f\u306e\u540d\u524d\u3092\u30c6\u30b9\u30c8\u7aef\u672b\u306eUDID\u3092\u5165\u529b\u3059\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1403\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.01.12-1024x296.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 1.01.12\" width=\"1024\" height=\"296\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.01.12-1024x296.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.01.12-300x87.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.01.12-768x222.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.01.12.png 1426w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>UDID\u306f\u7aef\u672b\u3092\u30c6\u30b9\u30c8\u7aef\u672b\u304c\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\u3067xcode\u3092\u8d77\u52d5\u3057\u3001\u300cWindow\u300d\u2192\u300cDevices and Simulators\u300d\u3092\u9078\u629e\u3002\u7aef\u672b\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u300cidentifer\u300d\u3092\u53c2\u7167\u3059\u308b\u3053\u3068<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1404 size-medium\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.03.28-300x244.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 1.03.28\" width=\"300\" height=\"244\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.03.28-300x244.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.03.28.png 606w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>UDID\u3092\u5165\u529b\u3057\u305f\u3089\u3001\u300cContinue\u300d\u3092\u30af\u30ea\u30c3\u30af\u3001\u300cRegister\u300d\u3067\u767b\u9332\u3059\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>APNs Provisioning Profiles\u3092\u4f5c\u6210<\/h3>\n<p>\u300cProvisioning Profiles\u300d\u2192\u300cAll\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u53f3\u4e0a\u306e\u300c\uff0b\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1405\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.06.42-1024x601.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 1.06.42\" width=\"1024\" height=\"601\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.06.42-1024x601.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.06.42-300x176.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.06.42-768x450.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.06.42.png 1456w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>App ID\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u8a72\u5f53\u30a2\u30d7\u30ea\u306eApp ID\u3092\u9078\u629e<\/p>\n<p>\u8a3c\u660e\u66f8\u9078\u629e\u753b\u9762\u306b\u306a\u308b\u306e\u3067\u3001\u5148\u7a0b\u4f5c\u6210\u3057\u305f\u958b\u767a\u7528\u8a3c\u660e\u66f8\u3092\u9078\u629e<\/p>\n<p>\u6b21\u306b\u7aef\u672b\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u30c6\u30b9\u30c8\u7528\u5b9f\u6a5f\u3092\u9078\u629e<\/p>\n<p>\u6700\u5f8c\u306b\u8a3c\u660e\u66f8\u540d\u3092\u8a18\u5165\u3059\u308b\u306e\u3067\u300c\u30a2\u30d7\u30ea\u540d_dev\u300d\u306a\u3069\u306e\u540d\u524d\u3092\u4ed8\u3051\u308b\u3068\u308f\u304b\u308a\u3084\u3059\u3044<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1406\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.11.20-1024x593.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 1.11.20\" width=\"1024\" height=\"593\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.11.20-1024x593.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.11.20-300x174.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.11.20-768x445.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.11.20.png 1268w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u300cDownload\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u308f\u304b\u308a\u3084\u3059\u3044\u5834\u6240\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>APNs\u7528\u8a3c\u660e\u66f8(.cer)\u306e\u4f5c\u6210<\/h3>\n<p>\u300cCertificates\u300d\u2192\u300cAll\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u53f3\u4e0a\u306e\u300c\uff0b\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p>\u4eca\u5ea6\u306f\u300cApple Push Notification service SSL (Sandbox)\u300d\u3092\u9078\u629e<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1410\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.16.37-1024x513.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 1.16.37\" width=\"1024\" height=\"513\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.16.37-1024x513.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.16.37-300x150.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.16.37-768x385.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.16.37.png 1436w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>AppID\u3068CSR\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e<\/p>\n<p>APNs\u7528\u8a3c\u660e\u66f8(.cer)\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u300cDownload\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u308f\u304b\u308a\u3084\u3059\u3044\u5834\u6240\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304f<\/p>\n<p>&nbsp;<\/p>\n<h3>APNs\u7528\u8a3c\u660e\u66f8(.p12)\u306e\u4f5c\u6210<\/h3>\n<p>\u300cAPNs\u7528\u8a3c\u660e\u66f8(.cer)\u300d\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3067\u958b\u304f<\/p>\n<p>\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u30a2\u30af\u30bb\u30b9\u304c\u8d77\u52d5\u3059\u308b\u306e\u3067\u3001\u5148\u7a0b\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u305f\u8a3c\u660e\u66f8\u3092\u63a2\u3057\u3001\u53f3\u30af\u30ea\u30c3\u30af\u2192\u300c\u66f8\u304d\u51fa\u3059\u300d\u3092\u9078\u629e<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1411\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.20.46-1024x291.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 1.20.46\" width=\"1024\" height=\"291\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.20.46-1024x291.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.20.46-300x85.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.20.46-768x218.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-1.20.46.png 1350w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u3089\u308c\u308b\u304c\u7a7a\u6b04\u3067\u3082\u554f\u984c\u306a\u3044\u3001\u3082\u3057\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u305f\u3089\u899a\u3048\u3066\u304a\u304f\u3053\u3068\u3002<\/p>\n<p>APNs\u7528\u8a3c\u660e\u66f8(.p12)\u304c\u66f8\u304d\u51fa\u3055\u308c\u308b\u306e\u3067\u3001\u308f\u304b\u308a\u6613\u3044\u5834\u6240\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304f\u3053\u3068\u3002<\/p>\n<p>\u3053\u308c\u3067\u8a3c\u660e\u66f8\u95a2\u9023\u306e\u4f5c\u696d\u306f\u7d42\u4e86<\/p>\n<p>&nbsp;<\/p>\n<h2>AWS SNS\u306e\u8a2d\u5b9a<\/h2>\n<h3>\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/h3>\n<p>AWS SNS\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u958b\u304d\u3001\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u300d\u2192\u300c\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u300d\u3092\u9078\u629e\u3002<\/p>\n<p>\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u753b\u9762\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b<\/p>\n<table>\n<tbody>\n<tr>\n<td>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d<\/td>\n<td>\u9069\u5f53\u306b<\/td>\n<\/tr>\n<tr>\n<td>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0<\/td>\n<td>Apple Development<\/td>\n<\/tr>\n<tr>\n<td>p12\u30d5\u30a1\u30a4\u30eb<\/td>\n<td>\u5148\u7a0b\u4f5c\u6210\u3057\u305fp12\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/td>\n<\/tr>\n<tr>\n<td>\u30d7\u30c3\u30b7\u30e5\u8a3c\u660e\u66f8\u30bf\u30a4\u30d7<\/td>\n<td>iOS\u30d7\u30c3\u30b7\u30e5\u8a3c\u660e\u66f8<\/td>\n<\/tr>\n<tr>\n<td>\u30d1\u30b9\u30ef\u30fc\u30c9<\/td>\n<td>\u8a3c\u660e\u66f8\u3092\u66f8\u304d\u51fa\u3059\u6642\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308c\u3070<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1413\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.45.04-1024x702.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 9.45.04\" width=\"1024\" height=\"702\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.45.04-1024x702.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.45.04-300x206.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.45.04-768x527.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.45.04.png 1782w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u5165\u529b\u3057\u305f\u3089\u3001\u300c\u8a8d\u8a3c\u60c5\u5831\u3092\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u8aad\u307f\u8fbc\u307f\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u300c\u8a3c\u660e\u66f8\u300d\u3068\u300c\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ad\u30fc\u300d\u6b04\u306b\u81ea\u52d5\u306b\u5024\u304c\u5165\u529b\u3055\u308c\u308b<\/p>\n<p>\u300c\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u300d\u3092\u30af\u30ea\u30c3\u30af\u3067\u78ba\u5b9a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1417\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.58.16-1024x210.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 9.58.16\" width=\"1024\" height=\"210\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.58.16-1024x210.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.58.16-300x61.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.58.16-768x157.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.58.16.png 1710w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u4f5c\u6210\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306eARN\u3092\u63a7\u3048\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u30c8\u30d4\u30c3\u30af\u306e\u4f5c\u6210<\/h3>\n<p>AWS SNS\u3067\u300c\u30c8\u30d4\u30c3\u30af\u300d\u2192\u300c\u65b0\u3057\u3044\u30c8\u30d4\u30c3\u30af\u3092\u4f5c\u6210\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p>\u30c8\u30d4\u30c3\u30af\u540d\u3068\u8868\u793a\u540d\u306b\u9069\u5f53\u306a\u540d\u524d\u3092\u5165\u529b\u3059\u308b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1416\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.56.51-1024x357.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 9.56.51\" width=\"1024\" height=\"357\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.56.51-1024x357.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.56.51-300x105.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.56.51-768x268.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.56.51.png 1774w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u4f5c\u6210\u3055\u308c\u305f\u30c8\u30d4\u30c3\u30af\u306eARN\u3092\u63a7\u3048\u308b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1419\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.59.50-1024x264.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 9.59.50\" width=\"1024\" height=\"264\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.59.50-1024x264.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.59.50-300x77.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.59.50-768x198.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-9.59.50.png 1704w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Cognito\u306e\u8a2d\u5b9a<\/h2>\n<h3>\u30d5\u30a7\u30c7\u30ec\u30fc\u30c6\u30a3\u30c3\u30c9\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u4f5c\u6210<\/h3>\n<p>AWS\u00a0Cognito\u3092\u958b\u304d\u300c\u30d5\u30a7\u30c7\u30ec\u30fc\u30c6\u30a3\u30c3\u30c9\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u300d\u2192\u300c\u65b0\u3057\u3044\u30d7\u30fc\u30eb\u3092\u4f5c\u6210\u300d\u3092\u9078\u629e<\/p>\n<p>ID\u30d7\u30fc\u30eb\u540d\u3092\u5165\u529b\u3057\u3001\u300c\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u306a\u3044ID\u306b\u5bfe\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3092\u6709\u52b9\u306b\u3059\u308b\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b\u3002\u8a8d\u8a3c\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u5165\u529b\u306f\u4e0d\u8981\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1420\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.03.10-1024x555.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 10.03.10\" width=\"1024\" height=\"555\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.03.10-1024x555.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.03.10-300x163.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.03.10-768x416.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.03.10.png 1694w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>IAM\u30ed\u30fc\u30eb\u306e\u8ffd\u52a0\u3092\u8981\u6c42\u3057\u3066\u304f\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u300c\u8a31\u53ef\u300d\u3092\u62bc\u3059<\/p>\n<p>\u4f5c\u6210\u3055\u308c\u308b\u30ed\u30fc\u30eb\u540d\u3092\u899a\u3048\u3066\u304a\u304f\u3053\u3068\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1421\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.05.39-1024x492.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 10.05.39\" width=\"1024\" height=\"492\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.05.39-1024x492.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.05.39-300x144.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.05.39-768x369.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u300cAmazon Cognito \u3067\u306e\u4f5c\u696d\u958b\u59cb\u300d\u753b\u9762\u306b\u306a\u308b\u306e\u3067\u3001\u300c\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u300d\u3092\u300cios &#8211; swift\u300d\u3092\u9078\u629e\u3057\u3001identityPoolId\u3092\u63a7\u3048\u308b<\/p>\n<p>SDK\u306f\u3042\u3068\u3067Pod\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u3001\u3053\u306e\u6642\u306f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u306a\u304f\u3066\u3088\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1423\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.07.11-1-1024x301.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 10.07.11\" width=\"1024\" height=\"301\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.07.11-1-1024x301.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.07.11-1-300x88.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.07.11-1-768x226.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.07.11-1.png 1660w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h2><\/h2>\n<h2>IAM\u306e\u8a2d\u5b9a<\/h2>\n<p>AWS\u306eIAM\u3092\u958b\u304d\u3001\u5148\u7a0b\u4f5c\u6210\u3055\u308c\u305fCognito\u7528\u306eUnauth\u7528IAM\u306bAWS SNS\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306e\u8a31\u53ef\u30dd\u30ea\u30b7\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/p>\n<p>\u3053\u308c\u306b\u3088\u308aCognito\u3067\u53d7\u4fe1\u3057\u305f\u30e6\u30fc\u30b6\u30c7\u30d0\u30a4\u30b9\u60c5\u5831\u3092AWS SNS\u306b\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u5148\u7a0b\u4f5c\u6210\u3055\u308c\u305fCognito\u7528\u306eUnauth\u7528IAM\u3092\u30af\u30ea\u30c3\u30af\u3002\uff12\u3064\u3067\u304d\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u3067\u300cUnauth\u300d\b\u306e\u540d\u524d\u304c\u3064\u3044\u3066\u3044\u308b\u3082\u306e\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1424\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.11.46-1024x243.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 10.11.46\" width=\"1024\" height=\"243\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.11.46-1024x243.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.11.46-300x71.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.11.46-768x182.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u300c\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u300d\u30bf\u30d6\u3092\u958b\u304d\u3001\u30dd\u30ea\u30b7\u30fc\u540d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001JSON\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u300c\u30dd\u30ea\u30b7\u30fc\u306e\u7de8\u96c6\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1425\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.14.04-1024x421.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 10.14.04\" width=\"1024\" height=\"421\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.14.04-1024x421.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.14.04-300x123.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.14.04-768x316.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.14.04.png 1830w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u304a\u305d\u3089\u304f\u3001\u4e0b\u8a18\u306e\u56f3\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u601d\u308f\u308c\u308b\u306e\u3067\u3001\u300c\u3055\u3089\u306b\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3092\u8ffd\u52a0\u3059\u308b\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1426\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.16.13-1024x195.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 10.16.13\" width=\"1024\" height=\"195\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.16.13-1024x195.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.16.13-300x57.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.16.13-768x146.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.16.13.png 1868w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u306bSNS\u3092\u6307\u5b9a\u3057\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u306f\u300c\u3059\u3079\u3066\u300d\u3092\u9078\u629e\u3001\u30ea\u30bd\u30fc\u30b9\u306f\u300c\u3059\u3079\u3066\u306e\u30c8\u30d4\u30c3\u30af\u300d\u3092\u6307\u5b9a\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1427\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.17.23-1024x392.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 10.17.23\" width=\"1024\" height=\"392\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.17.23-1024x392.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.17.23-300x115.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.17.23-768x294.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.17.23.png 1836w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u78ba\u5b9a\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u5909\u66f4\u3092\u53cd\u6620\u3055\u305b\u308b\u3002<\/p>\n<p>\u3053\u308c\u3067AWS\u5074\u306e\u8a2d\u5b9a\u306f\u7d42\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30a2\u30d7\u30ea\u5074\u8a2d\u5b9a<\/h2>\n<h3>AWSSNS\u3068AWSCognito\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>PodFile\u306b\u4e0b\u8a18\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3001pod install\u30b3\u30de\u30f3\u30c9\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/p>\n<pre>target 'app name' do\r\n# Comment the next line if you're not using Swift and don't want to use dynamic frameworks\r\nuse_frameworks!\r\n\r\n# Pods for\u00a0app name\r\npod 'AWSSNS'\r\npod 'AWSCognito'<\/pre>\n<p>&nbsp;<\/p>\n<h3>xcode\u4e0a\u3067Notification\u3092\u6709\u52b9\u306b<\/h3>\n<p>xcode\u306e\u300ccapabilities\u300d\u3067Push Notification\u3092\u6709\u52b9\u306b\u3059\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1432\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.54.43-1024x341.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 10.54.43\" width=\"1024\" height=\"341\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.54.43-1024x341.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.54.43-300x100.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.54.43-768x256.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.54.43.png 1130w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u3082\u901a\u77e5\u3092\u53d7\u3051\u53d6\u3063\u305f\u3089\u51e6\u7406\u3057\u305f\u3044\u5834\u5408\u306f\u300cBackground Modes\u300d\u306e\u300cRemote notifications\u300d\u3082\u6709\u52b9\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1433\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.56.34-1024x493.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 10.56.34\" width=\"1024\" height=\"493\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.56.34-1024x493.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.56.34-300x145.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.56.34-768x370.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-10.56.34.png 1104w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>AppDelegate.swift\u306b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0<\/h3>\n<p>AppDelegate.swift\u306b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>Import<\/h4>\n<p>AWSCognito\u3068AWSSNS\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<\/p>\n<pre class=\"\">import AWSCognito\r\nimport AWSSNS\r\nimport UserNotifications<\/pre>\n<p>iOS10\u4ee5\u4e0a\u306e\u5834\u5408\u306fimport UserNotifications\u3082\u8ffd\u8a18\u3057\u3066\u304a\u304f\u3053\u3068<\/p>\n<p>&nbsp;<\/p>\n<h4>didFinishLaunchingWithOptions<\/h4>\n<p>didFinishLaunchingWithOptions\u306b\u30e6\u30fc\u30b6\u304b\u3089\u901a\u77e5\u306e\u8a31\u53ef\u3092\u3082\u3089\u3046\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18<\/p>\n<pre class=\"lang:default decode:true\">func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {\r\n \/\/ Override point for customization after application launch.\r\n \r\n \/\/ \u30e6\u30fc\u30b6\u304b\u3089Push Notification\u901a\u77e5\u306e\u8a31\u53ef\u3092\u3082\u3089\u3046\r\n if #available(iOS 10.0, *) {\r\n \/\/ iOS 10 \u4ee5\u964d\u306e\u8a2d\u5b9a\r\n UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate\r\n \r\n let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound]\r\n UNUserNotificationCenter.current().requestAuthorization(\r\n options: authOptions,\r\n completionHandler: {granted, error in\r\n if error != nil {\r\n \/\/ \u30a8\u30e9\u30fc\u6642\u306e\u51e6\u7406\r\n return\r\n }\r\n if granted {\r\n \/\/ \u30c7\u30d0\u30a4\u30b9\u30c8\u30fc\u30af\u30f3\u306e\u8981\u6c42\r\n UIApplication.shared.registerForRemoteNotifications()\r\n }\r\n })\r\n\r\n } else {\r\n \/\/ iOS 10 \u3088\u308a\u524d\u306e\u8a2d\u5b9a\r\n let settings: UIUserNotificationSettings =\r\n UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil)\r\n application.registerUserNotificationSettings(settings)\r\n UIApplication.shared.registerForRemoteNotifications()\r\n\r\n }\r\n\r\n return true\r\n }<\/pre>\n<p>&nbsp;<\/p>\n<h4>didRegisterForRemoteNotificationsWithDeviceToken<\/h4>\n<p>didRegisterForRemoteNotificationsWithDeviceToken\u306bToken\u3092AWSCognito\u3068AWS SNS\u306b\u9001\u4fe1\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18<\/p>\n<p>\u5148\u7a0bAWS\u4e0a\u3067\u8a2d\u5b9a\u6642\u306b\u63a7\u3048\u305f\u300cidentityPoolId\u300d\u3084\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ARN\u300d\u300c\u30c8\u30d4\u30c3\u30afARN\u300d\u3092\u5165\u529b\u3059\u308b<\/p>\n<pre class=\"lang:default decode:true\">func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {\r\n \/\/Token\u306e\u6587\u5b57\u6210\u5f62\r\n var token = String(format: \"%@\", deviceToken as CVarArg) as String\r\n let characterSet: CharacterSet = CharacterSet.init(charactersIn: \"&lt;&gt;\")\r\n token = token.trimmingCharacters(in: characterSet)\r\n token = token.replacingOccurrences(of: \" \", with: \"\")\r\n print(\"deviceToken: \\(token)\")\r\n \r\n \/\/ Initialize the Amazon Cognito credentials provider\r\n let credentialsProvider = AWSCognitoCredentialsProvider(regionType:.APNortheast1,\r\n identityPoolId:\"\u5148\u7a0b\u4f5c\u6210\u3057\u305fidentityPoolId\u3092\u8ffd\u52a0\")\r\n let configuration = AWSServiceConfiguration(region:.APNortheast1, credentialsProvider:credentialsProvider)\r\n AWSServiceManager.default().defaultServiceConfiguration = configuration\r\n \r\n let sns = AWSSNS.default()\r\n let request = AWSSNSCreatePlatformEndpointInput()\r\n request?.token = token\r\n request?.platformApplicationArn = \"\u5148\u7a0b\u4f5c\u6210\u3057\u305fAWS SNS\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ARN\u3092\u8ffd\u52a0\"\r\n request?.customUserData = \"Memo\"\r\n \r\n sns.createPlatformEndpoint(request!).continueWith(executor: AWSExecutor.mainThread(), block: { (task: AWSTask!) -&gt; AnyObject! in\r\n if task.error != nil {\r\n print(\"Error: \\(task.error)\")\r\n } else {\r\n let result = task.result as! AWSSNSCreateEndpointResponse\r\n let subscribeInput = AWSSNSSubscribeInput()\r\n subscribeInput?.topicArn = \"\u5148\u7a0b\u4f5c\u6210\u3057\u305fAWS SNS\u306e\u30c8\u30d4\u30c3\u30afARN\u3092\u8ffd\u52a0\"\r\n subscribeInput?.endpoint = result.endpointArn\r\n subscribeInput?.protocols = \"Application\"\r\n sns.subscribe(subscribeInput!)\r\n \r\n \/\/self.saveEndpointArn(result.endpointArn)\r\n }\r\n return nil\r\n })\r\n }<\/pre>\n<p>&nbsp;<\/p>\n<h4>\u901a\u77e5\u53d7\u4fe1\u6642\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0<\/h4>\n<p>iOS9\u4ee5\u524d\u3067\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0<\/p>\n<pre class=\"lang:default decode:true\">\/\/iOS9\u4ee5\u524d\u306e\u901a\u77e5\u30e1\u30bd\u30c3\u30c9\r\n func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) {\r\n \/\/ \u30a2\u30d7\u30ea\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u9593\u306b\u901a\u77e5\u3092\u53d7\u3051\u53d6\u3063\u305f\u5834\u5408\u306e\u51e6\u7406\u3092\u884c\u3046\u3002\r\n print(\"didReceiveRemoteNotification\")\r\n print(userInfo)\r\n if application.applicationState == .active {\r\n \/\/write your code here when app is in foreground\r\n print(\"get the push notification on foreground\")\r\n } else {\r\n \/\/write your code here for other state\r\n print(\"get the push notification on foreground in other\")\r\n }\r\n }\r\n \r\n func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any],\r\n fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void) {\r\n \/\/ \u30a2\u30d7\u30ea\u304c\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u72b6\u614b\u306e\u6642\u306b\u901a\u77e5\u3092\u53d7\u3051\u53d6\u3063\u305f\u5834\u5408\u306e\u51e6\u7406\u3092\u884c\u3046\u3002\r\n print(\"get the push notification on background\")\r\n completionHandler(UIBackgroundFetchResult.newData)\r\n }\r\n \r\n func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {\r\n \/\/ \u30b7\u30b9\u30c6\u30e0\u3078\u306e\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306e\u767b\u9332\u304c\u5931\u6557\u3057\u305f\u6642\u306e\u51e6\u7406\u3092\u884c\u3046\u3002\r\n print(\"fail to push notification\")\r\n }<\/pre>\n<p>iOS10\u4ee5\u4e0a\u3067\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0<\/p>\n<pre class=\"lang:default decode:true \">@available(iOS 10, *)\r\nextension AppDelegate : UNUserNotificationCenterDelegate {\r\n \r\n \/\/ iOS 10 \u4ee5\u964d\u3067\u306f\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u3068\u3053\u3061\u3089\u306e\u30c7\u30ea\u30b2\u30fc\u30c8\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3070\u308c\u308b\u3002\r\n \/\/foreground\r\n func userNotificationCenter(_ center: UNUserNotificationCenter,\r\n willPresent notification: UNNotification,\r\n withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -&gt; Void) {\r\n print(\"notification is \\(notification)\")\r\n \/\/write your action here\r\n completionHandler(UNNotificationPresentationOptions.alert)\r\n }\r\n \r\n \/\/background\r\n func userNotificationCenter(_ center: UNUserNotificationCenter,\r\n didReceive response: UNNotificationResponse,\r\n withCompletionHandler completionHandler: @escaping () -&gt; Void) {\r\n print(\"response is \\(response)\")\r\n \/\/write your action here\r\n completionHandler()\r\n }\r\n}<\/pre>\n<p>completionHandler(UNNotificationPresentationOptions.alert)\u3067\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u3082\u30a2\u30e9\u30fc\u30c8\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n<p>&nbsp;<\/p>\n<p>\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u3066\u3001\u901a\u77e5\u8a31\u53ef\u3092\u884c\u3046\u3068AWS SNS\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4e0a\u306b\u30c7\u30d0\u30a4\u30b9\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u308b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1434\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.07.57-1024x273.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 11.07.57\" width=\"1024\" height=\"273\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.07.57-1024x273.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.07.57-300x80.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.07.57-768x205.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.07.57.png 1708w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>AWS SNS\u3067\u901a\u77e5\u306e\u767a\u884c<\/h2>\n<p>AWS SNS\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u3066\u3001\u901a\u77e5\u3092\u767a\u884c\u3057\u305f\u3044\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u9078\u629e\u3057\u3001\u300c\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3078\u306e\u767a\u884c\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p>\u30e1\u30c3\u30bb\u30fc\u30b8\u306fJSON\u5f62\u5f0f\u3067\u9001\u4fe1\u3059\u308b\u3002\u300cJSON message generator\u300d\u3067\u4f5c\u6210\u3059\u308b\u306e\u304c\u30ab\u30f3\u30bf\u30f3\u3002<\/p>\n<p>\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u767a\u884c\u300d\u3067\u901a\u77e5\u9001\u4fe1<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1435\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.09.27-1024x590.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-12-29 11.09.27\" width=\"1024\" height=\"590\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.09.27-1024x590.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.09.27-300x173.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.09.27-768x443.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-12-29-11.09.27.png 1714w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u3059\u3079\u3066\u306e\u8a2d\u5b9a\u304c\u3046\u307e\u304f\u884c\u3063\u3066\u3044\u308c\u3070\u3001\u30c6\u30b9\u30c8\u30c7\u30d0\u30a4\u30b9\u306b\u901a\u77e5\u304c\u5c4a\u304d\u3001\u30ed\u30b0\u306b\u3082\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Product Push Notification\u306e\u8a2d\u5b9a<\/h2>\n<p>\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u30a2\u30af\u30bb\u30b9\u3067development\u3067\u4f7f\u7528\u3057\u305f\u8a3c\u660e\u66f8\u3068\u306f\u5225\u306b\u518d\u5ea6\u8a8d\u8a3c\u6a5f\u95a2\u306b\u8a3c\u660e\u66f8\u3092\u8981\u6c42\u3059\u308b\u3002<\/p>\n<p><a href=\"https:\/\/developer.apple.com\/\" target=\"_blank\">https:\/\/developer.apple.com\/<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u300cCertificates, Identifiers &amp; Profiles\u300d\u3092\u958b\u304f<\/p>\n<p>iOS Provisioning Profiles\u306eiOS Distribution\u7248\u3092\u4f5c\u6210<\/p>\n<p>\u300cCertificates\u300d\u3067Apple Push Services\u3092\u4f5c\u6210\u3002APNs\u7528\u8a3c\u660e\u66f8(.cer)\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n<p>APNs\u7528\u8a3c\u660e\u66f8(.cer)\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3001\u5bfe\u8c61APNs\u7528\u8a3c\u660e\u66f8(.cer)\u304b\u3089p12\u8a3c\u660e\u66f8\u3092\u66f8\u304d\u51fa\u3057<\/p>\n<p>AWS SNS\u3067\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3001\u8a3c\u660e\u66f8\u306b\u5148\u7a0b\u306ep12\u8a3c\u660e\u66f8\u3092\u8a2d\u5b9a\u3002<\/p>\n<p>AWS SNS\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ARN\u3092swift\u4e0a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ARN\u3068\u5165\u308c\u66ff\u3048\u308b\u3002<\/p>\n<p>\u4ee5\u4e0a\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS SNS + Cognito + <\/p>\n","protected":false},"author":1,"featured_media":1407,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,13],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1394"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=1394"}],"version-history":[{"count":13,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1394\/revisions"}],"predecessor-version":[{"id":1472,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1394\/revisions\/1472"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/1407"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=1394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=1394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=1394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}