cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastien Lorber (JIRA)" <>
Subject [jira] [Commented] (CB-11924) Share target: sharing to cordova app makes the app open but crashes afterwards
Date Wed, 05 Oct 2016 12:18:20 GMT


Sebastien Lorber commented on CB-11924:

[~daserge] I have been able to make my usecase work.

I've documented everything here:

I suspect maybe the emulator crashed because of not calling shareOperation.reportCompleted()
(not sure)

I was able to launch my main app immediately from the share view using a protocol activation

I created a custom html file for receiving the share view. 
Note I have to include myself base.js of WinJS to make it work:
Quite related to your recent PR I guess:

Still, it seems important to register WinJS activationHandler before deviceready which seems
a bit weird.

Maybe this issue can be closed as I've found a solution to my problems.
However I think it would be nice to document a bit how Cordova apps can make use of WinJS.

Hope my github repo will be helpful for futur developers.

> Share target: sharing to cordova app makes the app open but crashes afterwards
> ------------------------------------------------------------------------------
>                 Key: CB-11924
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>    Affects Versions: 4.4.2
>         Environment: Windows 10, cordova cli 6.1.1, affects cordova platform 4.4.2, also
current 4.5.0 dev branch.
>            Reporter: Sebastien Lorber
> Steps to reproduce:
> ========================
> {code}
> cordova create shareTargetTest
> cd shareTargetTest
> cordova platform add
> {code}
> In manifest, add Share Target of type URI, leading to the following XML:
> {code}
>       <Extensions>
>         <uap:Extension Category="windows.shareTarget">
>           <uap:ShareTarget>
>             <uap:DataFormat>URI</uap:DataFormat>
>           </uap:ShareTarget>
>         </uap:Extension>
>       </Extensions>
> {code}
> Run Windows 10 emulator (also crashed on HP Elite X3 device)
> Open Edge browser on any page, and share page to HelloCordova app.
> The HelloCordova app opens, and after some seconds, the emulator crashes (WWAHost.exe
fails with code = -1: don't know how to get more details unfortunatly)
> --------------------------------------------------------------------------
> Expected result:
> ========================
> I don't know if this has ever been done by anyone on a Cordova app, but I want to share
a Edge link to my application. For Android/iOS, this means that the app should open, or resume
itself, and call some JS callback.
> I tried to follow these Windows8 tutorials that still look relevant for Windows10 app,
with no success.
> It seems the "activated" callback never fires (weither it's declared in my app, or in
cordova.js, at least I don't see anything in the console logs I've put everywhere).
> Can you tell me if I do anything wrong to achieve this usecase? thanks

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message