简体   繁体   中英

Passing parameters in Google News app URL scheme

I want to integrate the Google News app with another iOS customized app. I've found the URL scheme for Google News ( googlenews:// ) and it opens the app. Now I am trying to pass a parameter in order to automatically search news for it. I've used the following URLs with no success.

  • googlenews://news.google.com/search?q=stackoverflow
  • googlenews://q=stackoverflow
  • googlenews://?q=stackoverflow

Looks simple but it doesn't work. How to do that correctly?

If you want a parameter search to Google News, you can try the following:

https://news.google.com/news/section?cf=all&hl=us&ned=en_us&q=<YOUR_SEARCH_TERM>

Where <YOUR_SEARCH_TERM> is the parameter you want search.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM