Desktop Bridge - AppServiceConnection name is empty in OnBackgroundActivated event

Jos Huybrighs 136 Reputation points
2020-08-13T20:21:16.81+00:00

Hi,

I have a UWP-DesktopBridge app published in the Windows Store where a fulltrust process creates an AppServiceConnection immediately after it has been launched.
The app is in use by +6000 users and works without problems.
Recently I got 1 error report from a user which showed that the 'AppServiceTriggerDetails' object that is passed in the 'OnBackgroundActivated' event that triggers when the AppServiceConnection is established doesn't contain the configured appservice name. The name is provided on the win32 full trust side but empty in the UWP background event.
I am checking for a valid name and so the connection is refused.

Is someone aware if there are conditions in Windows where this name would be empty?
Could there be something wrong with the app registration, the user's account, or some error in Windows Store when installing the app?

Thanks for any feedback.

Jos

Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Jos Huybrighs 136 Reputation points
    2020-09-15T13:47:52.26+00:00

    It looks like it is OK to not check the AppServiceName when receiving an AppService trigger. The connection works fine when the name is missing on the server side. Still a pity that no one can tell why the name, although provided on the client side, has disappeared on the server side.

    0 comments No comments

0 additional answers

Sort by: Most helpful