【问题标题】:How to open a URL using parse push notification?如何使用解析推送通知打开 URL?
【发布时间】:2023-03-27 16:10:02
【问题描述】:

我在我的应用程序中实现了解析推送通知。但我只能发送文本通知,当用户点击通知时,它会转到应用程序。 现在我想在用户点击通知时打开一个url。我该怎么办?

【问题讨论】:

    标签: android android-studio parse-platform push-notification android-notifications


    【解决方案1】:

    您可以从推送和“投掷”意图中解析 url:

    Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(/**Your parsed url**/));
    startActivity(browserIntent);
    

    【讨论】:

      猜你喜欢
      • 2015-11-13
      • 1970-01-01
      • 1970-01-01
      • 2012-03-15
      • 1970-01-01
      • 1970-01-01
      • 2016-12-11
      • 1970-01-01
      • 2016-10-03
      相关资源
      最近更新 更多