Implement notifyToDevice for method call from WebView