【问题标题】:How to Push a URL to Open in Browser Using Parse如何使用 Parse 推送 URL 以在浏览器中打开
【发布时间】:2015-07-03 22:31:24
【问题描述】:

我只能推送简单文本,但不能发送 URL 以在浏览器解析推送通知中打开。

【问题讨论】:

  • 您可以简单地将 URL 推送为简单的文本。然后,当设备收到此信息时,将其转换为 URL,并使用 Web 浏览器意图启动它。你试过什么?

标签: android url parse-platform notifications push


【解决方案1】:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.google.com"));
            startActivity(intent);

【讨论】:

    猜你喜欢
    • 2021-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-27
    • 2019-04-12
    • 1970-01-01
    • 1970-01-01
    • 2021-12-27
    相关资源
    最近更新 更多