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
- Longer component titles overlap navigation arrow in the "Add Component" window
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
Add comment