Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20068] Ti.barcode stopped to work in IOS8 after adding 64 bit support

GitHub Issuen/a
TypeStory
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-02-03T08:38:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterMurali Rama
AssigneeHans Knöchel
Created2015-09-02T14:37:50.000+0000
Updated2017-03-21T18:37:47.000+0000

Description

Hello, Ti.barcode stopped to work in IOS8 after adding 64 bit support in our App. Can you please see if we are missing something in integration? Thank you.

Comments

  1. Amimul Hossain 2015-10-08

    Hello, I have tested the module in SDK 5.0.0.GA, 5.0.1.GA, 5.0.2.GA the module is working fine with 64bit support. Please use the module version [ios-1.9.1](https://github.com/appcelerator-modules/ti.barcode/releases) for iOS. Thanks.
  2. Michael Gangolf 2015-11-06

    I have started to fork ti.barcode and add the 64bit stuff: https://github.com/m1ga/ti.barcode a working binary is included. I still need to figure out three things: 1: https://github.com/m1ga/ti.barcode/blob/master/ios/Classes/TiBarcodeModule.mm#L170 why is there a error UIImage -> return value CImage ? 2: https://github.com/m1ga/ti.barcode/blob/master/ios/zxing/iphone/ZXingWidget/Classes/ZXingWidgetController.m#L413 automate the rotation 3: overlay seems to be under the camera view. At least its not visible Then I can create a pull request. I'm not a xcode developer so it takes a bit of trial and error to see if I can fix it. But perhaps someone else can help and we have an up to date version again!
  3. Michael Gangolf 2015-11-06

    Pull request for 64bit version and initial rotation (e.g. landscape only app https://github.com/appcelerator-modules/ti.barcode/pull/26)
  4. Sharif AbuDarda 2015-11-11

    Hello [~shossain], there seems to be an issue. I have again tested the ti.barcode module with SDK 5.0.2.GA with 64bit support. The module is working fine with 64bit support with iOS 9.1. I used the module version [ios-1.9.2](https://github.com/m1ga/ti.barcode). The same module is not working in iOS 8.1.1 with SDK 5.0.2.GA with 64bit support. [~michael], can you upgrade your iOS version to 9.x and check. Thanks
  5. Michael Gangolf 2015-11-11

    I have mine running in 9.1 (iPad 3 and iPad mini) with Ti 5.0.2.GA and an iPad 2 (8.1.3). But there is still an issue with the overlays. They are visible but not clickable, but if you just need a scanner it should work already
  6. Hans Knöchel 2016-01-05

    PR: https://github.com/appcelerator-modules/ti.barcode/pull/32 Also fixes MOD-2183. Example:
       var Barcode = require('ti.barcode');
       
       var win = Ti.UI.createWindow({
           title: 'Test',
           backgroundColor: '#eee',
           statusBarStyle: Titanium.UI.iPhone.StatusBar.LIGHT_CONTENT
       });
       
       var overlay = Ti.UI.createView({
           backgroundColor: '#f00',
           top: 0, left: 0, right: 0,
           height: 50
       });
       
       var header = Ti.UI.createView({
           backgroundColor: '#222',
           top: 0,
           height: 50
       });
       overlay.add(header);
       
       //win.add(overlay);
       win.addEventListener('open', function () {
           Barcode.capture({
               animate: false,
               overlay: overlay,
               showCancel: true,
               showRectangle: true,
               keepOpen: true,
               acceptedFormats: [
                   Barcode.FORMAT_QR_CODE
               ]
           });
       });
       
       Barcode.addEventListener('success', function (e) {
           Ti.API.info('Barcode: ' + e.result);
       });
       
       win.open();
       
  7. Srikanth Sombhatla 2016-02-03

    PR merged.
  8. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source