Creating Tickets Tutorial

This tutorial will show you how to create a new ticket with RevTwo In-App Support.  Tickets can be created through the RevTwo API or through the ‘My Tickets’ view included in the library.  The Sample app shows you how to add the ‘My Tickets’ view to your app in both a modal and navigation controller push style.

  1. Open your RevTwoSample app in xcode and run it on your device or simulator.  When the app opens, you will see a list of tutorials.  Select the “Push My Ticket View” tutorial.  This will open a screen that looks like this:
    My Tickets
  2. Fill out the form and tap ‘Submit’
  3. While the app is running, log into and go to the Tickets tab.  You will see the new ticket you created in the list.  Click on the view button to open the ticket.
  4. When you view the ticket, you will see some information about your device, and a list of widgets along the side.  The ones that are greyed out are not available until you connect to the device with a support session.  The Notes & History widget is opened by default.  This is where you can see the ticket’s issue in full detail.  This widget lets you add notes about a ticket while you work on it.  Type some text in the new note field and hit “save” to create a new note.
  5. You also have some ticket management functionality along the left panel.  Use the drop downs to assign the ticket to yourself or someone on your team.  An email will be sent to the new assignee and the Notes & History widget will be updated to track the reassignment.
  6. Click on chat to open the chat widget.  Type in a message and send it.  If you have set up notifications on the sample app, your device will receive a notification.  If you click on the ticket in your app’s my ticket view, you will see the chat message.  Try sending a few back and forth.
  7. From the web, hit the call button to initiate a support session.  Accept the call on your device.  After it connects,  you will see the widgets become enabled.  We will go into greater detail on these in the next tutorials.
  8. When you have resolved the ticket’s issue, use the drop down to close the ticket.
  9. The my ticket view is included in the RevTwo In-App Support Library.  Go back to xcode and open the TutorialTableViewController.m.  Scroll down to the

    didSelectRowAtIndexPath function to see how we create the R2MyTicketsViewController.xcode-newticketviewcontroller

  10. The last piece of code to point out, is the inclusion of RevTwo.h and

    R2MyTicketsViewController.h in TutorialTableViewController.h.  You will need to include the header file in any class you use RevTwo my ticket view in.