Todd Kerpelman
ãããããã¼ ã¢ããã±ã¼ã
ææ°ãã¤æé«ã®ãã¯ããã¸ã¼ãå°å
¥ããç°å¢ã§、èªèº«ã®ã¢ããªãæ£ããåä½ããããã¨ã¯é常ã«éè¦ã§ã。iOS éçºã«ã¤ãã¦è¨ãã°、è¿ã
ãªãªã¼ã¹ããã iOS 10 åãã«ã¢ããªããµãã¼ããããã¨èãã¦ãããããããã¼ã®æ¹ãå¤ãã¨æãã¾ã。
Firebase ãã¼ã ã§ã¯、iOS 10 ãä¸è¬å
¬éããã¦ããã«、ãããããã¼ã®çæ§ãèªèº«ã®ã¢ããªã iOS 10 ä¸ã§å®è¡ã§ããããã«æºåãé²ãã¦ãã¾ã。æ¬è¨äºã§ã¯、Firebase CocoaPod ã®ææ°ãã¼ã¸ã§ã³(3.5.1)ã«ãããå¤æ´ç¹ãæ¹ãã¦ç´¹ä»ãã¾ã。ãããã¦、ä»å¾äºå®ããã¦ããå¤æ´ç¹ã®ãã¡、iOS 10 åãã®éçºãå§ããã«ãããå½±é¿ãããå
容ã«ã¤ãã¦ãä¼ããã¾ã。
Dynamic Links、Invites、App Indexing
ææ°çã® Firebase ã©ã¤ãã©ãªã§ã¯、iOS 10 åãã®ãã£ã¼ããªã³ã¯æ©è½ãæ°ãã«ãµãã¼ãããã¦ãã¾ã。èªèº«ã®ã¢ããªã§ Dynamic Links、Firebase Invites、App Indexing ãªã©ã®ãã£ã¼ããªã³ã¯ãæ´»ç¨ããæ©è½ã使ç¨ãã¦ããå ´åã¯、ã©ã¤ãã©ãªãææ°çã«æ´æ°ãã¦ãã ãã。ãããã®æ©è½ã¯、(ã³ã¼ããå¤æ´ããªãã¦ã)ã¢ããªãåãã«ãããã ãã§æ£ããåä½ããããã«ãªãã¾ã。
Firebase Analytics
Firebase SDK ã®ææ°çã§ã¯、æ¤ç´¢æ©è½ã¨é£åãã AdWords åºåçµç±ã§ã®ã¢ããªã®ã¤ã³ã¹ãã¼ã«ç¶æ³ã、ããæ£ç¢ºã«ãã©ãã¯ã§ããããã«ãªã£ã¦ãã¾ã。ãã®æ©è½ã¯ Firebase SDK ã®ãã¼ã¸ã§ã³ 3.3.0 ã§è¿½å æ¸ã¿ãªã®ã§、æ¢ã«ãåãã®æ¹ãããã¨æãã¾ãã、ä»åã¯ããã« iOS 10 åãã®ãµãã¼ãã追å ãã¦ãã¾ã。ä¸è¿°ã®ãã£ã¼ããªã³ã¯æ©è½ã®æ´æ°ã¨åæ§ã«、æ°ããã©ã¤ãã©ãªãç¨ãã¦ã³ã¼ããåãã«ãããã¨、èªåçã«æ°æ©è½ãæå¹ã«ãªãã¾ã。
Firebase Cloud Messaging
iOS 10 ã§ã¯éç¥é¢é£ã®æ©è½ã大å¹
ã«é²åãã¦ãã、ãããããã¼å´ã§åä¿¡ããã¦ã¼ã¶ã¼éç¥ãå¦çããããã®æ°ããªæ¹æ³ãæä¾ããã¦ãã¾ã。å
·ä½çã«ã¯、
application:didReceiveRemoteNotification
ãªã©ã®å¤ã
UIApplicationDelegate
ã¡ã½ããã®å»æ¢ã«ä¼´ã、
UNUserNotificationCenterDelegate
ãããã³ã«ã®ã¡ã½ããã§éç¥ãå¦çããããã«ãªã£ã¦ãã¾ã。
ãã ã、ãæ°ã¥ãã®æ¹ããããã¨æãã¾ãã、Firebase SDK ã®ææ°çã§ã¯、ã¾ã å¤ã appDelegate ã¡ã½ããã使ç¨ãã¦ãã¾ã。æ°ãã
UNUserNotificationCenterDelegate
ãããã³ã«ã®ã¡ã½ããã«ã¤ãã¦ã¯、è¿ã
ãµãã¼ããéå§ã§ããããã«åªãã¦ãã¾ã。ã©ã¤ãã©ãªãæ´æ°ããéã¯ãç¥ãããã¾ãã®ã§、ä»å¾ã®é
ä¿¡æ
å ±ããã§ãã¯ãã¦ããã¦ãã ãã。
Firebase Auth 㨠Xcode 8 ã«é¢ãããç¥ãã
ææ°ã® iOS 10(ãã®è¨äºãæ¸ãã¦ããæç¹ã§ã¯ ãã¼ã¿ç 6 ã¾ã§)ã®ã·ãã¥ã¬ã¼ã¿ã§ã¯、ãã¼ãã§ã¼ã³ã«å¤ãæ¸ãè¾¼ãã、Firebase Auth ãã¨ã©ã¼ãè¿ãã¨ããåé¡ãçºçãããã¨ãå¤æãã¦ãã¾ã。ãªã、ãã®åé¡ã«ããå®æ©ã¸ã®å½±é¿ã¯ããã¾ãã。
æ¬ä»¶ã¯、æ¢ã« Apple ã®ãã° ãã©ããã³ã° ã·ã¹ãã ã«å ±åæ¸ã¿ã§ãã®ã§、è¿ããã¡ã«è§£æ±ºãããã¨è¦è¾¼ã¾ãã¾ãã、ããã¾ã§ã¯ã·ãã¥ã¬ã¼ã¿ã§ Firebase Auth ã®è©¦é¨ãå®æ½ããã¨、ã¨ã©ã¼ãçºçããå¯è½æ§ãããã¾ã。ãã®åé¡ãåé¿ããæ¹æ³ã¨ãã¦、Auth ã®è©¦é¨ã¯ iOS 10 ãæè¼ãããå®æ©ã§å®æ½ãããã¨ããå§ããã¾ã。å®æ©ããæã¡ã§ãªãå ´åã¯、
ã¢ããªã® Capabilities ã»ã¯ã·ã§ã³ã§ Keychain Sharing ãæå¹ã«ãã¦ãã ãã。 詳ããã¯
StackOverflow ã®æ稿ãã覧ãã ãã。
Swift 3 対å¿
æ¢ã«ãæ°ã¥ãã®æ¹ãããããããã¾ããã、ããã¥ã¡ã³ãã®ãµã³ãã«ã³ã¼ãã§ã¯、ã¾ã Swift 2.3 ã使ç¨ãã¦ãã¾ã。Swift 3 ã¯ç¾å¨ãéçºä¸ã§ãããã、ãã¼ã¸ã§ã³ 3.0 ãæ£å¼ã«ãªãªã¼ã¹ããã¦ãã、ããã¥ã¡ã³ãå
ã®ãµã³ãã«ã³ã¼ããå
¥ãæ¿ããäºå®ã§ã。
ãã¡ããç¾æ®µéã§、Swift 3 ã§ãµã³ãã«ã®åä½ã試ããã¨ãå¯è½ã§ã。ææ°ã®ãµã³ãã«ã³ã¼ãããã¦ã³ãã¼ããã¦、Xcode ã® Swift å¤æãã¼ã«ã§ãµã³ãã«ãå¤æããã¨、ãå©ç¨ããã ãã¾ã。ã¾ã、è¿æ¥ä¸ã«ãµã³ãã«ã¢ããªç¨ã« Swift 3 ã®å°ç¨ãã©ã³ããä½æããäºå®ã§ã。ãã¡ãã®ãã©ã³ãã GitHub ãããã§ãã¯ã¢ã¦ãããã°、å¤æå¦çãããªãã¦ãã½ã¼ã¹ã³ã¼ããã覧ããã ãã¾ã。
ãã£ã¼ãããã¯ããå¾
ã¡ãã¦ãã¾ã
ä»åã¯、ãã¼ã¿çã®ãªãã¬ã¼ãã£ã³ã° ã·ã¹ãã åãã«ã©ã¤ãã©ãªããªãªã¼ã¹ãã¦ãããã、åä»ãªåé¡ãçºçãããã¨ãè¦è¾¼ã¾ãã¾ã。iOS 10 ã®æ°ãã¼ã¸ã§ã³å
¬éã«ä¼´ã、ãã¾ãã¾ãªä¸å
·åãæ¤åºãããéã¯、ã§ããã ãè¿
éã«æ¹ä¿®ããããåªãã¦ã¾ããã¾ã。çæ§ã®æ¹ã§ã iOS 10 åºæã®åé¡ãçºè¦ãã¾ããã、ãã²ãç¥ãããã ãã。ã¾ãã¯
Google ã°ã«ã¼ã ããæ´»ç¨ãã ãã。
Posted by
Khanh LeViet - Developer Relations Team