KARTE Friends StoryCXï¼é¡§å®¢ä½é¨ï¼ãã©ãããã©ã¼ã ãKARTEãããå©ç¨é ãã¦ããã客æ§ï¼KARTE Friendsï¼ã«ããCXåä¸ã®ã¹ãã¼ãªã¼ã è¨äºä¸è¦§
ããã·ã¥éç¥ã§ãç¿æ £åãä¿é²ããããç¶ç¶çã5ï¼ ã«ã¤ã¼ã³ãæ°æã¡ãé«ã¾ãç¬éã«ãããã§ã¨ãããªã©ã§å訪ç1.4åãReproãèªãããã·ã¥éç¥ã¨ã¢ããªå ã¡ãã»ã¼ã¸ã Reproã®ã«ã¹ã¿ãã¼ãµã¯ã»ã¹ã®æ¹ã«ãããã·ã¥éç¥ã¨ã¢ããªå ã¡ãã»ã¼ã¸ãã®å¹æãé«ãã工夫ãèãã¾ããã â» æ¬è¨äºã¯Reproæ ªå¼ä¼ç¤¾ãããä¾é ¼ãåãã¦å·çããPRè¨äºã§ããè¨äºã®æå¾ã«ãããã·ã¥éç¥ã®ãã§ãã¯ã·ã¼ããçã®ç¡æDLã®åç¥ãããã¾ãã Reproæ ªå¼ä¼ç¤¾ Customer Success Division Team Manager 岸è£ä¹ããããã·ã¥éç¥ã¨ã¢ããªå ã¡ãã»ã¼ã¸ãããã·ã¥éç¥ã¨ã¢ããªå ã¡ãã»ã¼ã¸ã¯ãç¹å¾´ã«åããã¦ä½¿ãåãããã¨ã§ãã¢ããªã®ææ¨ãé«ãããã¨ãã§ãã¾ãã å³å¹æ§ãé«ãã®ã¯ã課éãè³¼å ¥ãªã©ã®ãã³ã³ãã¼ã¸ã§ã³ã«è¿ãã¨ãããã¨ãé¢è±ãªã©ã®ãè½ã¡å¹ ã®å¤§ããã¨ããããè¦ã¤ãã¦ãæ½çãæã¤ãã¨ã§ãã
ã¯ããã«ãµã¼ã(Node.js)ããããã·ã¥éç¥ãéä¿¡ããæ¹æ³ã¨ãã¦ãfirebase-admin ã使ã£ã¦ç°¡åãªããã·ã¥éç¥ãéä¿¡ããæ¹æ³ãæ´çããã é¢é£: Vue + Cordova + Firebase ã§ããã·ã¥éç¥ TL;DR firebase-admin ãã¤ã³ã¹ãã¼ã«ãç§å¯éµãã¡ã¤ã«ããã¦ã³ãã¼ã ç°å¢å¤æ° GOOGLE_APPLICATION_CREDENTIALS ãè¨å®(direnv 使ãã¨ä¾¿å©) initializeApp, Messaging.send ã§ããã·ã¥éç¥ éä¿¡
Androidã¹ãã¼ããã©ã³ã®ãæ ¢æ§çãä¸å ·åãåé¡ã¨ãã£ã¦ãéè¨ã§ã¯ãªãæ§ã ãªã¢ããªããã®éç¥ãæ¥ãªããé³´ããªãã¨ãã£ãçç¶ã å½å ã§ã¯LINEãGmailã§ã®çç¶å ±åãå§åçã«å¤ãã®ã§ãããåæ§ã®å ±åã¯æµ·å¤ã§ãå¤æ°è¦ããã¾ãã ã¾ããGmailã«ã¤ãã¦ã¯å½å ã§ã¯Xperiaã¦ã¼ã¶ã¼ãç¹ã«Xperia 1 IIIã®ã¦ã¼ã¶ã¼ããã®å ±åãç®ç«ã¡ã¾ãããããããããã¯åç´ã«ã¦ã¼ã¶ã¼æ°ã¨æ¯ä¾ãã¦ããã ãã ã¨æããã¾ãã ç§ãå°ãªãã¨ãéå»æ°ãæãåæ§ã®çç¶ã«æ©ã¾ããã¦ããã®ã§ãããããæè¿ãRedditä¸ã§èå³æ·±ãæ稿ãçºè¦ã ãã®æ å ±ãåºã«è¨å®ãå¤æ´ããã¨ãããä»ã®ã¨ããã¯LINEãGmailãåé¡ãªãéç¥ãæ¥ãããã«ãªãã¾ããã Androidã§LINEãGmailã®éç¥ãæ¥ãªãåé¡ã®æ¹åæ¹æ³ æ¹åæ¹æ³ãã¨ã¯è¨ã£ããã®ã®æé ã¯ããã£ã¦ç°¡åããéç¥ã®èªå調æ´ãããªãã«ããã ãã§ãã è¨å®ã¢ããª
FCMï¼Firebase Cloud Messagingï¼ã®Pushéç¥ããã¢ããªããã©ã¢ã°ã©ã¦ã³ãã®ç¶æ ã§åå¾ããæ¹æ³ã ãã ããFlutterã®Androidã®ã¿åä½ç¢ºèªæ¸ã¿ãã¾ããPushéç¥ã¿ããæã®å¦çã«ã¤ãã¦ã¯è¨è¼ãã¦ããªãã å®è£ â pubspec.yamlã«ä»¥ä¸ã追å ããPub Getãã dev_dependencies: flutter_test: sdk: flutter firebase_core: ^1.3.0 cloud_firestore: ^2.2.2 firebase_messaging: ^10.0.2 // add flutter_local_notifications: ^6.0.0 // add â¡FlutterLocalNotificationsPluginãå®ç¾©ãã final FlutterLocalNotificationsPlugin f
ããã·ã¥éç¥ã®åä¿¡å®è£ ä»åã¯ãã¿ã¤ãã«éãAndroidã®ã¿ã®å®è£ æ¹æ³ç´¹ä»ã§ãã ãã ãiOSããAndroidã«ããã·ã¥éç¥ãéä¿¡ããã¨ããã¾ã§ç¢ºèªã§ãã¾ããã ç°å¢ $ flutter doctor [â] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.6 19G2021, locale ja-JP) [â] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [â] Xcode - develop for iOS and macOS (Xcode 12.0) [â] Android Studio (version 4.1) [â] VS Code (version 1.53.2) ä»åä½æããFlutterããã¸ã§ã¯ãã®And
1. ã¯ããã« Flutterã®é²åã¯ç®ã¾ããããã§ããããä»å¹´ã®5æã«ã¯Flutter2ããªãªã¼ã¹ããã å æ¥ã®v2.2ã®ãªãªã¼ã¹ã§ã¯ã 主è¦ãªFirebaseé¢é£ã®ãã©ã°ã¤ã³ãã¢ãããã¼ãããã¾ããã ããã·ã¥éç¥ãéããFirebaseCloudMessaging(以ä¸FCM)ãã©ã°ã¤ã³ã§ããfirebase_messagingããã®ä¾å¤ã§ã¯ããã¾ãããv9ããv10ã¸ã®ã¢ãããã¼ãã«ä¼´ããAPIã大ããå¤ããã¾ããã Flutter2ã使ç¨ããããã«ã¯ãFCMãã©ã°ã¤ã³ãææ°ã«ããªãã¨ãããªãããã対å¿ã«è¿½ããã¦ãæ¹ãå¤ãã¨æãã¾ããæ®å¿µãªããããããä¸ã®è§£èª¬è¨äºã¯firebase_messaging v9以åã®æ§APIã®ãã®ãå¤ããããåèã«ãªãã¾ããã
FCM (Firebase Cloud Messaging) ã®ããã·ã¥éç¥è¨å®ã¨ããã·ã¥éç¥ãåä¿¡ãã Flutter ã¢ããªãå®è£ ãã¾ãã çè 㯠Flutter åå¦è ã®çºãã¢ãã¤ã«ã¢ããªã®ããã·ã¥éç¥ã®è¨å®ã大å¤ã§ããã ç¹ã« iOS ã®è¨¼ææ¸å¨ãã®ä½æ¥ã¯éª¨ãæããã®ã§ããªãã¹ãã¹ã¯ã·ã§ãå¤ãã«ãã¦åããããã解説ã§ããã°ã¨æãã¾ãã ããå 容ã®èª¤ããããã£ã¨ããããããæ¹ãããããã¨ããæ¹ã¯ Twitter 㧠DM ãã¦ããã ãã Contact ã§é£çµ¡ãã¦é ããã¨å¤§å¤å©ããã¾ãã è¨äºãé·ããªã£ãã®ã§ãè¨å®ç·¨ã¨ã¢ããªå®è£ ç·¨ã®åå¾ç·¨ã«åãã¾ããã ã¢ããªã®å®è£ ç·¨ã®è¨äºã¯ãã¡ãã«ãªãã¾ãã ä»å㯠Firebase ã®ããã¸ã§ã¯ãä½æãã FCM ã® iOS/Android è¨å®ã¾ã§ããç´¹ä»ãã¾ãã ç°å¢macOS Big Sur 11.2.1Android Studio 4.1
FCM (Firebase Cloud Messaging) ã®ããã·ã¥éç¥è¨å®ã¨ããã·ã¥éç¥ãåä¿¡ãã Flutter ã¢ããªãå®è£ ãã¾ãã åå Firebase ã®ããã¸ã§ã¯ãè¨å®ãã iOS/Android ã® FCM è¨å®ã解説ãã¾ããã åå¦è ã«ã¨ã£ã¦æåã®å£ã® iOS ã®è¨¼ææ¸å¨ãã詳ãã解説ãã¦ããã®ã§ãã¾ã è¨å®ãçµãã£ã¦ããªãæ¹ã¯æ¯éãã¡ãã®è¨äºãã覧ãã ããã çè 㯠Flutter åå¦è ã®çºããå 容ã®èª¤ããããã£ã¨ããããããæ¹ãããããã¨ããæ¹ã¯ Twitter 㧠DM ãã¦ããã ãã Contact ã§é£çµ¡ãã¦é ããã¨å¤§å¤å©ããã¾ãã ããã§ã¯ã¢ããªã®å®è£ ãã¿ã¦ããã¾ãããã ç°å¢macOS Big Sur 11.2.1Android Studio 4.1.2Flutter 2.0.0Dart 2.12.0åæä»åã¯ãã¡ãã® Firebase Messagin
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}