로컬 api / 카카오맵 api

문의 시, 사용하시는 개발환경과 디벨로퍼스 앱ID를 알려주세요.


앱 ID : 1169166 / android / android studio

Android Studio Ladybug | 2024.2.1 Patch 2
Build #AI-242.23339.11.2421.12550806, built on October 25, 2024
Runtime version: 21.0.3±12282718-b509.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8192M
Cores: 22
Registry:
ide.instant.shutdown=false
ide.experimental.ui=true
i18n.locale=
Non-Bundled Plugins:
com.godwin.json.parser (1.7.1)
wu.seal.tool.jsontokotlin (3.7.5)
com.jetbrains.kmm (0.8.3(242)-5)


rest api 로 호출 하면서 로컬 api 을 호출 하려는 데… 403 오류가 발생 됩니다.
앱 을 삭제 하고 신규 등록을 다시 하고 처리 하는 중인데… 이유는 무엇 일까요???

그리고 카카오맵 api 을 사용하려고 하는데, 권한 신청을 받지 않고 설정에서 한다는 데… 정확한 위치을 알 수 없습니다.
어디서 설정을 하는 것일까요???

1개의 좋아요

Hello @nari4169 Don’t forget that I wrote a similar answer to your other topic. Please check your API settings, I sent you a sample guide.

  1. For the 403 error with Local API:
    The 403 error usually occurs due to several reasons:

    • API key not properly configured
    • Domain/Platform not properly registered
    • Missing or incorrect authorization headers
    • API service not enabled

    Check these steps:

    // Make sure you're adding the Authorization header correctly
    headers["Authorization"] = "KakaoAK ${YOUR_REST_API_KEY}"
    
  2. For Kakao Maps API settings:
    Go to the Kakao Developers Console (https://developers.kakao.com) and:

    1. Select your application (ID: XXXXXXX)
    2. Go to “Platform” settings
    3. Under “Android Platform”:
      • Add your package name
      • Add your key hash
    4. Go to “Product Settings” (제품 설정)
    5. Find “Maps” (지도)
    6. Enable the service by toggling it on

To verify your setup:

// In your AndroidManifest.xml
<meta-data
    android:name="com.kakao.sdk.AppKey"
    android:value="YOUR_NATIVE_APP_KEY"/>

If the 403 error persists, please check:

  • That your REST API key is correct
  • That you’ve enabled the Local API service in the developer console
  • Your app’s package name matches what’s registered
  • Your key hash is correctly registered

안녕하세요.

아래 공지를 참고해주세요.

https://devtalk.kakao.com/t/api/140875