Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Rebelic/HockeyApp
Browse files Browse the repository at this point in the history
  • Loading branch information
timanrebel committed Oct 7, 2014
2 parents 4e47591 + 973e164 commit 8bd28d8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions example/app.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,43 @@
var hockeyapp = require('nl.rebelic.hockeyapp');
hockeyapp.start('<yourappid>');

var win = Ti.UI.createWindow({
backgroundColor: 'white'
});

var btnSent = Ti.UI.createButton({
top: 100,
title: 'Send feedback'
});

btnSent.addEventListener('click', function(e) {

if (Ti.Platform.name !== 'iPhone OS') {
alert('Sorry, iOS only!');
return;
}

hockeyapp.showFeedbackComposeView();

});

var btnShow = Ti.UI.createButton({
top: 200,
title: 'View feedback'
});

btnShow.addEventListener('click', function(e) {

if (Ti.Platform.name !== 'iPhone OS') {
alert('Sorry, iOS only!');
return;
}

hockeyapp.showFeedbackListView();

});

win.add(btnSent);
win.add(btnShow);

win.open();

0 comments on commit 8bd28d8

Please sign in to comment.