Sections ▾

SAMPLES


iOS


Hello ContextHub

Today’s world is full of devices and sensors just waiting to be tapped into. Meaningful events happen all the time, when we get home from work, approach an interesting painting, or visit our favorite coffee shop. ContextHub takes those meaningful events in our lives and transforms them into powerful triggers your apps can respond to turn apps into experiences for your end users.

Hello ContextHub is the showcase sample app that introduces you to the features of the ContextHub iOS SDK and developer portal. As a developer, you will learn the relationship between devices triggering events on the server by setting up geofences on a map. ContextHub takes care of setting up and monitoring geofences to generate events that the server can listen and respond to and then save those events in a vault to be accessed later.

Grab the source from GitHub, follow along, and welcome to the world of ContextHub!


Awareness (Contexts)

Modern smartphones generate a sea of data just waiting to be harnessed and interpreted. But there needs to be some intelligence behind acting on that data so your apps provide the best experience to your users. Context rules serve as ContextHub’s solution to this problem, allowing you as a developer to write simple but powerful context rules in JavaScript separate from your mobile application. This gives your application a dynamic feel that your users may never see but will certainly experience.

Awareness is the showcase sample app that introduces you to the custom event features of the ContextHub iOS SDK and the context rule features of the developer portal. As a developer, you will learn how to trigger your own custom events as well as handle events within context rules in the ContextHub developer portal. Send push notifications, access vault records, create geofences, or fire webhooks. Context rules let you customize your application in real-time, giving you increased flexibilty as a developer with very little time investment. ContextHub takes care processing events generated by devices as well as triggering and evaluating context rules so that you can perform powerful, complex actions based on those same events.

Grab the source from GitHub, follow along, and start integrating context rules into your apps to make them contextually aware!


Detect Me (Beacons)

In 2013 at WWDC with iOS 7, Apple introduced the world to iBeacons, low-power Bluetooth 4.0 devices that help to give contextual location information to smartphones in areas where GPS, WiFi, and cellular tower triangulation could not pinpoint a user’s exact location. This is extraordinarily helpful in indoor locations with profound impact in retail and commercial markets.

Detect Me is the showcase sample app that introduces you to the beacon features of the ContextHub iOS SDK and developer portal. As a developer, you will learn how to detect beacons and their proximity in only a few lines of code. You’ll also see how easy it is to create, retrieve, update, and delete beacons. ContextHub takes care of setting up and monitoring beacons, generating events that the server can respond to, and saving those events in a vault to be accessed later.

Grab the source from GitHub, follow along, and start integrating context rules into your apps to make them contextually aware!


Boundaries (Geofences)

Positional awareness is quickly going from a nifty feature to a must have. Users expect more out their devices every day. Location is an important data point that’s ready to be taken advantage of. Geofences allow your application to be notified when a device enters or exits an area of interest so you can provide relevant data to your users right when they need it.

Boundaries is the showcase sample app that introduces you to the geofences features of the ContextHub iOS SDK and developer portal. As a developer, you will learn how to create, retrieve, update, and delete geofences as well as handle events in only a few lines of code. ContextHub takes care of setting up and monitoring geofences, generating events that the server can respond to, and saving those events in a vault to be accessed later.

Grab the source from GitHub, follow along, and start integrating geofences into your apps to make them contextually aware!


Notify Me (Push)

Push notifications have long been a way to increase user engagement in your applications ever since they were introduced in iPhone OS 3.0 in 2009. However in 2013, iOS 7 brought a new level of functionality with background notifications which allow developers to send notifications that wake up their apps briefly to do additional processing that typically would have been done at first load. By using push notifications as a foundation to communicate with your users, your app will feel more responsive and personal.

Notify Me is the showcase sample app that introduces you to the push features of the ContextHub iOS SDK and developer portal. As a developer, you will learn how to register, send, and receive push notifications. These can be sent using device IDs, aliases, or tags in only a few lines of code. ContextHub takes care of translating each of these identifiers to a push token which APNS needs to send the message to the correct device.

Grab the source from GitHub, follow along, and start integrating push to bring a new level of smartness to your apps!


Storage (Vault)

Cloud storage of data can be difficult. When dealing with an ever expanding world of devices, keeping track of what’s going on involves more than simply storing data on a single device for retrieval later. Especially with the coming “Internet of Things” revolution, maintaining state in your contextual apps allows you to build smarter rules that know not just what happened right now, but what happened 30 minutes or a day ago. So instead of asking “is my light on now?”, we can save data saying “my light was on five minutes ago.”

Storage is the showcase sample app that introduces you to the vault features of the ContextHub iOS SDK and developer portal. As a developer, you will learn how to create, retrieve, update, and delete vault items in only a few lines of code. ContextHub allows you to store small amounts of data on the server which can be accessed by all devices without starting up your own database server.

Grab the source from GitHub, follow along, and start integrating vault into your apps to make them more contextually aware!


Android


Hello ContextHub

Today’s world is full of devices and sensors just waiting to be tapped into. Meaningful events happen all the time, when we get home from work, approach an interesting painting, or visit our favorite coffee shop. ContextHub takes those meaningful events in our lives and transforms them into powerful triggers your apps can respond to turn apps into experiences for your end users.

Hello ContextHub is the showcase sample app that introduces you to the features of the ContextHub Android SDK and developer portal. As a developer, you will learn the relationship between devices triggering events on the server by setting up geofences on a map. ContextHub takes care of setting up and monitoring geofences to generate events that the server can listen and respond to and then save those events in a vault to be accessed later.

Grab the source from GitHub, follow along, and welcome to the world of ContextHub!


Awareness (Contexts)

Modern smartphones generate a sea of data just waiting to be harnessed and interpreted. But there needs to be some intelligence behind acting on that data so your apps provide the best experience to your users. Context rules serve as ContextHub’s solution to this problem, allowing you as a developer to write simple but powerful context rules in JavaScript separate from your mobile application. This gives your application a dynamic feel that your users may never see but will certainly experience.

Awareness is the showcase sample app that introduces you to the custom event features of the ContextHub Android SDK and the context rule features of the developer portal. As a developer, you will learn how to trigger your own custom events as well as handle events within context rules in the ContextHub developer portal. Send push notifications, access vault records, create geofences, or fire webhooks. Context rules let you customize your application in real-time, giving you increased flexibilty as a developer with very little time investment. ContextHub takes care processing events generated by devices as well as triggering and evaluating context rules so that you can perform powerful, complex actions based on those same events.

Grab the source from GitHub, follow along, and start integrating context rules into your apps to make them contextually aware!


Detect Me (Beacons)

Beacons are low-power Bluetooth 4.0 devices that help to give contextual location information to smartphones in areas where GPS, WiFi, and cellular tower triangulation could not pinpoint a user’s exact location. This is extraordinarily helpful in indoor locations with profound impact in retail and commercial markets.

Detect Me is the showcase sample app that introduces you to the beacon features of the ContextHub Android SDK and developer portal. As a developer, you will learn how to detect beacons and their proximity in only a few lines of code. You’ll also see how easy it is to create, retrieve, update, and delete beacons. ContextHub takes care of setting up and monitoring beacons, generating events that the server can respond to, and saving those events in a vault to be accessed later.

Grab the source from GitHub, follow along, and start integrating beacons into your apps to make them contextually aware!


Boundaries (Geofences)

Positional awareness is quickly going from a nifty feature to a must have. Users expect more out their devices every day. Location is an important data point that’s ready to be taken advantage of. Geofences allow your application to be notified when a device enters or exits an area of interest so you can provide relevant data to your users right when they need it.

Boundaries is the showcase sample app that introduces you to the geofences features of the ContextHub Android SDK and developer portal. As a developer, you will learn how to create, retrieve, update, and delete geofences as well as handle events in only a few lines of code. ContextHub takes care of setting up and monitoring geofences, generating events that the server can respond to, and saving those events in a vault to be accessed later.

Grab the source from GitHub, follow along, and start integrating geofences into your apps to make them contextually aware!


Notify Me (Push)

Push notifications have long been a way to increase user engagement in your applications. Google Cloud Messaging (GCM) allows you to send push notifications with large custom payloads that can be used to keep the data in your app as fresh as possible. By using push notifications as a foundation to communicate with your users, your app will feel more responsive and personal.

Notify Me is the showcase sample app that introduces you to the push features of the ContextHub Android SDK and developer portal. As a developer, you will learn how to register, send, and receive push notifications. These can be sent using device IDs, aliases, or tags in only a few lines of code. ContextHub takes care of translating each of these identifiers to the device(s) to which GCM needs to send the message.

Grab the source from GitHub, follow along, and start integrating push to bring a new level of smartness to your apps!


Storage (Vault)

Cloud storage of data can be difficult. When dealing with an ever expanding world of devices, keeping track of what’s going on involves more than simply storing data on a single device for retrieval later. Especially with the coming “Internet of Things” revolution, maintaining state in your contextual apps allows you to build smarter rules that know not just what happened right now, but what happened 30 minutes or a day ago. So instead of asking “is my light on now?”, we can save data saying “my light was on five minutes ago.”

Storage is the showcase sample app that introduces you to the vault features of the ContextHub Android SDK and developer portal. As a developer, you will learn how to create, retrieve, update, and delete vault items in only a few lines of code. ContextHub allows you to store small amounts of data on the server which can be accessed by all devices without starting up your own database server.

Grab the source from GitHub, follow along, and start integrating vault into your apps to make them more contextually aware!