Closed vittalpai closed 6 years ago
It looks like your zip is incomplete: it doesn't contain MFTestApp\MFTestApp.iOS\MFTestApp.iOS.csproj
, referenced by the solution. Could you update it?
@rolfbjarne Since the app size was bigger only the part of the app containing the code which is causing the issue was shared . Here is a box link where the sample app can be downloaded from https://ibm.box.com/s/k234t5jmnlq62iwzipeok58dhskbdw9n .
Your project still doesn't build, because it references assemblies that are not included:
<Reference Include="MobileFirst.iOS">
<HintPath>..\..\..\mfp-windows-sdk-8.0.2018090406-zip\IBM.MobileFirstPlatformFoundation.8.0.2018090406\lib\xamarinios\MobileFirst.iOS.dll</HintPath>
</Reference>
<Reference Include="MobileFirst.iOS.JSONStore">
<HintPath>..\..\..\mfp-windows-sdk-8.0.2018090406-zip\IBM.MobileFirstPlatformFoundation.8.0.2018090406\lib\xamarinios\MobileFirst.iOS.JSONStore.dll</HintPath>
</Reference>
<Reference Include="MobileFirst.Xamarin.iOS">
<HintPath>..\..\..\mfp-windows-sdk-8.0.2018090406-zip\IBM.MobileFirstPlatformFoundation.8.0.2018090406\lib\xamarinios\MobileFirst.Xamarin.iOS.dll</HintPath>
</Reference>
<Reference Include="Worklight.Core">
<HintPath>..\..\..\mfp-windows-sdk-8.0.2018090406-zip\IBM.MobileFirstPlatformFoundation.8.0.2018090406\lib\xamarinios\Worklight.Core.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\..\..\Documents\github-repos\mfp-client-windows\worklight-windows8\worklight-windows8\Newtonsoft.Json.dll</HintPath>
</Reference>
However, the problem seems to be that HandleChallenge
is called on the main thread, then you queue something to be executed on the main thread, and immediately wait for it to finish executing, which will never happen, because you're blocking the main thread.
The solution is to not block the main thread.
Steps to Reproduce
BeginInvokeOnMainThread
followed by a wait for user input using an APIuserInputEvent.WaitOne();
3.Run the application and click on a button so that it will invoke the UI .Expected Behavior
The UI has to navigate from Main UI to new UI which is called using
BeginInvokeOnMainThread
Actual Behavior
The UI gets freezed after the api call “userInputEvent”.
Environment
Build Logs
Example Project (If Possible)
MFTestApp.zip