전체 글 210

react-native-push-notification 진동/무음모드 시 알람 울리기

⭐️ Native 코드 수정을 통한 해결방법 ⭐️1. 환경react-native: 0.61.5react-native-push-notification: 4.0.0 2. 문제위 라이브러리를 이용해서 알람앱을 만들었다.하지만 안드로이드 기기에서 진동/무음모드를 설정하면 알람음을 설정해놔도 울리지 않았다.나의 코드는 이렇다.import PushNotification, { PushNotificationScheduleObject } from 'react-native-push-notification'; const date = new Date(); date.setMinutes(date.getMinutes() + 1); // 1분 뒤에 알람 울리도록 const scheduleObj: PushN..

[Google Play Console] 게시 취소했다가 다시 심사제출했는데 출시가 안되는 경우

1. 나의 상황- 1.0.0 버전을 심사제출해서 플레이스토어에 올라갔다가 다시 게시취소했고, 바로 1.1.0 버전을 다시 심사제출했는데, 플레이콘솔에는 '출시되지 않음' 이라는 글씨만 보임.  1-1. 참고- 이곳을 보고 게시취소 했음.https://grahams.tistory.com/170 [플레이 스토어]내 앱 서비스 중지 방법출시된 앱을 상황에 따라 임시로 내릴 경우도 있겠죠? 오늘은 제가 알아봤던 방법을 알려드릴게요. 막상 알고나면 참 별거 아닌데, 처음 볼땐 참 헷갈려요. UI가 인식하기 좀 어렵게 만든것 같아�grahams.tistory.com2. 해결다시 '가격 및 배포' 탭으로 가서 출시 버튼을 눌러주면 된다.

스플래시 스크린 작동 안함 / Splash Screen not working

0. 환경react-native: 0.61.5react-native-splash-screen: 3.2.0 auto link  1.  이렇게 xcode에 스플래시 이미지 넣어줬는데 안먹힌다. 2. 해결법ddodak.tistory.com/7 iOS Splash Image 적용하기 (react-native-splash-screen)" data-og-description="아래 내용은 iOS에 대해서만 다루고 있습니다. ( android 적용은 타 블로그를 따라하면 쉽게 할 수 있기에..😂 ) ⏰모두의 시간은 소중하니까요 react-native-splash-screen를 이용하여 iOS에 스플래쉬 이미" data-og-host="ddodak.tistory.com" data-og-source-url="https..

react-native-push-notification: Android에서 custom sound가 안울림 / android userInfo 오류

react-native-push-notification: Android에서 custom sound가 안울림 / android userInfo 오류1. channel이 2개가 있는데 앱 내 설정된 소리로 있는 그 채널말고 다른 채널이 하나 더 있다. 그게 자꾸 울리는 것 같다...... 2. library 3.4.0 -> 3.5.2 로 업그레이드 3. 경로 다시 설정.    .mp3 없이. 그래도 안됨https://github.com/zo0r/react-native-push-notification/issues/1432 Android - No sound on notifications? · Issue #1432 · zo0r/react-native-push-notificationBug Using {playSou..

apk 설치하면 알 수 없는 크래시

- debug에선 괜찮은데... release는 !!!!! 1. https://stackoverflow.com/questions/54634072/react-native-signed-release-apk-keeps-crashing-in-device React-native (Signed) release apk keeps crashing in deviceI created a signed react-native apk after following all the documents from the official react native documentation ( i.e. https://facebook.github.io/react-native/docs/signed-apk-android ). After cr...st..

KeyboardAvoidingView를 쓰지 않았는데도 키보드가 레이아웃에 영향을 줄 때

- 원인: 안드로이드는 기본 설정이 adjustResize라 그렇다. adjustNothing으로 바꿔주면 된다. 아래 블로그를 참고하자! https://brunch.co.kr/@hopeless/5 [Android] 키보드가 레이아웃에 영향 안 주게하기레이아웃을 짜다 보면 소프트 키보드가 레이아웃을 덮어 버려야 하는 경우도 있고, 밀고 올라와야 되는 경우도 있습니다. 아래 그림은 소프트 키보드가 광고영역을 밀고 올라가는 경우입니다. �brunch.co.kr

안드로이드 에뮬레이터 오프라인일 때 / Emulator Offline

- 문제: adb devices를 해보면 안드로이드가 오프라인 상태이다. 온라인 상태로 돌리고 싶을때- 해결법: 안드로이드 스튜디오 실행 - Configure - AVD manager - 실행하려는 에뮬레이터의 Actions 탭 - Wipe Data 클릭데이터를 싹 밀고 다시 실행하면 된다!   출처https://athilog.github.io/react-native/%EA%B0%9C%EB%B0%9C%ED%99%98%EA%B2%BD%EA%B5%AC%EC%84%B1/ 개발환경 구성 - 아띠의 개발블로그아띠의 개발일지athilog.github.io

[React Native] react-navigation 화면이 포커스되었을 때를 감지하기 & 특정 화면에서 돌아왔을 때 api 호출하기

1. To DoA screen에서 B screen으로 navigate한 후 다시 A로 goBack했을 때 goBack한 순간 A screen에서 api 호출을 다시 해야한다.(C screen에서 A screen으로 오면 아무것도 하지 않는다) 2. How To2-1. react navigation 활용 (해결책x)https://reactnavigation.org/docs/function-after-focusing-screen/ React NavigationIn this guide we will call a function or render something on screen focusing. This is useful for making additional API calls when a user revi..

앱 종료 시 푸시 알림 클릭했을 때 초기 렌더링이 2번 발생하는 문제

문제초기 렌더링이 2번 되는 문제 발생https://github.com/erikras/react-redux-universal-hot-example/issues/429 componentDidMount called twice for initial load · Issue #429 · erikras/react-redux-universal-hot-exampleHey, the method componentDidMount is called twice on the client, when initially accessing any route e.g. localhost:3000/login (I see this in the browser console logs when adding something like cons...g..

출처: https://mingos-habitat.tistory.com/34 [밍고의서식지:티스토리]