React Native-Initialization
Call the create_api method when the application starts.
import { create_api } from 'visilabs'; import Constants from 'expo-constants'; var organizationID = "OID"; var siteID = "SID"; var segmentURL = "http://lgr.visilabs.net"; var dataSource = "datasource"; var realTimeURL = "http://rt.visilabs.net"; var channel = Constants.platform.android === undefined ? "IOS" : "Android"; var euroMsgApplicationKey = "euroMsgApplicationKey"; var euroMsgSubscriptionURL = "https://pushs.euromsg.com/subscription"; var euroMsgRetentionURL = "https://pushr.euromsg.com/retention"; var locale = "tr-TR"; var api = create_api(organizationID, siteID, segmentURL, dataSource, realTimeURL, channel, euroMsgApplicationKey, euroMsgSubscriptionURL, euroMsgRetentionURL, "tr-TR");
Parent Page: React Native (Expo) Visilabs Implementation
Copyright 2020 Related Digital