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
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
- [Android] Light2D visuals stacking over frames when using RenderGraph
Add comment