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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Add comment