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

Is there any possible way to operate on the UI thread from a Cordova plugin for UWA application?

0 Answers 98 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jing
Top achievements
Rank 1
Jing asked on 23 Oct 2017, 08:41 AM

Hi all

I am current working on a Cordova plugin for Universal Windows Application. I know it should not be like this, but according to the requirement and current solution for other platforms (Android and IOS) in the same plugin, seems I have to implement couple of xaml pages inside the plugin and navigate to these plugin pages from the main application.

So here comes the question, is there any way for me to get current window frame and use it to navigate? Or notify the UI thread to navigate to the target page. It is obvious that the plugin is not running on the UI thread so Window.Current property always returns null if I am trying to get it inside the plugin.
Thanks for helping. I am new to Cordova, any help would be appreciated.

Tags
Apache Cordova
Asked by
Jing
Top achievements
Rank 1
Share this question
or