public static void initEngagement(IActivatedEventArgs args)
        {
            if (EngagementConfiguration.ENABLE_PLUGIN_LOG == true)
            {
                Microsoft.Azure.Engagement.EngagementAgent.Instance.TestLogLevel = EngagementTestLogLevel.Verbose;
            }
            else
            {
                Microsoft.Azure.Engagement.EngagementAgent.Instance.TestLogLevel = EngagementTestLogLevel.Off;
            }

            Microsoft.Azure.Engagement.EngagementConfiguration engagementConfiguration = new Microsoft.Azure.Engagement.EngagementConfiguration();
            engagementConfiguration.Agent.ConnectionString = EngagementConfiguration.WINDOWS_CONNECTION_STRING;
            engagementConfiguration.Reach.EnableNativePush = true;
            Microsoft.Azure.Engagement.EngagementAgent.Instance.Init(args, engagementConfiguration);
            Microsoft.Azure.Engagement.EngagementReach.Instance.Init(args);

            Microsoft.Azure.Engagement.EngagementReach.Instance.DataPushStringReceived += (body) =>
            {
                EngagementReach.onDataPushString(null, body);
                return(true);
            };

            Microsoft.Azure.Engagement.EngagementReach.Instance.DataPushBase64Received += (decodedBody, encodedBody) =>
            {
                EngagementReach.onDataPushBase64(null, decodedBody, encodedBody);
                return(true);
            };
        }
        public static void processURI()
        {
            if (hasBeenInitialized == false)
            {
                return;
            }

            if (lastURI != null)
            {
                Debug.Log("processing " + lastURI);
                EngagementReach.onHandleURLMessage(lastURI);
                lastURI = null;
            }
        }
 public void onHandleURL(string _url)
 {
     EngagementReach.onHandleURLMessage(_url);
 }
        // Forward the messages to the ReachAgent

        public void onDataPushReceived(string _serialized)
        {
            EngagementReach.onDataPushMessage(_serialized);
        }