I want to run specific javascript on certain scenarios. I would like not to need a plugin, as plugins rely on having the application open.
My idea is to be able to open a notification while the app is closed (I have this this working), and have the notification open the app if closed or bring it to front if app is open.
So the above is already the way it works…
With this said, however, I want to be able to have the notification pass some javascript to the web view. I want to open links based on the notification that was clicked.
Use
loadUrlmethod to pass javascript to the page like this: