Michael Gangolf

Results 266 comments of Michael Gangolf

Sometimes it can be easy :smile: https://github.com/appcelerator-modules/ti.barcode/blob/master/ios/example/app.js#L102 add a `return` below this line and it should work. The module was opening the camera twice

Bug was in `isiOS`: https://github.com/appcelerator-modules/ti.barcode/pull/89

it is just a bug in the example, so if you implement it in your app you don't set isiOS to true on Android.

Check the `modules/android/ti.barcode/4.0.0/timodule.xml` and see if it works when you add `android:screenOrientation="sensor"` to the `com.google.zxing.client.android.CaptureActivity` activity. Normally there shouldn't be any screenOrientation so it should be `The system chooses the...

No, you don't need to recompile your module. The XML is merged into your tiapp.xml. Is your app orientation locked (tss, tiapp.xml)?

added `preventRotation` to https://github.com/appcelerator-modules/ti.barcode/pull/89 setting it to false allows rotation the screen.

These should be the places which needs to be changed (e.g. add a parameter): https://github.com/appcelerator-modules/ti.barcode/blob/aa7ffe059df720d2d079d0e5494b365b7af7441c/android/src/com/google/zxing/client/android/ViewfinderView.java#L102 https://github.com/appcelerator-modules/ti.barcode/blob/aa7ffe059df720d2d079d0e5494b365b7af7441c/android/src/com/google/zxing/client/android/ViewfinderView.java#L183 in case someone wants to go ahead and create a PR

You can already ask for the permissions using normal Ti-SDK methods. Use these before you open ti.barcode

isn't that a problem that was fixed in the titanium SDK 8.2.1?

@ScottKaye which Ti SDK are you using? Also: https://github.com/appcelerator-modules/ti.barcode/releases/tag/v5.0.0-iphone is the latest module