[ 
https://issues.apache.org/jira/browse/CB-11470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15344367#comment-15344367
 ] 

Iñaki Vitoria commented on CB-11470:
------------------------------------

I'll give you something better. If you follow this step you will see how it 
crashes. 

CREATE DESTINATION APP

- cordova create destinationapp com.example.destinationapp DestinationApp
- cd .\destinationapp\
- cordova platform add https://github.com/apache/cordova-windows

- Open Config.XML and modify it. Add this few lines at the end:

<platform name="windows">
   <preference name="windows-target-version" value="10.0" />
</platform>

- cordova build windows --release --archs="x64"

Go to destinationapp\platforms\windows folder and modify package.windows10 to 
add your specific protocol.
- Add this few lines inside Application.

<Extensions>
  <uap:Extension Category="windows.protocol">
    <uap:Protocol Name="mydestionationapp" />
  </uap:Extension>
</Extensions>

- cordova run windows --release --archs="x64"


CREATE SOURCE APP
- cordova create sourceapp com.example.sourceapp SourceApp
- cd .\sourceapp\

- Go to www folder and modify index.html file. Add this inside "deviceready" 
div :   <a href="mydestionationapp://test">Open destination APP</a>

- cordova platform add https://github.com/apache/cordova-windows

- Open Config.XML and modify it. Add this few lines at the end:

<platform name="windows">
   <preference name="windows-target-version" value="10.0" />
</platform>

- cordova run windows --release --archs="x64"

At this point you should have 2 apps installed on your PC.
If you lauch source app and you follow the link, the destination app should 
open but it would crash inmediatly.





> App crashes when trying to open from another app using Custom URL (Protocol)
> ----------------------------------------------------------------------------
>
>                 Key: CB-11470
>                 URL: https://issues.apache.org/jira/browse/CB-11470
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>    Affects Versions: 4.4.0
>            Reporter: Iñaki Vitoria
>              Labels: triaged, wfc, windows
>
> When you try to open an exixting cordova app using Custom URL, now app 
> crashes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to