Skip to content

mapbox for android 锁屏导航大概十分钟之后就没有语音提示了 #72

@abcyintao

Description

@abcyintao

我遇到的问题
调用navigation.startNavigation(route)这个方法正常开始导航,然后我锁屏 ,刚开始几分钟还有语音提示,大概十分钟之后就没有语音提示了
我遇到的问题截图

    navigationMap.updateCameraTrackingMode(NavigationCamera.NAVIGATION_TRACKING_MODE_GPS);
    navigationMap.showAlternativeRoutes(true);
    navigationMap.addOnCameraTrackingChangedListener(this);
    // Transition to navigation state
    mapState = MapState.NAVIGATION;

    // Show the InstructionView
    TransitionManager.beginDelayedTransition(navigationLayout);
    instructionView.setVisibility(View.VISIBLE);
    instructionView.setInstructionListListener(new InstructionListListener() {
        @Override
        public void onInstructionListVisibilityChanged(boolean visible) {
            instructionView.retrieveSoundButton().hide();
            instructionView.retrieveFeedbackButton().hide();
        }
    });


    // Start navigation
    adjustMapPaddingForNavigation();
    navigation.startNavigation(route);

    // Location updates will be received from ProgressChangeListener
    removeLocationEngineListener();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions