This is a migrated thread and some comments may be shown as answers.

How to prevent showing message when navigating to external Url

1 Answer 187 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
Tursunkhuja asked on 10 Jul 2020, 04:34 AM
I'm using HTML5ReportViewer to show report in our client app (and I use WebView to show it, because it's UWP app). 
I have a report that is created via Stand alone report designer. I used Action: "Navigate to Url" in some of TextBoxes to make a link that opens a page on our client app. If you click on that link from Stand alone report designer, it  works fine. But, the problem I have is when I open the report from our app and click on that link, it shows a message saying "Do you mean to switch apps?". If you click on "Yes" button then it continues navigation. How to prevent showing this message when navigating to Url? (See the attached picture "message.jpg" file to see the message).

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 14 Jul 2020, 02:02 PM

Hello Tursunhuja,

The report viewer will try to navigate to the predefined URL by opening it in the browser according to the NavigateToUrlAction properties:

'navigateToUrl': function (action) {
    var args = action.Value;
    window.open(args.Url, args.Target);
},

The report viewer is not aware that it is hosted inside a WebView. The message "Did you mean to switch apps?" is not coming from Telerik Reporting.

My suggestion is to research how this pop-up can be disabled in UWP. Also check the How do I suppress the “Did you mean to switch apps?” warning message from my XAML WebView control? blog post from the Microsoft Developer Blogs portal.

Regards,
Nasko
Progress Telerik

Tags
General Discussions
Asked by
Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Nasko
Telerik team
Share this question
or