Navigation

    EDU LEVEL DEVTH IDE FORUM
    USERNAME
    내 정보 수정 쿠폰 관리
  • 로그아웃
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    1. Home
    2. 유덕호
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    유덕호

    @유덕호

    5
    Level
    3
    Reputation
    7
    Posts
    168
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    유덕호 Follow

    Posts made by 유덕호

    • 웹뷰앱 뒤로가기

      웹뷰로 앱을 만들었습니다
      안드로이드에서는 뒤로가기 터치시 앱이 아에 꺼지는 현상이 있다고 해서

      import * as React from 'react';
      import { WebView } from 'react-native-webview';
      const webview = useRef<WebView>(null);
        
        const onAndroidBackPress = (): boolean => {
          if (webview.current) {
            webview.current.goBack();
            return true; // prevent default behavior (exit app)
          }
          return false;
        };
      
        useEffect((): (() => void) => {
          BackHandler.addEventListener('hardwareBackPress', onAndroidBackPress);
          return (): void => {
            BackHandler.removeEventListener('hardwareBackPress', onAndroidBackPress);
          };
        }, []); // Never re-run this effect
      export default class App extends React.Component {
        render() {
          return <WebView source={{ uri: 'https://1st-cafe.com/' }} style={{ marginTop: 20 }} />;
        }
      }
      

      찾아보고 참고하여 이렇게 했는데요
      expo build:android 로 앱을 받아서 실행하니 로딩화면만 나오고 앱이 종료됩니다
      구름ide에 실행으로 expo 앱으로도 해보았는데 작동하지 않네요..

      posted in 구름IDE 관련
      유덕호
    • firebase 질문입니다

      firebase 클라우드메세징을 이용하려고 하는데
      SDK를 설정하려고하는데 build.gradle 은 따로없는것인지?
      그리고 google-services.json 파일은 어디에 넣어야 하나요??
      firebase 설정에는 안드로이드 스튜디오상에 app/에 넣는다고 되어있는데
      구름ide에서는 어디인지.. 안드로이드 스튜디오를 쓰다가 약간 복잡한것 같아
      구름으로 다시 하고있거든요 ㅠㅠ..

      posted in 구름IDE 관련
      유덕호
    • 안녕하세요 firebase를 사용한 알림 질문입니다

      리액트네이티브를 이용하여 웹뷰앱은 완성했는데
      firebase를 통해서 알림을 앱으로 보내고 싶습니다
      제가 안드로이드 스튜디오만 해봐서..
      여기서는 초기설정을 어떻게 해야할지 모르겠네요;;
      안드스튜디오에서 적용하는 명령어가 다 사용가능한가요?
      install 은 가능한데 link 같은건 안되는거 같아서..
      설정좀 가르쳐주세요!

      posted in 구름IDE 관련
      유덕호
    • RE: 안녕하세요 에러확인좀 부탁드릴게요 ㅠㅠ

      @이기현-goorm
      답변감사합니다! 에러는 알려주신 답변으로 잘 해결되었는데
      expo build:android 를 하니

      Building JavaScript bundle [==========                                                      ] 15%
      <--- Last few GCs --->
      
      [3281:0x4db8540]   356910 ms: Mark-sweep (reduce) 506.7 (516.1) -> 504.8 (516.0) MB, 6903.7 / 0.1 ms  (average mu = 0.158, current mu = 0.043) allocation failure scavenge might not succeed
      [3281:0x4db8540]   364111 ms: Mark-sweep (reduce) 506.2 (513.7) -> 505.7 (515.2) MB, 6795.4 / 0.0 ms  (average mu = 0.109, current mu = 0.056) allocation failure scavenge might not succeed
      
      
      <--- JS stacktrace --->
      
      FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
       1: 0xa222f0 node::Abort() [node]
       2: 0x96411f node::FatalError(char const*, char const*) [node]
       3: 0xb97f1e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
       4: 0xb98297 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
       5: 0xd52fd5  [node]
       6: 0xd53b5f  [node]
       7: 0xd61beb v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
       8: 0xd657ac v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
       9: 0xd33e5b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
      10: 0x107c5af v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
      11: 0x1423279  [node]
      중지됨 (core dumped)
      

      이런 에러가 뜨는데 양이 좀 많네요..
      뭐가 문제인지 알수있을까요..??
      뭔가 힙 메모리 부족? 이라고 나오는거 같긴한데..확실히 모르겠네요 ㅠ

      posted in 구름IDE 관련
      유덕호
    • RE: 안녕하세요 에러확인좀 부탁드릴게요 ㅠㅠ

      @이기현-goorm

      {
        "expo": {
          "name": "1st-cafe",
          "slug": "1st-cafe",
          "version": "1.0.0",
          "orientation": "portrait",
          "icon": "./assets/icon.png",
          "splash": {
            "image": "./assets/sp.png",
            "resizeMode": "contain",
            "backgroundColor": "#ffffff"
          },
          "updates": {
            "fallbackToCacheTimeout": 0
          },
          "assetBundlePatterns": [
            "**/*"
      		],
          "android": {
            "adaptiveIcon": {
              "foregroundImage": "./assets/adaptive-icon.png",
              "backgroundColor": "#FFFFFF"
            }
          },
          "web": {
            "favicon": "./assets/favicon.png"
          },
          "packagerOpts": {
            "port": 51069
          }
        }
      },
      "ios": {
      		"bundleIdentifier": "com.BW.1st_cafe",
      		"buildNumber": "1.0.0",
      		"supportsTablet": true
          },
          "android": {
            	"package": "com.bw.1st_cafe",
            	"versionCode": 1
          }
      

      현재 코드입니다 ㅠㅠ

      posted in 구름IDE 관련
      유덕호
    • RE: 안녕하세요 에러확인좀 부탁드릴게요 ㅠㅠ

      감사합니다 알려주신대로 해보았는데```
      }
      ├─ File: /workspace/1st-cafe/app.json
      └─ Cause: SyntaxError: JSON5: invalid character ',' at 32:2
      30 | }
      31 | }

      32 | },
      | ^
      33 | "ios": {
      34 | "bundleIdentifier": "com.BW.1st_cafe",
      35 | "buildNumber": "1.0.0",

      , 찍은 곳에 에러가 있다고 뜨는것같네요 위에서부터 뭔가 잘못된걸까요..??
      posted in 구름IDE 관련
      유덕호
    • 안녕하세요 에러확인좀 부탁드릴게요 ㅠㅠ
      Error parsing JSON: {
        "expo": {
          "name": "1st-cafe",
          "slug": "1st-cafe",
          "version": "1.0.0",
          "orientation": "portrait",
          "icon": "./assets/icon.png",
          "splash": {
            "image": "./assets/sp.png",
            "resizeMode": "contain",
            "backgroundColor": "#ffffff"
          },
          "updates": {
            "fallbackToCacheTimeout": 0
          },
          "assetBundlePatterns": [
            "**/*"
          ],
          "ios": {
            "supportsTablet": true
          },
          "android": {
            "adaptiveIcon": {
              "foregroundImage": "./assets/adaptive-icon.png",
              "backgroundColor": "#FFFFFF"
            }
          },
          "web": {
            "favicon": "./assets/favicon.png"
          },
          "packagerOpts": {
            "port": 51069
          }
        }
      }
      "ios": {
            "bundleIdentifier": "com.bw.1st_cafe",
            "buildNumber": "1.0.0"
              "supportsTablet": true
          },
          "android": {
            "package": "com.bw.1st_cafe",
            "versionCode": 1
          }
      ├─ File: /workspace/1st-cafe/app.json
      └─ Cause: SyntaxError: JSON5: invalid character '\"' at 36:1
        34 |   }
        35 | }
      > 36 | "ios": {
           | ^
        37 |       "bundleIdentifier": "com.bw.1st_cafe",
        38 |       "buildNumber": "1.0.0"
        39 |  "supportsTablet": true
          ├─ parseJsonString /usr/lib/node_modules/expo-cli/node_modules/@expo/json-file/src/JsonFile.ts:187:13
          ├─ read /usr/lib/node_modules/expo-cli/node_modules/@expo/json-file/src/JsonFile.ts:144:10
          ├─ getStaticConfig /usr/lib/node_modules/expo-cli/node_modules/@expo/config/src/getConfig.ts:41:27
          ├─ getConfig /usr/lib/node_modules/expo-cli/node_modules/@expo/config/src/Config.ts:94:52
          ├─ new BaseBuilder /usr/lib/node_modules/expo-cli/src/commands/build/BaseBuilder.ts:30:26
          ├─ new AndroidBuilder /usr/lib/node_modules/expo-cli/src/commands/build/AndroidBuilder.ts:19:16
          ├─ program.command.alias.helpGroup.option.option.option.option.option.option.option.option.option.option.description.asyncActionProjectDir.checkConfig /usr/lib/node_modules/expo-cli/src/commands/build/index.ts:1
      70:32
          └─ expo build:android /usr/lib/node_modules/expo-cli/src/exp.ts:350:7
      

      이렇게 뜨는데 어떤에러인지 ㅁ잘 모르겠어서 ㅠㅠ

      posted in 구름IDE 관련
      유덕호
    • 1 / 1
    goorm
    상호 : (주)구름    대표 : 류성태    개인정보보호책임자 : 김현화
    경기 성남시 분당구 판교로 242 PDC A동 902호
    사업자등록번호 : 124-87-39200
    통신판매업신고번호 : 제2019-성남분당B-0224호
    TEL : 031-600-8586    Email : contact@goorm.io
    • 구름EDU
    • 구름LEVEL
    • 구름DEVTH
    • 구름IDE
    • 구름FORUM
    ⓒ goorm Inc. All Rights Reserved.
    채용 이용약관 개인정보처리방침 도움말 powered by nodeBB