コード例 #1
0
    // Use this for initialization
    void Start()
    {
        Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => {
            dependencyStatus = task.Result;
            if (dependencyStatus == Firebase.DependencyStatus.Available)
            {
                InitializeFirebase();
            }
            else
            {
                Debug.LogError(
                    "Could not resolve all Firebase dependencies: " + dependencyStatus);
            }
        });


        _support = HelpshiftSdk.getInstance();
        _support.install();

#if UNITY_ANDROID
        _support.registerDelegates();
#endif

        /*HelpshiftUser user = new HelpshiftUser.Builder (<user-identifier>, <user-email>)
         *              .setAuthToken (<user-auth-token>)
         *              .setName (<user-name>)
         *              .build ();
         *
         * _support.login (user);*/
    }
コード例 #2
0
ファイル: MainScene.cs プロジェクト: toxly/unity-app
        // -- https://developers.helpshift.com/unity/sdk-configuration-ios/#install-config
        public void Init()
        {
            IntPtr clazzPtr = AndroidJNI.FindClass("com.snow.dbt");
            if (clazzPtr != IntPtr.Zero)
            {
                Debug.Log("=====================================Got");
            }
            else
            {
                Debug.Log("=====================================Not Got");
            }

            CSharpButton.onClick.AddListener(ClickCSharpButton);
            JavaButton.onClick.AddListener(ClickJavaButton);
            CppButton.onClick.AddListener(ClickCppButton);

            help = HelpshiftSdk.getInstance();
            Dictionary<string, object> configMap = new Dictionary<string, object>();
            configMap.Add("unityGameObject", "UIGetVersion");
            configMap.Add("enableInAppNotification", "yes");

            #if UNITY_IOS
            help.registerForLocalNotifications();
            help.registerHelpshiftDeepLinking();
            #endif
            help.install(GateKeeper.HelpShiftApiKey, GateKeeper.HelpShiftDomainName, GateKeeper.HelpShiftAppId, configMap);

            help.setNameAndEmail("Snow Li", "*****@*****.**");
            help.setUserIdentifier("userid.10015");

            getNofify();
        }
コード例 #3
0
        // -- https://developers.helpshift.com/unity/sdk-configuration-ios/#install-config
        public void Init()
        {
            IntPtr clazzPtr = AndroidJNI.FindClass("com.snow.dbt");

            if (clazzPtr != IntPtr.Zero)
            {
                Debug.Log("=====================================Got");
            }
            else
            {
                Debug.Log("=====================================Not Got");
            }

            CSharpButton.onClick.AddListener(ClickCSharpButton);
            JavaButton.onClick.AddListener(ClickJavaButton);
            CppButton.onClick.AddListener(ClickCppButton);

            help = HelpshiftSdk.getInstance();
            Dictionary <string, object> configMap = new Dictionary <string, object>();

            configMap.Add("unityGameObject", "UIGetVersion");
            configMap.Add("enableInAppNotification", "yes");

#if UNITY_IOS
            help.registerForLocalNotifications();
            help.registerHelpshiftDeepLinking();
#endif
            help.install(GateKeeper.HelpShiftApiKey, GateKeeper.HelpShiftDomainName, GateKeeper.HelpShiftAppId, configMap);

            help.setNameAndEmail("Snow Li", "*****@*****.**");
            help.setUserIdentifier("userid.10015");

            getNofify();
        }
コード例 #4
0
    // Use this for initialization
    void Start()
    {
        _support = HelpshiftSdk.getInstance();
        //_support.registerForPush("<gcm-key>");
#if UNITY_IOS
        _support.registerForLocalNotifications();
        _support.registerHelpshiftDeepLinking();
#endif
        _support.install();
        _support.login("identifier", "name", "email");
    }
コード例 #5
0
    void Awake()
    {
        _support = HelpshiftSdk.getInstance();
        string apiKey     = "<your_api_key>";
        string domainName = "<your_domain_name>";
        string appId;

#if UNITY_ANDROID
        appId = "your_android_app_id";
#elif UNITY_IOS
        appId = "your_ios_app_id";
#endif
        _support.install(apiKey, domainName, appId, getInstallConfig());
    }
    // Use this for initialization

    void Start()
    {
        _support   = HelpshiftSdk.getInstance();
        _campaigns = HelpshiftCampaigns.getInstance();
        _inbox     = HelpshiftInbox.getInstance();
        _support.install();
        //_support.registerForPush("<gcm-key>");
        _campaigns.SetInboxMessagesDelegate(new HelpshiftExample.InboxDelegate());
        _inbox.SetInboxMessageDelegate(new HelpshiftExample.InboxDelegate());
        _inbox.SetInboxPushNotificationDelegate(new HelpshiftExample.InboxPushNotificationDelegate());
        _campaigns.SetCampaignsDelegate(new HelpshiftExample.CampaignsDelegate());

        _campaigns.RequestUnreadMessagesCount();
    }
コード例 #7
0
        void Awake()
        {
            _helpshiftX = HelpshiftSdk.GetInstance();
            string domainName = "gayatri.helpshift.com";
            string platformId;

#if UNITY_ANDROID
            platformId = "gayatri_platform_20181018063833353-6d863ba814cb367";
#elif UNITY_IOS
            platformId = "<your-app-ios-platform-id>";
#endif
            _helpshiftX.Install(platformId, domainName, GetInstallConfig());
            Debug.Log("Unity - Awake called");
            _helpshiftX.SetHelpshiftEventsListener(new HSEventsListener());
        }
コード例 #8
0
        void Awake()
        {
            _helpshiftX = HelpshiftSdk.GetInstance();
            string domainName = "<your-domain>.helpshift.com";
            string platformId;

#if UNITY_ANDROID
            platformId = "<your-app-android-platform-id>";
#elif UNITY_IOS
            platformId = "<your-app-ios-platform-id>";
#endif
            _helpshiftX.Install(platformId, domainName, GetInstallConfig());
            Debug.Log("Unity - Awake called");
            _helpshiftX.SetHelpshiftEventsListener(new HSEventsListener());
        }
コード例 #9
0
        private void Start()
        {
            _support = HelpshiftSdk.GetInstance();
            string domainName = "<domain name>.helpshift.com";
            string appId;

#if UNITY_ANDROID
            appId = "your_android_app_id";
#elif UNITY_IOS
            appId = "your_ios_app_id";
#endif
            _support.Install(appId, domainName, GetInstallConfig());
            _support.SetHelpshiftEventsListener(new HelpshiftSampleEventsListener());
            // Create the delays so they only have to be made once.
            m_StartWait = new WaitForSeconds(m_StartDelay);
            m_EndWait   = new WaitForSeconds(m_EndDelay);

            m_PauseButton.SetActive(false);
        }
コード例 #10
0
ファイル: HelpshiftManager.cs プロジェクト: robin1392/robin
    public void Initialize()
    {
        if (string.IsNullOrEmpty(api_key) == false && string.IsNullOrEmpty(domain_name) == false)
        {
            help = HelpshiftSdk.getInstance();
            var configMap = new Dictionary <string, object>();
#if UNITY_ANDROID
            if (string.IsNullOrEmpty(app_id_android) == false)
            {
                help.install(api_key, domain_name, app_id_android, configMap);
            }
#elif UNITY_IOS
            if (string.IsNullOrEmpty(app_id_ios) == false)
            {
                help.install(api_key, domain_name, app_id_ios, configMap);
            }
#endif
        }
    }
コード例 #11
0
        private void Start()
        {
            _support = HelpshiftSdk.getInstance();
            string apiKey     = "<your_api_key>";
            string domainName = "<your_domain_name>";
            string appId;

#if UNITY_ANDROID
            appId = "your_android_app_id";
#elif UNITY_IOS
            appId = "your_ios_app_id";
#endif
            _support.install(apiKey, domainName, appId);

            // Create the delays so they only have to be made once.
            m_StartWait = new WaitForSeconds(m_StartDelay);
            m_EndWait   = new WaitForSeconds(m_EndDelay);

            m_PauseButton.SetActive(false);
        }
コード例 #12
0
    // Use this for initialization

    void Start()
    {
        _support = HelpshiftSdk.getInstance();
        // App name on campaigns testing domain: Android Dev Testing
        string apiKey     = "<your_api_key>";
        string domainName = "<your_domain_name>";
        string appId;

#if UNITY_ANDROID
        appId = "your_android_app_id";
#elif UNITY_IOS
        appId = "your_ios_app_id";
#endif
        _support.install(apiKey, domainName, appId, getInstallConfig());
        _campaigns = HelpshiftCampaigns.getInstance();
        _inbox     = HelpshiftInbox.getInstance();
        _campaigns.SetInboxMessagesDelegate(new HelpshiftExample.InboxDelegate());
        _inbox.SetInboxMessageDelegate(new HelpshiftExample.InboxDelegate());
        _inbox.SetInboxPushNotificationDelegate(new HelpshiftExample.InboxPushNotificationDelegate());
        _campaigns.SetCampaignsDelegate(new HelpshiftExample.CampaignsDelegate());

        _campaigns.RequestUnreadMessagesCount();
    }