본문 바로가기

반응형
SMALL

분류 전체보기

반응형
LIST
(57)

FlatList 에서 TouchableOpacity 동작 안하는 오류 FlatList 내 아이템은 TouchableOpacity로 구현해놨는데 onPress가 간헐적으로 동작 했다 해결 방법은 TouchableOpacity를 react-native-gesture-handler 껄로 import 해서 사용하면 됨 import { TouchableOpacity } from "react-native-gesture-handler";   }>                 해결 ~!
[ React Native ] pod install 시 Invalid Podfile file: cannot load such file -- node_modules/react-native/scripts/react_native_pods.rb pod install 을 하면 계속 아래 오류가 났다 [!] Invalid Podfile file: cannot load such file -- /Users/yrlee/Documents/reactNative/NativeCLITest/node_modules/react-native/scripts/react_native_pods.rb Debugger attached. Waiting for the debugger to disconnect....  # from /Users/yrlee/Documents/reactNative/NativeCLITest/ios/Podfile:2 # ------------------------------------------- # # Resolve react_native_pods.rb w..
[ios/swift] 웹뷰 내 마이크 실행 웹에서 mdn web speech api 이용해 음성인식 기능 구현된 상태 wkwebview 에서도 마이크 동작되게 하려면 1. info.plist 에 추가NSMicrophoneUsageDescription.......NSSpeechRecognitionUsageDescription........ >> NSMicrophoneUsageDescription 만 추가했을때 마이크가 동작 안되다가 NSSpeechRecognitionUsageDescription 도 추가 하니 마이크가 동작됐다. gpt 한테 물어보니 web speech api 이용하려면 NSSpeechRecognitionUsageDescription 도 추가해야한다고 함. 2. wkwebview 함수 추가    @available(iOS 15, *..
[android/kotlin] 웹뷰 내 마이크 실행 웹에서 mdn web speech api를 이용해 음성인식 구현되어져 있는 상태 안드로이드 앱 내 웹뷰에서도 동작 구현되도록 하려면 1.  AndroidManifest.xml에 마이크 권한 추가     2. webChromeClient 에 onPermissionRequest 함수 추가    @Override    public void onPermissionRequest(final PermissionRequest request) {        for (String resource : request.getResources()) {            if (PermissionRequest.RESOURCE_AUDIO_CAPTURE.equals(resource)) {                // 마이크 권..
[ios/swift] game center 로그인 하기 AppDelegate.swiftfunc application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {...GameCenterManager().authenticateLocalPlayer()..} GameCenterHelper.swiftimport Foundationimport GameKit class GameCenterManager: NSObject, GKGameCenterControllerDelegate {        var isAuthenticated = false     func authenticateLocalPlaye..
[android/kotlin] play game 로그인 하기 google play console 에서 play 게임즈 서비스 설정이 완료되었다는 가정하에 ~ ** OAuth 2.0 클라이언트 ID 안드로이드는 디버그,릴리즈,서명키 3개 등록해야함 AndroidManifest.xmlm.google.android.gms.games.APP_ID"   android:value="@string/app_id" />m.google.android.gms.version"  android:value="@integer/google_play_services_version"/> ---------MainActivity.ktonCreate 에PlayGamesSdk.initialize(this)loginPlayGame()     fun loginPlayGame(){        val gam..
[ios/swift] APNS p12로 내보내기 푸시 솔루션이나 파이어베이스 에서 ios 푸시 이용하려면 p12 파일을 등록해야함 1. 키체인 접근에서 CertificateSigningRequest.certSigningRequest 파일 생성해야함2. 애플 developer 에서 Identifiers 에서 앱 클릭 후 > Push Notifications  edit 클릭 > Production SSL Certificate에 1번의CertificateSigningRequest.certSigningRequest 파일 등록 후 다운로드3. 다운받은 aps.cer 파일은 키체인 접근 앱에서 열고, '인증서를 신뢰할수 없음' 이라고 뜨면 우클릭 정보가져오기 에서 항상 신뢰로 변경4. 인증서랑 그 안에 내 개인키 두개 클릭 후 우클릭 > 내보내기 하면 p12 파..
FCM Cloud Messaging API(V1) 테스트 FCM 포스트맨으로 테스트 할때 기존에는Headers 에 Authorization 에 서버키를 입력해 테스트 했었는데  이젠 Cloud Messaging API(V1) 를 사용해야 한다 앱쪽 코드는 변경할게 없고 1. Google Developers에 OAuth 2.0 Playground에 접속https://developers.google.com/oauthplayground OAuth 2.0 PlaygroundRequest Body Manual entry Enter the data that will be added to the body of the request: File You may choose to send a file as part of the request. When both a file and..