본문 바로가기
HTTPS ? HTTP ? CORS / XMLHttpRequest Error ?? DB는 MSSQL 을 사용하고 Middle Ware? 인 API 는 ASP.NET CORE WEB API 를 사용하고 프론트는 Flutter 를 사용하여 개발을 하는데 ,,, 네트워크 통신중에 많은 문제들을 직면하여 정리해보려고 한다 .. Google map api 를 사용하는데 일단 Flutter web 에서 배포하여 사용하려면은 https 환경에서만 map이 가능한거같다 ?? 그래서 firebase 를 통하여 배포하여서 https 는 되었는데 ... 여기서 문제점은 https web server 에서 asp.net core web api 는 http 환경이기 때문에 https --> http 로 req를 보내게 되면 Cors 에러가 발생한다 ... 그래서 web api 부분에서 Cors 허용으로 하였.. 2024. 4. 10.
Flutter Firebase Binding has not yet been initialized. FlutterError (Binding has not yet been initialized. The "instance" getter on the ServicesBinding binding mixin is only available once that binding has been initialized. Typically, this is done by calling "WidgetsFlutterBinding.ensureInitialized()" or "runApp()" (the latter calls the former). Typically this call is done in the "void main()" method. The "ensureInitialized" method is idempotent; ca.. 2023. 9. 13.
Flutter Android Multidex Error 프로젝트파일 -> android/app/build.gradle defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.shin_book" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdkV.. 2023. 9. 13.
나만의 뽀모도로 만들기 #2. Flutter-FireBase 사용해보기 Firestore를 내 방식으로 표현하면 Collection 이 있고 그안에 Map 형식의 데이터들이 들어가있다 공식문서를 보고 정리할건데 일단 var db = FirebaseFirestore.instance; db 접근할수있는 변수를 만들고 // Create a new user with a first and last name final user = { "first": "Ada", "last": "Lovelace", "born": 1815 }; // Add a new document with a generated ID db.collection("users").add(user).then((DocumentReference doc) => print('DocumentSnapshot added with ID: $.. 2023. 9. 7.