Hello all!
This is bugging me big time. I have been using this script across multiple projects and it works just fine. Sadly it’s not working in the new project I am working on and I have compared all my setting from this new project to a previous project. I am very used to configuring project more or less the same but I had to check to be sure. I’m using the XR Toolkit, Oculus SDK and that is about it. All is functioning quite well except for this Deeplink. When I collide with the GameObject (door) Real Fishing VR should launch as it and other apps do with no issues in my other projects. What I have in this one scene (an apartment) is a simply UI to toggle images on a picture frame and another for music selection and that’s it with the exception of a couch, table and chairs. O, and the door that should launch the app but instead of launching the app I’m exited to the Meta Homeroom instead. Any suggestion?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Oculus.Platform;
public class DeepLink : MonoBehaviour
{
// The ID of the app to launch
public string APP_ID = “2582932495064035”;
private bool collided = false;
private void OnTriggerEnter(Collider other)
{
if (!collided)
{
// Set the deeplink message option
ApplicationOptions options = new ApplicationOptions();
options.SetDeeplinkMessage(“abc”);
// Convert the APP_ID to ulong and launch the other app
ulong appId = ulong.Parse(APP_ID);
Oculus.Platform.Application.LaunchOtherApp(appId, options);
collided = true;
}
}
}