Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow starting the search fragment via intent #11615

Closed
wants to merge 1 commit into from

Commits on Nov 3, 2024

  1. Extended custom URL scheme to include service selection

    - Implemented the abilImplemented the ability for third-party apps to initiate a search in NewPipe on a specific service by using the custom URL scheme `newpipe://search?service=SERVICE_NAME&q=YOUR_QUERY`.
    - Added intent-filter to RouterActivity to handle the custom URL scheme.
    - Enhanced RouterActivity to parse the incoming service parameter, retrieve the corresponding service ID, and start MainActivity with the specified service and search query.
    - Added error handling for invalid service names: displays an error message to the user if the service name is invalid.
    - Tested the implementation using ADB commands to send an intent with the custom URI.
    Fixes: Expose search API with url TeamNewPipe#3475
    
    Add new tag to customize urls
    
    add logic of handling custom search intents in onCreate method
    
    add comments to helping review
    
    add a new method to get the service by name
    
    improve the RouterActivity to handle the service name
    
    improve the RouterActivity
    jiahengguo123 committed Nov 3, 2024
    Configuration menu
    Copy the full SHA
    c934c25 View commit details
    Browse the repository at this point in the history