iOS SDK 15.6.7,
Android SDK 15.5.3,
Hello Screen Dynamic States,
Bluedot Cordova plugin 4.0.1,
Bluedot Xamarin Android wrapper 15.5.2,
Bluedot Xamarin iOS wrapper 15.6.6,
Bluedot React Native wrapper 2.3.0,
import { Button } from 'react-native' import BluedotPointSdk from 'bluedot-react-native' export default function App() { // The SDK needs be initialized and the app must have location permissions. const tempoService = new BluedotPointSdk.TempoBuilder() function handleStartTempo() { tempoService .androidNotification( // Required "Notification channelId", "Notification channel name", "Notification title", "Notification content", 1 // Notification ID - Optional ) .start( "Destination ID", () => console.log("On Success Callback"), () => console.error("On Error Callback") ) } return <Button title="Start Tempo" onPress={handleStartTempo} /> }
import React from 'react' import BluedotPointSdk from 'bluedot-react-native' export default function App() { React.useEffect(() => { // Register to Tempo events BluedotPointSdk.on( 'tempoTrackingDidExpire', () => console.log("On tempoTrackingDidExpire callback") ); BluedotPointSdk.on( 'tempoTrackingStoppedWithError', () => console.log("On tempoTrackingStoppedWithError callback") ); }, []) // Then start the Tempo service. }
BluedotPointSdk.stopTempo( () => console.log("On success callback"), () => console.error("On error callback") )
BluedotPointSdk.isTempoRunning() .then(isRunning => console.log("Is the Tempo service running?", isRunning)) .catch(error => console.error("Error", error))