【发布时间】:2023-03-27 16:10:02
【问题描述】:
我在我的应用程序中实现了解析推送通知。但我只能发送文本通知,当用户点击通知时,它会转到应用程序。 现在我想在用户点击通知时打开一个url。我该怎么办?
【问题讨论】:
标签: android android-studio parse-platform push-notification android-notifications
我在我的应用程序中实现了解析推送通知。但我只能发送文本通知,当用户点击通知时,它会转到应用程序。 现在我想在用户点击通知时打开一个url。我该怎么办?
【问题讨论】:
标签: android android-studio parse-platform push-notification android-notifications
您可以从推送和“投掷”意图中解析 url:
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(/**Your parsed url**/));
startActivity(browserIntent);
【讨论】: