Dev 283

[iOS/Flutter]Push Notification 이 전송되지 않는 문제

해당 이슈는 Flutter 로 개발하면서 발생하는 이슈를 기록 합니다. [이슈] FCM의 Messaging 기능에서 테스트 메시지 전송 기능으로 테스트 메세지를 보내면 Push Notification 가 전달되는데, Firebase Functions 에서 혹은 로컬에서 Emulator 로 Firebase 모듈에서 제공하는 API 를 통해서 Push 를 보내면 iOS Device 에 Push Notification 오질 않는다. [해결] 원인은 정확하게 모르겠으나 결과론적으론 빌드 형태가 문제인걸로 판단된다. Debug 모드로 빌드를 하면 FCM의 Messaging 기능에서 테스트 메세지 전송 기능으로 테스트 Push Notification 은 동작하지만 서버에서 코드로는 Push Notification ..

Dev/iOS 2022.03.23

Xcode 와 iOS Device 번이 맞지 않아서 생기는 오류

원인 나의 실수(?)로 iPhone 버전을 최신으로 올려버려서 Xcode 버전이 호환이 되지 않는 문제가 발생했다.... 내용 Terminal 에서 flutter doctor 명령어로 나온 이슈 [✓] Connected device (1 available) ! Error: Failed to prepare device for development. This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibi..

Dev/iOS 2022.03.17

Android 폰에 GMS 가 없다니?!

디바이스에 GMS 가 없을 경우에 Logcat 에 다음과 같이 찍혀나올 것이다. - Failed to find package android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms - Google Play services missing or without correct permission. 처음에는 권한 이슈 클래스 문제인가 라고 생각했다. 그러나 자세히 보니 GMS 가 없다라는 것을 알게 되었다. 현재 중국에서 개발한 Androis OS 가 탑재된 하드웨어어는 깡통 Android OS 이다. 그래서 익히 알고 사용하고 있는 Google 서비스들이 없다. FCM 를 사용하해서 Push Message 를 받으려고 했다...

Dev/Android 2022.03.04

Firebase Functions - FCM Push Message

Firebase 서비스 계정 : node.js 에서 FCM Push 를 보내기 위해서 필요한 계정 index.js const functions = require("firebase-functions"); const admin = require("firebase-admin"); const express = require("express"); const cors = require("cors"); const app = express(); app.use(cors({ origin: true })); app.use(require("./routes/sendmessage.routes")); exports.app = functions.https.onRequest(app); /** router 사용하지 않고 index.js..

Dev/Firebase 2022.02.15

Android - E/AndroidRuntime: FATAL EXCEPTION: grpc-okhttp-0

안드로이드에서 라이브러리 최신으로 올리면서 발생한 이슈 여러개의 라이브러리 버전을 업하다보니 정확히 무엇때문에 발생했는지 찾기에는 시간이 걸려서 패스 일단은 원인은 아래와 같다고 나왔기 때문에 해당 부분에 대해서 조치를 했다 이슈 2022-02-11 11:24:07.381 6651-6740/com.healthyryu.test.debug E/AndroidRuntime: FATAL EXCEPTION: grpc-okhttp-0 Process: com.healthyryu.test.debug, PID: 6651 java.lang.AssertionError: Method getAlpnSelectedProtocol not supported for object SSL socket over Socket[address=f..

Dev/Error 2022.02.11

Flutter - Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.

내용 : Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. 해결책 1. Go to /ios folder inside your Project. 2. Delete Podfile.lock (YourPoject/ios/Podfile.lock) 3. Here you have to do it according to the chip of your Mac, here I have given for both. thanks @Kamal Panara for identified this For Intel chip users Run pod install --repo-update (Make sure your cd into the iOS d..

Dev/Flutter 2022.02.08