Search Issue Tracker
Won't Fix
Votes
0
Found in
4.3.4f1
Issue ID
601011
Regression
No
Unity applications crash when launched using URI association
Steps to reproduce:
1. Build any project as WP8 visual studio project
2. Open its WMAppManifest.xml. Under Tokens element add the following line:
<Extensions>
<Protocol Name="angrybots" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
</Extensions>
3. Build and deploy it to device
4. Using device, browse to a page which has the following link:
<a href="angrybots:">Launch Angry Bots!</a>
5. Click on the link
6. Built application will launch but will immediately exit after a splash screen.
More information regarding URI associations: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987(v=vs.105).aspx
Why is it not going to be fixed?
If handler is added to the Manifest, it also has to be implemented in code. Microsoft documentation specifically says that.
In this case, UriRemapper has to be added.
Define this class:
class UriRemapper : UriMapperBase
{
private readonly Uri _mainPageUri = new Uri("/MainPage.xaml", UriKind.Relative);
public override Uri MapUri(Uri uri)
{
var uriString = HttpUtility.UrlDecode(uri.ToString());
if (uriString.Contains("angrybots"))
{
return _mainPageUri;
}
else
{
return uri;
}
}
}
And then add this line to InitializePhoneApplication():
RootFrame.UriMapper = new UriRemapper();
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Add comment