-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Android에서 앱에 Lifecycle 변경이 발생했을 때, 지도가 네비게이터 스택을 무시하고 최상단에 노출되는 문제 #56
Comments
flutter/flutter#89558 해당 이슈와 연관 있어보입니다. |
@Kwon-TaeHyoung 혹시, 오류로그가 존재할까요? |
관련있어 보이는 로그는 |
재현에 성공하였습니다. 임시 해결법 (MainActivity.kt 파일을 수정해야 합니다) import android.os.Bundle
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.android.FlutterTextureView
class MainActivity : FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
intent.putExtra("background_mode", "transparent")
super.onCreate(savedInstanceState)
}
} |
감사합니다 일단 해당 방법으로 문제는 해결됐습니다. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
해당 옵션을 적용한 후 splash 배경화면이 검은색으로 바뀌었습니다. |
@KimSungJin0 혹시 두번째 함수를 적지 않았을때도 해당 현상이 발생하시나요? |
|
hello, the solution is giving |
@note11g @KimSungJin0 , do you faced the similar issue? |
Could you please help us @note11g @KimSungJin0? |
for anyone, facing black screen issue, can refer to - jonbhanson/flutter_native_splash#54 (comment) |
안드로이드 스크린 이동 시 스크린의 지도가 오버레이되는 문제가 있습니다. 이와 관련해서 현재 패키지에서 지도를 표시할 때 GLSurfaceView를 사용하기 때문에 발생하는 문제로 보입니다. GLSurfaceView와 TextureView의 용도가 다르기 때문에 옵션이 필요 합니다. 리액트 네이티브도 이와 관련해서 같은 이슈관련 링크드립니다.(QuadFlask/react-native-naver-map#27) |
@betrider 말씀 주신 내용 확인하였습니다. |
@/Kwon-dev @/KimSungJin0 @/betrider @/akshatjain-beam @/rishabhgoyal-beam
테스트한 환경 : Flutter 3.16.1 / Galaxy S23 (Android 14), Galaxy S23 Ultra (Android 14) + 재현에 성공하였습니다. Pixel 4 Emulator (Android 13)에서 재현되었습니다. |
83c7adb 커밋은 근본적인 문제(Flutter Engine Issue)를 해결하지는 않습니다. |
flutter_native_splash를 사용하신다면, 다음처럼 사용하시면 됩니다. (참고: flutter_native_splash#3-set-up-app-initialization-optional) void main() async {
final widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
await NaverMapSdk.instance.initialize(clientId: 'your client id');
FlutterNativeSplash.remove();
runApp(const MyApp());
} 다음은 테스트 영상입니다. (Pixel 4 API 33 Emulator, Flutter Release Mode) test_vid_with_native_splash.mp4 |
|
예를 들면 홈 화면에 네이버 지도 위젯을 넣었다고 가정할 때, 그 페이지 위로 쌓이는 페이지(push를 통해 이동한 페이지)들 에서 화면 잠금을 했다가 잠금을 해제하면 네이버 지도가 페이지 제일 위로 올라와서 노출 되는 오류가 있습니다. 특정 기종이 문제가 아니라 다양한 폰에서 테스트해 본 결과 모두 같은 결과가 나왔고, 아이폰에서는 재현되지 않았습니다.
현재 사용중인 버전은 flutter_naver_map: ^1.0.0-dev.8이고 flutter 버전은 3.7.7 입니다.
안드로이드 compileSdkVersion은 33을 사용하고 있습니다.
The text was updated successfully, but these errors were encountered: