Code Monkey home page Code Monkey logo

magnatronus.ti-swift-watch-test's Introduction

WATCHOS2 Titanium Sample App

This is a simple test app showing communication between a Titanum iOS app and a watch OS2 app. The idea is that you can send chat messages to the app where it will either automatically reply with a random message or a message reply can be selected from a provided list.

I have used the Watch Session userInfo comms as I could not get the sendMessage option working (I even tried to AppC demo app and the sendMessage option would not work), but the goal here was just to prove to myself I could get a simple app up and running.

My swift code for the watch app is probably no where near best practices, but it does work, for me anyway :-)

About

This project was created and edited using Sublime Text 3 (and a custom plugin I have written with some Ti functionality) and only uses the Ti CLI to run and test. The command line I use for running in the sim's is:

ti build -p ios --log-level info --device-id --launch-watch-app

Note: Sometimes I needed to do the build twice (or at least start with the sim's running) - possibly a timimg issue?

Also if I changed the watch project I found it was better to delete the Ti build dir before re running.

The only other thing I did was to use XCode (Window->Devices) to set up a phone sim with a watch sim for testing.

Screen Shots

magnatronus.ti-swift-watch-test's People

Contributors

magnatronus avatar

Watchers

Brenton House avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.