0

I have a view with a webview, which should be called when clicking on a corresponding push notification and a parameter with a URL. The URL should then be called in the Webview. How can I pass the parameter from the push notification to the view so that the URL is called in the Webview?

Björn
  • 1
  • 4

1 Answers1

1

You can pass it via the PendingIntent used to open your WebView from the notification (details see here). You can set extras to that PendingIntent like you would with a 'normal' Intent when passing data between activities.

fweigl
  • 21,278
  • 20
  • 114
  • 205