{"id":16621,"date":"2017-11-01T09:51:04","date_gmt":"2017-11-01T00:51:04","guid":{"rendered":"https:\/\/vitalify.jp\/blog\/?p=16621"},"modified":"2024-04-25T11:47:15","modified_gmt":"2024-04-25T02:47:15","slug":"google-firebase%e3%81%ae-authentication%e3%80%81realtime-database%e3%81%a8%e3%81%af%ef%bc%9f-%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a8%e3%83%a1%e3%83%aa%e3%83%83%e3%83%88-iphone%e7%89%88","status":"publish","type":"post","link":"https:\/\/vitalify.jp\/blog\/2017\/11\/google-firebase%e3%81%ae-authentication%e3%80%81realtime-database%e3%81%a8%e3%81%af%ef%bc%9f-%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a8%e3%83%a1%e3%83%aa%e3%83%83%e3%83%88-iphone%e7%89%88.html","title":{"rendered":"google Firebase\u306e &#8220;Authentication&#8221;\u3001&#8221;Realtime Database&#8221;\u3068\u306f\uff1f \u4f7f\u3044\u65b9\u3068\u30e1\u30ea\u30c3\u30c8 \ufffc(iphone\u7248)"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u6614cocos2d\u3067iphone\u30b2\u30fc\u30e0\u3092\u4f5c\u3063\u3066\u3044\u305f\u4e2d\u6751\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u307e\u305fiphone\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f5c\u6210\u306b\u3042\u305f\u308afirebase\u306e\u300cAuthentication\u300d\u3001\u300cRealtime Database\u300d\u3092\u4f7f\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u3089\u306e\u6982\u8981\u3068\u30e1\u30ea\u30c3\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u4eca\u56de\u306f\u4ee5\u4e0b\u3092\u5b66\u7fd2\u30dd\u30a4\u30f3\u30c8\u3068\u3057\u3066iphone\u30a2\u30d7\u30ea\u3092\u30b9\u30c8\u30a2\u516c\u958b\u307e\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u30fbcocos\u306f\u4f7f\u308f\u305aios\u306e\u6a19\u6e96\u6a5f\u80fd\u3092\u3067\u304d\u308b\u3060\u3051\u5229\u7528\u3059\u308b<br \/>\n\u30fb\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u901a\u4fe1\u304c\u3042\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3059\u308b<\/p>\n<p>\u4e0a\u8a18\u304b\u3089\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u958b\u767a\u3082\u5fc5\u8981\u3067\u3057\u305f\u304c\u3001\u6642\u9593\u3092\u304b\u3051\u305a\u306b\u4f5c\u308b\u305f\u3081\u306bBaas\u3092\u4f7f\u3046\u3053\u3068\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002(\u7d50\u5c40\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u306b\u983c\u308a\u307e\u3057\u305f)<br \/>\nAWS\u306a\u3069\u3082\u9078\u629e\u80a2\u306b\u3042\u308a\u307e\u3057\u305f\u304c\u3001Baas\u306b\u7279\u5316\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u306fFirebase\u306e\u65b9\u304c\u4f7f\u3044\u52dd\u624b\u304c\u826f\u3055\u305d\u3046\u3001\u3068\u3044\u3046\u7406\u7531\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u300cAuthentication\u300d\u3001\u300cRealtime Database\u300d\u4f7f\u3063\u3066\u5b66\u3093\u3060\u3053\u3068\u3068\u611f\u3058\u305f\u30e1\u30ea\u30c3\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u25a0Authentication (\u8a8d\u8a3c\u6a5f\u80fd)<\/h2>\n<p>Authentication\u3068\u306ffirebase\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3084SNS\u306e\u30ed\u30b0\u30a4\u30f3\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u7ba1\u7406\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<br \/>\n\u30fb\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762<br \/>\n<a href=\"https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-7.36.36.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-16581\" src=\"https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-7.36.36-1024x435.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-10-31 7.36.36\" width=\"840\" height=\"357\" srcset=\"https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-7.36.36-1024x435.png 1024w, https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-7.36.36-300x127.png 300w, https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-7.36.36-768x326.png 768w, https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-7.36.36-1200x509.png 1200w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<h3>\u30fbAuthentication\u3067\u3067\u304d\u308b\u3053\u3068<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406\u306b\u95a2\u3059\u308b\u6a5f\u80fd\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4e00\u822c\u7684\u306b\u4f7f\u308f\u308c\u308b\u3067\u3042\u308d\u3046\u6a5f\u80fd\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30fb\u533f\u540d\u767b\u9332<br \/>\n\u30fb\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u767b\u9332<br \/>\n\u30fbSNS\u767b\u9332<br \/>\n\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4<br \/>\n\u30fb\u30ed\u30b0\u30a4\u30f3\u30fb\u30ed\u30b0\u30a2\u30a6\u30c8<\/p>\n<p>\u74b0\u5883\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u3066\u3044\u308c\u3070\u5b9f\u88c5\u3059\u308b\u969b\u306f\u3001<br \/>\nAuth.auth().signInAnonymously()<br \/>\n\u306e1\u884c\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u767b\u9332\u51e6\u7406\u304c\u3067\u304d\u307e\u3059\u3002\u7c21\u5358\uff01<\/p>\n<p>\u8a73\u7d30\u306f\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u30fbFirebase Authentication<br \/>\n<a href=\"https:\/\/firebase.google.com\/docs\/auth\/\" target=\"_blank\" rel=\"noopener\">https:\/\/firebase.google.com\/docs\/auth\/<\/a><\/p>\n<h3>\u30fbAuthentication\u3067\u4fbf\u5229\u3060\u3068\u611f\u3058\u305f\u3053\u3068<\/h3>\n<h4>1.\u533f\u540d\u767b\u9332\u2192\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u767b\u9332\u306b\u5909\u66f4\u304c\u7c21\u5358<\/h4>\n<p>\u4eca\u56de\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u306b\u3042\u305f\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u3067\u30c7\u30fc\u30bf\u7ba1\u7406\u3092\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u305d\u306e\u5834\u5408\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u7ba1\u7406\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5fc5\u9808\u5165\u529b\u3001\u306a\u3069\u3060\u3068\u6577\u5c45\u304c\u4e0a\u304c\u308b\u305f\u3081\u3001\u533f\u540d\u767b\u9332\u304c\u3067\u304d\u308b\u6a5f\u80fd\u3092\u6c42\u3081\u3066\u3044\u307e\u3057\u305f\u3002Firebase\u306b\u201d\u533f\u540d\u767b\u9332\u201d\u6a5f\u80fd\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\u5b9f\u88c5\u306f1\u884cSDK\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n(\u4e0a\u8a18\u30ad\u30e3\u30d7\u30c1\u30e3\u306e\u201d\u533f\u540d\u201d\u3068\u306a\u3063\u3066\u3044\u308b\u30a2\u30ab\u30a6\u30f3\u30c8)<\/p>\n<p>\u3055\u3089\u306b\u51c4\u3044\u306e\u304c\u3001\u3053\u306e\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u3092\u7c21\u5358\u306b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<code style=\"margin-top: 0px\">Auth.auth().currentUser?.link(with: credential(\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u60c5\u5831)) { (user, error) in {[\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u51e6\u7406\u306a\u3069]}<br \/>\n<\/code>\u3053\u308c\u3082\u305f\u3063\u305f1\u884c\u3067\u305d\u306e\u51e6\u7406\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2.\u4ed6\u306efirebase\u30b5\u30fc\u30d3\u30b9\u3068\u9023\u643a\u3057\u3066\u8a8d\u8a3c\u51e6\u7406\u306a\u3069\u304c\u7c21\u5358<\/h3>\n<p>Authentication\u306ffirebase\u3092\u4f7f\u3046\u306b\u3042\u305f\u308a\u30b3\u30a2\u306a\u6a5f\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nNotifications(push\u901a\u77e5)\u3084Functions(API\u30b5\u30fc\u30d3\u30b9)\u306a\u3069\u3082Authentication\u3068\u9023\u643a\u3059\u308b\u3053\u3068\u3067\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406\u30fb\u8a8d\u8a3c\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070Realtime Database\u3067\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u30eb\u30fc\u30eb\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u306e\u5834\u5408\u306e\u307f\u4f7f\u7528\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<code style=\"margin-top: 0px\">{\"rules\":{\".read\":\"true\" ,\".write\":\"true\"}}<br \/>\n\u2192\u8a8d\u8a3c\u304c\u3067\u304d\u3066\u3044\u308b\u5834\u5408\u306e\u307f\u306b\u4f7f\u7528\u3067\u304d\u308b\u8a2d\u5b9a<\/code>\u3053\u306e\u8a8d\u8a3c\u51e6\u7406\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u306f\u3001Authentication\u51e6\u7406\u3092\u3059\u308b\u3068\u3001\u81ea\u52d5\u3067\u30a2\u30d7\u30ea\u5185\u306bfirebase\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u304c\u4fdd\u5b58\u3055\u308c\u4f7f\u7528\u3067\u304d\u307e\u3059(\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u5834\u6240\u304c\u3088\u304f\u5206\u304b\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3002\u3002)\u3002<br \/>\n\u30fb\u4f8b\u3048\u3070\u30ed\u30b0\u30a4\u30f3\u306e\u51e6\u7406\u306e\u5834\u5408<code style=\"margin-top: 0px\">Auth.auth().currentUser?.link(with: credential(\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u60c5\u5831)) { (user, error) in {[\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u51e6\u7406\u306a\u3069]}<br \/>\n\u2192\u3053\u306e\u6642\u306b\u81ea\u52d5\u3067\u306b\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u304c\u4fdd\u5b58<\/code>\u30e6\u30fc\u30b6\u30fc\u306e\u7d30\u304b\u306a\u5c5e\u6027\u3084\u8a2d\u5b9a\u306f\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u7c21\u6613\u7684\u306b\u4f1a\u54e1\u7ba1\u7406\u3092\u3059\u308b\u306b\u306f\u3046\u3063\u3066\u3064\u3051\u3067\u3059\uff01<\/p>\n<h2>\u25a0RealTime Database (\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u6a5f\u80fd)<\/h2>\n<p>Realtime Database\u3068\u306fNoSQL\u5f62\u5f0f\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<br \/>\n\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u3082\u5229\u7528\u3067\u304d\u3001\u7aef\u672b\u9593\u540c\u671f\u3082\u3067\u304d\u308b\u3068\u3063\u3066\u3082\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u3002<br \/>\n\u30fb\ufffc\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762<br \/>\n<a href=\"https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-8.33.16.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-16579\" src=\"https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-8.33.16-1024x552.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-10-31 8.33.16\" width=\"840\" height=\"453\" srcset=\"https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-8.33.16-1024x552.png 1024w, https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-8.33.16-300x162.png 300w, https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-8.33.16-768x414.png 768w, https:\/\/vitalify.jp\/blog\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-31-8.33.16-1200x646.png 1200w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<h3>\u30fbRealtime Database\u3067\u3067\u304d\u308b\u3053\u3068<\/h3>\n<p>\u540d\u524d\u306e\u901a\u308a\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u30c7\u30fc\u30bf\u306e\u901a\u4fe1\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u304b\u3064\u8907\u6570\u7aef\u672b\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4e0a\u8ff0\u3057\u305f\u901a\u308a\u3001NoSQL\u5f62\u5f0f\u306e\u305f\u3081\u3001\u958b\u767a\u3059\u308b\u969b\u306f\u4e8b\u524d\u306b\u30c7\u30fc\u30bf\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304d\u3001\u305d\u308c\u306b\u5fdc\u3058\u305f\u30c7\u30fc\u30bf\u6295\u5165\u3001\u7de8\u96c6\u3001\u53d6\u5f97\u51e6\u7406\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u767b\u9332\u51e6\u7406\u3092\u3059\u308b\u3068\u304d\u306f\u3001<br \/>\nDatabase.database().reference().updateChildValues(\u201c\u914d\u5217\u30c7\u30fc\u30bf\u201d)<br \/>\n\u3060\u3051\u3067\u30c7\u30fc\u30bf\u767b\u9332\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u30fbrealtime database\u3067\u4fbf\u5229\u3060\u3068\u611f\u3058\u305f\u3053\u3068<\/h3>\n<h4>1.\u9ad8\u901f\u304b\u3064\u7c21\u5358\u306a\u767b\u9332\u30fb\u7de8\u96c6\u30fb\u524a\u9664\u51e6\u7406<\/h4>\n<p>\u4e0a\u8ff0\u3057\u305f\u901a\u308a\u3001\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u767b\u9332\u524a\u9664\u30fb\u7de8\u96c6\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\nNoSQL\u5f62\u5f0f\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u5f53\u7136\u30b9\u30d4\u30fc\u30c9\u306f\u9ad8\u901f\u3067\u3059\u3002<br \/>\n\u304b\u3064\u6307\u5b9a\u306e\u65b9\u6cd5\u3082<br \/>\nDatabase.database().reference().child(\u201dnode\u540d\u201d).child(\u201dnode\u540d\u201d).child(\u201dnode\u540d\u201d)\u2026.<br \/>\n\u3068child\u306e\u4e2d\u306b\u30ce\u30fc\u30c9\u540d\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3001\u3069\u306e\u5024\u304b\u3092\u9078\u3079\u307e\u3059\u3002<br \/>\n(\u305f\u3060\u3057NoSQL\u3067\u968e\u5c64\u304c\u6df1\u3044\u306e\u306f\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u305b\u3093)<\/p>\n<p>\u66f4\u306b\u5225\u306e\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u304c\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u7ba1\u7406storage\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u9023\u52d5\u3082\u7c21\u5358\u3067\u3059\u3002<br \/>\n\u753b\u50cf\u306e\u6295\u7a3f\u306a\u3069\u3082\u6570\u884c\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<br \/>\n\u8a73\u7d30\u306f\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u30fbFirebase Realtime Database<br \/>\n<a href=\"https:\/\/firebase.google.com\/docs\/database\/\" target=\"_blank\" rel=\"noopener\">https:\/\/firebase.google.com\/docs\/database\/<\/a><\/p>\n<h4>2.FirebaseUI\u3092\u4f7f\u3046\u3068\u7c21\u5358\u306b\u30ea\u30b9\u30c8\u5f62\u5f0f\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u540c\u671f\u6a5f\u80fd\u304c\u53ef\u80fd<\/h4>\n<p>\u6a5f\u80fd\u306e\u30e1\u30a4\u30f3\u304c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306a\u540c\u671f\u6a5f\u80fd\u306b\u306a\u308a\u307e\u3059\u304c\u3001firebase\u304cgithub\u4e0a\u3067\u3001<br \/>\n\u3055\u3089\u306b\u4fbf\u5229\u306b\u6d3b\u7528\u3067\u304d\u308bFirebaseUI\u3068\u3044\u3046\u30bd\u30fc\u30b9\u3092\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30fbFirebaseUI<br \/>\n<a href=\"https:\/\/github.com\/firebase\/FirebaseUI-iOS\">https:\/\/github.com\/firebase\/FirebaseUI-iOS<\/a><\/p>\n<p>\u4eca\u56de\u4f7f\u3063\u305f\u306e\u306f\u3001\u3053\u306e\u4e2d\u306e\u201dFUITableViewDataSource\u201d\u3068\u3044\u3046\u30af\u30e9\u30b9\u3067\u3059\u3002<\/p>\n<p>ios\u3067\u975e\u5e38\u306b\u9762\u5012\u306aTableView\u3092\u4f7f\u3063\u305f\u540c\u671f\u51e6\u7406\u306e\u5b9f\u88c5\u304c\u7c21\u6613\u306b\u3067\u304d\u307e\u3059\u3002<br \/>\n\u7d30\u304b\u3044\u8aac\u660e\u306f\u7701\u304d\u307e\u3059\u304c\u3001\u3053\u306eDataSource\u306b\u6307\u5b9a\u3057\u305f\u3044query\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u3001tableview\u306ecell\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<code style=\"margin-top: 0px\">FUITableViewDataSource = FUITableViewDataSource(query: self.query!) { (tableView, indexPath, snap) -&gt; UITableViewCell in<br \/>\nlet cell = tableView.dequeueReusableCell(withIdentifier: identifier, for: indexPath) as! CustomTableViewCell<br \/>\n\u301c\u30c7\u30fc\u30bf\u306e\u52a0\u5de5}}<\/code><\/p>\n<p>\u6570\u884c\u3092\u66f8\u304f\u3060\u3051\u3067\u3001\u7aef\u672b\u9593\u306e\u30c7\u30fc\u30bf\u540c\u671f\u30fb\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u540c\u671f\u304c\u3044\u3044\u611f\u3058\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<br \/>\n(ios\u306etableview\u306f\u975e\u5e38\u306b\u9762\u5012\u306a\u306e\u3067\u3082\u3063\u3068\u7c21\u5358\u306b\u3067\u304d\u308b\u30c4\u30fc\u30eb\u304c\u6b32\u3057\u3044\u3068\u3053\u3067\u3059)<\/p>\n<p>\u305d\u3093\u306a\u51c4\u3044Realtime Database\u3067\u3059\u304c\u3001\u4e0d\u4fbf\u306a\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30fb\u4e0d\u4fbf\u3060\u3068\u611f\u3058\u305f\u3053\u3068<\/h3>\n<p>\u8907\u96d1\u306a\u6761\u4ef6\u51e6\u7406\u306b\u306f\u4e0d\u5411\u304d\u3067\u3059\u3002<br \/>\nRDBMS(MySQL\u306a\u3069)\u306b\u6163\u308c\u3066\u3044\u308b\u3068\u3001\u69cb\u9020\u5316\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u611f\u899a\u3067\u8a2d\u8a08\u3059\u308b\u3068\u3046\u307e\u304f\u4f7f\u3048\u307e\u305b\u3093\u3002<br \/>\n(\u611f\u899a\u304c\u5168\u7136\u9055\u3044\u307e\u3059)<\/p>\n<p>\u4f8b\u3048\u3070\u30012\u3064\u306e\u6761\u4ef6\u3067\u306e\u7d5e\u308a\u8fbc\u307f\u3059\u3089\u9762\u5012\u3067\u3057\u305f\u3002<br \/>\n\u307e\u305a\u3001Realtime Database\u3067\u306f1\u3064\u306e\u6761\u4ef6\u3067\u3057\u304b\u7d5e\u308a\u8fbc\u307f\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u3002<br \/>\n\u305d\u306e\u305f\u3081\u30012\u3064\u4ee5\u4e0a\u306e\u6761\u4ef6\u3067\u7d5e\u308a\u8fbc\u307f\u3059\u308b\u969b\u306f\u3001\u30c7\u30fc\u30bf\u3092\u305d\u306e\u3088\u3046\u306b\u69cb\u9020\u5316\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3082\u7d30\u304b\u3044\u8aac\u660e\u306f\u7701\u304d\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u30c7\u30fc\u30bf\u69cb\u9020)<br \/>\n\u30fb\u6761\u4ef61\u306e\u30c7\u30fc\u30bf\u7fa41<br \/>\n\u30fb\u6761\u4ef61\u306e\u30c7\u30fc\u30bf\u7fa42<br \/>\n\u30fb\u6761\u4ef61\u306e\u30c7\u30fc\u30bf\u7fa43<br \/>\n\u3053\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u306b\u5bfe\u3057\u3066\u7d5e\u308a\u8fbc\u307f\u305f\u3044\u30c7\u30fc\u30bf\u7fa4\u3092\u6307\u5b9a\u3001\u305d\u306e\u30c7\u30fc\u30bf\u7fa4\u306b\u5bfe\u3057\u3066\u6761\u4ef62\u3067\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\nex)\u6761\u4ef61\u306e\u30c7\u30fc\u30bf\u7fa43\u306b\u5bfe\u3057\u3066\u6761\u4ef62\u3067\u7d5e\u308a\u8fbc\u307f<\/p>\n<p>\u3084\u308a\u305f\u3044\u3053\u3068\u306b\u3088\u3063\u3066\u306f\u5236\u7d04\u304c\u591a\u3044\u306e\u3067\u3001\u4f7f\u3046\u30dd\u30a4\u30f3\u30c8\u898b\u6975\u3081\u308b\u3053\u3068\u304c\u91cd\u8981\u305d\u3046\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u307e\u3068\u3081<br \/>\n\u30fb\u30e1\u30ea\u30c3\u30c8<br \/>\nBaas\u306e\u305f\u3081\u3001\u30b5\u30fc\u30d0\u30fc\u958b\u767a\u304c\u4e0d\u8981\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001firebase\u306a\u3069\u30b5\u30fc\u30d3\u30b9\u306b\u3088\u3063\u3066\u306f\u304b\u306a\u308a\u30ea\u30c3\u30c1\u306a\u6a5f\u80fd(\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u540c\u671f)\u306a\u3069\u304c\u5099\u308f\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u4f7f\u3044\u65b9\u6b21\u7b2c\u3067\u306f\u975e\u5e38\u306b\u30d1\u30ef\u30fc\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8<br \/>\n\u3053\u308c\u3082Baas\u306e\u305f\u3081\u3067\u3059\u304c\u3001\u4ed5\u69d8\u306e\u5236\u7d04\u306b\u3088\u3063\u3066\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30b5\u30fc\u30d3\u30b9\u306e\u898f\u6a21\u3084\u5185\u5bb9\u306b\u3088\u3063\u3066\u306f\u3042\u307e\u308aFit\u3057\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u3001\u5f53\u305f\u308a\u524d\u306e\u307e\u3068\u3081\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u516c\u958b\u3057\u305f\u30a2\u30d7\u30ea\u306f\u6065\u305a\u304b\u3057\u3044\u306e\u3067\u898b\u305f\u3044\u4eba\u306f\u500b\u4eba\u7684\u306b\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4eca\u56de\u7d39\u4ecb\u3057\u3066\u3044\u306a\u3044\u3067\u3059\u304c\u3001CloudFunctions\u306f\u304b\u306a\u308a\u4fbf\u5229\u305d\u3046\u306a\u306e\u3067\u3001\u6b21\u306f\u3053\u308c\u3067\u9055\u3046\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u307e\u305f\u3002<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/vitalify.jp\/blog\/2017\/11\/google-firebase%e3%81%ae-authentication%e3%80%81realtime-database%e3%81%a8%e3%81%af%ef%bc%9f-%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a8%e3%83%a1%e3%83%aa%e3%83%83%e3%83%88-iphone%e7%89%88.html\" layout=\"button_count\" action=\"like\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/vitalify.jp\/blog\/2017\/11\/google-firebase%e3%81%ae-authentication%e3%80%81realtime-database%e3%81%a8%e3%81%af%ef%bc%9f-%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a8%e3%83%a1%e3%83%aa%e3%83%83%e3%83%88-iphone%e7%89%88.html\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/vitalify.jp\/blog\/2017\/11\/google-firebase%e3%81%ae-authentication%e3%80%81realtime-database%e3%81%a8%e3%81%af%ef%bc%9f-%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a8%e3%83%a1%e3%83%aa%e3%83%83%e3%83%88-iphone%e7%89%88.html\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"google Firebase\u306e &#8220;Authentication&#8221;\u3001&#8221;Realtime Database&#8221;\u3068\u306f\uff1f \u4f7f\u3044\u65b9\u3068\u30e1\u30ea\u30c3\u30c8 \ufffc(iphone\u7248)\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_tumblr\"><a href=\"\/\/www.tumblr.com\/share?v=3&u=https%3A%2F%2Fvitalify.jp%2Fblog%2F2017%2F11%2Fgoogle-firebase%25e3%2581%25ae-authentication%25e3%2580%2581realtime-database%25e3%2581%25a8%25e3%2581%25af%25ef%25bc%259f-%25e4%25bd%25bf%25e3%2581%2584%25e6%2596%25b9%25e3%2581%25a8%25e3%2583%25a1%25e3%2583%25aa%25e3%2583%2583%25e3%2583%2588-iphone%25e7%2589%2588.html&t=google%20Firebase%E3%81%AE%20%26%238220%3BAuthentication%26%238221%3B%E3%80%81%26%238221%3BRealtime%20Database%26%238221%3B%E3%81%A8%E3%81%AF%EF%BC%9F%20%E4%BD%BF%E3%81%84%E6%96%B9%E3%81%A8%E3%83%A1%E3%83%AA%E3%83%83%E3%83%88%20%EF%BF%BC%28iphone%E7%89%88%29\" title=\"Share on Tumblr\" style=\"display:inline-block; text-indent:-9999px; overflow:hidden; width:81px; height:20px; background:url('\/\/platform.tumblr.com\/v1\/share_1.png') top left no-repeat transparent;\">Share on Tumblr<\/a><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/vitalify.jp\/blog\/2017\/11\/google-firebase%e3%81%ae-authentication%e3%80%81realtime-database%e3%81%a8%e3%81%af%ef%bc%9f-%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a8%e3%83%a1%e3%83%aa%e3%83%83%e3%83%88-iphone%e7%89%88.html\" data-text=\"google Firebase\u306e &#8220;Authentication&#8221;\u3001&#8221;Realtime Database&#8221;\u3068\u306f\uff1f \u4f7f\u3044\u65b9\u3068\u30e1\u30ea\u30c3\u30c8 \ufffc(iphone\u7248)\" data-lang=\"ja\">Tweet<\/a><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u6614cocos2d\u3067iphone\u30b2\u30fc\u30e0\u3092\u4f5c\u3063\u3066\u3044\u305f\u4e2d\u6751\u3067\u3059\u3002 \u6700\u8fd1\u307e\u305fiphone\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u3044\u307e\u3059\u3002 \u4f5c\u6210\u306b\u3042\u305f\u308afirebase\u306e\u300cAuthentication\u300d\u3001\u300cRealtime Database\u300d\u3092 &hellip; <a href=\"https:\/\/vitalify.jp\/blog\/2017\/11\/google-firebase%e3%81%ae-authentication%e3%80%81realtime-database%e3%81%a8%e3%81%af%ef%bc%9f-%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a8%e3%83%a1%e3%83%aa%e3%83%83%e3%83%88-iphone%e7%89%88.html\" class=\"more-link more_btn\"><span class=\"screen-reader-text\">&#8220;google Firebase\u306e &#8220;Authentication&#8221;\u3001&#8221;Realtime Database&#8221;\u3068\u306f\uff1f \u4f7f\u3044\u65b9\u3068\u30e1\u30ea\u30c3\u30c8 \ufffc(iphone\u7248)&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[44,1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/posts\/16621"}],"collection":[{"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/comments?post=16621"}],"version-history":[{"count":5,"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/posts\/16621\/revisions"}],"predecessor-version":[{"id":42330,"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/posts\/16621\/revisions\/42330"}],"wp:attachment":[{"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/media?parent=16621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/categories?post=16621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vitalify.jp\/blog\/wp-json\/wp\/v2\/tags?post=16621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}