Bluetooth Scanner And Virtual Keyboard Troubleshoot

Discussion in 'iOS Programming' started by loon3y, Feb 1, 2013.

  1. macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #1
    For my app, im gonna have the option to have either a linea pro/infinea tab device or a bluetooth scanner.


    the problem i have is that the bluetooth scanner is recognized as a bluetooth keyboard, so the virtual key board doesn't show up.

    and the user is going to need to enter in the quantity manually (if needed) or customer information manually (if it is a new customer) so the need for the virtual keyboard is imperative.


    i was looking for a solution for this since the beginning of the development, but never found it.

    can anyone give me a solution for this problem? did anyone else run into this problem?
     
  2. macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #2
    You want to use SPP. As you have found out, only one keyboard can be active in iOS when using HID.

    What are HID and SPP?

    I've played a little bit with one of these, Socket 7 scanner The SDK is bit confusing but gives you some nice flexibility. It will allow you to do what your looking for, as I've done exactly that.
     
  3. macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    A bad idea, but you could roll your own keyboard, if you can't find any other solution.
     
  4. thread starter macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #4
    why is it a bad idea?? what are the dangers/problems of using this method?




    i also found this suggestion (first answer):


    http://stackoverflow.com/questions/...ardware-keyboard-is-connected/3837131#3837131


    haven't tried this solution yet, but will have the dev team try it out.


    i rather not have to push every customer to linea pro products, if we cant get this to work. i want to give them a cheaper option of buying a regular bluetooth scanner instead of buying a 500-700 dollar device.
     
  5. macrumors 6502a

    Joined:
    Mar 30, 2012
    #5
    Don't see why it's a bad idea? especially if it's only numeric, backspace, and enter keys.
    I wonder what would happen if you ripped the iOS keypad graphic and used that?
    I did that with two UI buttons, but the gfx were beyond recognition by the
    time I used them.
     
  6. thread starter macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #6
    i think he was talking about that other bluetooth solution was a bad idea.


    can u just call teh accessory keyboard?
     

Share This Page