Closed andaqui closed 6 years ago
What does the logcat output look like, do you see it making it into the plugin?
On Fri, Aug 24, 2018 at 6:19 AM, kumpanen notifications@github.com wrote:
Hi. Testing this plugin in cordova ionic v1 app. I copy paste from the examples but the options in the wheel don't show up. Can't see any errors in the log either. Here is the code i use:
var data = { numbers: [ {description: "test1"}, {description: "test2"}, {description: "test3"}, {description: "test4"}, {description: "test5"}, {description: "test6"} ], fruits: [ {description: "Apple"}, {description: "Orange"}, {description: "Pear"}, {description: "Banana"}, {description: "Grapefruit"}, {description: "Tangerine"} ], measurements: [ {description: "Teaspoon"}, {description: "Tablespoon"}, {description: "Cup(s)"}, {description: "Quart(s)"}, {description: "Packages (7 oz)"}, {description: "Packages (12 oz)"} ], planets: [ {description: "Venus"}, {description: "Jupiter"}, {description: "Earth"}, {description: "Pluto"}, {description: "Neptune"} ]
};
var config = { title: "Select a quantity", items:[data.numbers], positiveButtonText: "Done", negativeButtonText: "Cancel" };
vm.test = function() { console.log('open wheel', data.numbers);//prints the dataset.
console.log('open wheel config', config);/prints the config. //do something useful with the result: window.SelectorCordovaPlugin.showSelector(config, function(result) { console.log("result: " + result); }, function() { console.log('Canceled'); }); }
Anyone experiencing the same? Any ideas?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jasonmamy/cordova-wheel-selector-plugin/issues/36, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ9UxlYJ91b-dW9tNXLG8OKrXc6XBQYBks5uT_1UgaJpZM4WLVtc .
Sorry, forgot to write that its on ios. I can see it making to the plugin, the wheel selector comes up but the options (dataset) are not there. Its just blank. The device logs says the following:
default 09:11:40.728183 +0200 SpringBoard immediate edge swipe: failed
default 09:11:40.732288 +0200 assertiond [SpringBoard:58] Attempting to acquire assertion for Elitfonster:3365: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21>
default 09:11:40.732869 +0200 assertiond [Elitfonster:3365] Add assertion: <BKProcessAssertion: 0x102d08bd0; id: 58-5CE64042-CBFC-4B2A-B1CD-2242C8D03A21; name: com.apple.UIKit.KeyboardManagement.message; state: active; reason: finishTask; duration: 180.0s> {
owner = <BSProcessHandle: 0x102e076c0; SpringBoard:58; valid: YES>;
flags = preventSuspend, preventThrottleDownUI, preventThrottleDownCPU, preventSuspendOnSleep;
}
default 09:11:40.733484 +0200 assertiond [Elitfonster:3365] Activate assertion: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21>
default 09:11:40.734450 +0200 assertiond [Elitfonster:3365] Setting jetsam priority to 10 [0x10108]
default 09:11:40.734804 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (CPUMON check): {
<BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active]
<BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> [active]
}
default 09:11:40.740995 +0200 assertiond Client relinquished <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21>
default 09:11:40.741255 +0200 assertiond [Elitfonster:3365] Deactivate assertion: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21>
default 09:11:40.741590 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (deactivateAssertion): {
<BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active]
}
default 09:11:40.741997 +0200 assertiond [Elitfonster:3365] Setting jetsam priority to 10 [0x10100]
default 09:11:40.742407 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (CPUMON check): {
<BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active]
}
default 09:11:40.743067 +0200 assertiond [Elitfonster:3365] Remove assertion: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21>
default 09:11:40.743314 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (CPUMON check): {
<BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active]
}
default 09:11:40.781197 +0200 assertiond -[BKAssertion dealloc] - <0x102d08bd0>
default 09:11:40.867032 +0200 routined pre-fetch finished, app launch events, 2741, micro, 0, visit, 185
default 09:11:40.867492 +0200 routined MM@H: bluetoothAddons count, 1
default 09:11:40.867567 +0200 routined MM@H: contextAddons count, 4
default 09:11:40.867608 +0200 routined MM@H: microLocationAddons count, 0
default 09:11:40.867788 +0200 routined MM@H: todAddons count, 4
default 09:11:40.867951 +0200 routined MM@H: weekdayAddons count, 2
default 09:11:40.868083 +0200 routined MM@H: adding RTPredictionExpertApplicationAudio experts for combinations of (contextAddons, microLocationAddons) count, 0
default 09:11:40.868308 +0200 routined MM@H: adding RTPredictionExpertApplicationAudio experts for combinations of (contextAddons, microLocationAddons, todAddons) count, 0
default 09:11:40.868488 +0200 routined MM@H: adding RTPredictionExpertApplicationAudio experts for combinations of (contextAddons, microLocationAddons, weekdayAddons) count, 0
default 09:11:40.868614 +0200 routined MM@H: adding RTPredictionExpertApplicationBluetooth experts for combinations of (bluetoothAddons, microLocationAddons) count, 0
default 09:11:40.868904 +0200 routined MM@H: adding RTPredictionExpertApplicationBluetooth experts for combinations of (bluetoothAddons, microLocationAddons, todAddons) count, 0
default 09:11:40.869087 +0200 routined MM@H: adding RTPredictionExpertApplicationBluetooth experts for combinations of (bluetoothAddons, microLocationAddons, weekdayAddons) count, 0
default 09:11:40.869153 +0200 routined MM@H: adding RTPredictionExpertApplicationDeviceState experts for combinations of (microLocationAddons) count, 0
default 09:11:40.869484 +0200 routined MM@H: adding RTPredictionExpertApplicationMicroLocation experts for combinations of (microLocationAddons) count, 0
default 09:11:40.870084 +0200 routined MM@H: adding RTPredictionExpertApplicationDeviceState experts for combinations of (microLocationAddons, todAddons) count, 0
default 09:11:40.870179 +0200 routined MM@H: adding RTPredictionExpertApplicationMicroLocation experts for combinations of (microLocationAddons, todAddons) count, 0
default 09:11:40.870232 +0200 routined MM@H: adding RTPredictionExpertApplicationDeviceState experts for combinations of (microLocationAddons, weekdayAddons) count, 0
default 09:11:40.870439 +0200 routined MM@H: adding RTPredictionExpertApplicationMicroLocation experts for combinations of (microLocationAddons, weekdayAddons) count, 0
default 09:11:40.870650 +0200 routined MM@H: total count of experts, 0
default 09:11:40.873719 +0200 routined created prediction table, <private>
default 09:11:40.883869 +0200 Elitfonster THREAD WARNING: ['SelectorCordovaPlugin'] took '35.783203' ms. Plugin should use a background thread.
default 09:11:40.935579 +0200 symptomsd L2 Metrics on ifname en0: rssi: -37 (txFrames/txReTx/txFail) 0/0/0 -> (was/is) 0/0
default 09:11:41.712115 +0200 backboardd EventStatistics.m:48 : 87325.57284: Info: 14 Digitizer since 87318.26128 (Mon Aug 27 09:11:34 2018)
default 09:11:42.332789 +0200 configd AUTOMATIC-V6 en2: reported address acquisition failure symptom
Here is a screenshot:
It's really strange as everything looks ok, can you create a blank test app and try just the wheel selector in it? I haven't used ionic v1 in a couple years, so not sure if anything has changed.
On Mon, Aug 27, 2018 at 12:44 AM kumpanen notifications@github.com wrote:
Sorry, forgot to write that its on ios. I can see it making to the plugin, the wheel selector comes up but the options (dataset) are not there. Its just blank. The device logs says the following:
default 09:11:40.728183 +0200 SpringBoard immediate edge swipe: failed default 09:11:40.732288 +0200 assertiond [SpringBoard:58] Attempting to acquire assertion for Elitfonster:3365: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.732869 +0200 assertiond [Elitfonster:3365] Add assertion: <BKProcessAssertion: 0x102d08bd0; id: 58-5CE64042-CBFC-4B2A-B1CD-2242C8D03A21; name: com.apple.UIKit.KeyboardManagement.message; state: active; reason: finishTask; duration: 180.0s> { owner = <BSProcessHandle: 0x102e076c0; SpringBoard:58; valid: YES>; flags = preventSuspend, preventThrottleDownUI, preventThrottleDownCPU, preventSuspendOnSleep; } default 09:11:40.733484 +0200 assertiond [Elitfonster:3365] Activate assertion: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.734450 +0200 assertiond [Elitfonster:3365] Setting jetsam priority to 10 [0x10108] default 09:11:40.734804 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (CPUMON check): { <BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active] <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> [active] } default 09:11:40.740995 +0200 assertiond Client relinquished <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.741255 +0200 assertiond [Elitfonster:3365] Deactivate assertion: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.741590 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (deactivateAssertion): { <BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active] } default 09:11:40.741997 +0200 assertiond [Elitfonster:3365] Setting jetsam priority to 10 [0x10100] default 09:11:40.742407 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (CPUMON check): { <BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active] } default 09:11:40.743067 +0200 assertiond [Elitfonster:3365] Remove assertion: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.743314 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (CPUMON check): { <BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active] } default 09:11:40.781197 +0200 assertiond -[BKAssertion dealloc] - <0x102d08bd0> default 09:11:40.867032 +0200 routined pre-fetch finished, app launch events, 2741, micro, 0, visit, 185 default 09:11:40.867492 +0200 routined MM@H: bluetoothAddons count, 1 default 09:11:40.867567 +0200 routined MM@H: contextAddons count, 4 default 09:11:40.867608 +0200 routined MM@H: microLocationAddons count, 0 default 09:11:40.867788 +0200 routined MM@H: todAddons count, 4 default 09:11:40.867951 +0200 routined MM@H: weekdayAddons count, 2 default 09:11:40.868083 +0200 routined MM@H: adding RTPredictionExpertApplicationAudio experts for combinations of (contextAddons, microLocationAddons) count, 0 default 09:11:40.868308 +0200 routined MM@H: adding RTPredictionExpertApplicationAudio experts for combinations of (contextAddons, microLocationAddons, todAddons) count, 0 default 09:11:40.868488 +0200 routined MM@H: adding RTPredictionExpertApplicationAudio experts for combinations of (contextAddons, microLocationAddons, weekdayAddons) count, 0 default 09:11:40.868614 +0200 routined MM@H: adding RTPredictionExpertApplicationBluetooth experts for combinations of (bluetoothAddons, microLocationAddons) count, 0 default 09:11:40.868904 +0200 routined MM@H: adding RTPredictionExpertApplicationBluetooth experts for combinations of (bluetoothAddons, microLocationAddons, todAddons) count, 0 default 09:11:40.869087 +0200 routined MM@H: adding RTPredictionExpertApplicationBluetooth experts for combinations of (bluetoothAddons, microLocationAddons, weekdayAddons) count, 0 default 09:11:40.869153 +0200 routined MM@H: adding RTPredictionExpertApplicationDeviceState experts for combinations of (microLocationAddons) count, 0 default 09:11:40.869484 +0200 routined MM@H: adding RTPredictionExpertApplicationMicroLocation experts for combinations of (microLocationAddons) count, 0 default 09:11:40.870084 +0200 routined MM@H: adding RTPredictionExpertApplicationDeviceState experts for combinations of (microLocationAddons, todAddons) count, 0 default 09:11:40.870179 +0200 routined MM@H: adding RTPredictionExpertApplicationMicroLocation experts for combinations of (microLocationAddons, todAddons) count, 0 default 09:11:40.870232 +0200 routined MM@H: adding RTPredictionExpertApplicationDeviceState experts for combinations of (microLocationAddons, weekdayAddons) count, 0 default 09:11:40.870439 +0200 routined MM@H: adding RTPredictionExpertApplicationMicroLocation experts for combinations of (microLocationAddons, weekdayAddons) count, 0 default 09:11:40.870650 +0200 routined MM@H: total count of experts, 0 default 09:11:40.873719 +0200 routined created prediction table,
default 09:11:40.883869 +0200 Elitfonster THREAD WARNING: ['SelectorCordovaPlugin'] took '35.783203' ms. Plugin should use a background thread. default 09:11:40.935579 +0200 symptomsd L2 Metrics on ifname en0: rssi: -37 (txFrames/txReTx/txFail) 0/0/0 -> (was/is) 0/0 default 09:11:41.712115 +0200 backboardd EventStatistics.m:48 : 87325.57284: Info: 14 Digitizer since 87318.26128 (Mon Aug 27 09:11:34 2018) default 09:11:42.332789 +0200 configd AUTOMATIC-V6 en2: reported address acquisition failure symptom Here is a screenshot: [image: image 2018-08-27 09 16 40] https://user-images.githubusercontent.com/988605/44647233-c56e3200-a9dd-11e8-8538-46f00aed9b00.jpg
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jasonmamy/cordova-wheel-selector-plugin/issues/36#issuecomment-416143691, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ9UxvzIXMkdCuFCpKnOfzLRAqNhLZzbks5uU6N1gaJpZM4WLVtc .
Maybe try this:
items:[[data.numbers]]
Instead of this:
items:[data.numbers]
On Mon, Aug 27, 2018 at 9:45 AM JasonAmy jasonmamy@gmail.com wrote:
It's really strange as everything looks ok, can you create a blank test app and try just the wheel selector in it? I haven't used ionic v1 in a couple years, so not sure if anything has changed.
On Mon, Aug 27, 2018 at 12:44 AM kumpanen notifications@github.com wrote:
Sorry, forgot to write that its on ios. I can see it making to the plugin, the wheel selector comes up but the options (dataset) are not there. Its just blank. The device logs says the following:
default 09:11:40.728183 +0200 SpringBoard immediate edge swipe: failed default 09:11:40.732288 +0200 assertiond [SpringBoard:58] Attempting to acquire assertion for Elitfonster:3365: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.732869 +0200 assertiond [Elitfonster:3365] Add assertion: <BKProcessAssertion: 0x102d08bd0; id: 58-5CE64042-CBFC-4B2A-B1CD-2242C8D03A21; name: com.apple.UIKit.KeyboardManagement.message; state: active; reason: finishTask; duration: 180.0s> { owner = <BSProcessHandle: 0x102e076c0; SpringBoard:58; valid: YES>; flags = preventSuspend, preventThrottleDownUI, preventThrottleDownCPU, preventSuspendOnSleep; } default 09:11:40.733484 +0200 assertiond [Elitfonster:3365] Activate assertion: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.734450 +0200 assertiond [Elitfonster:3365] Setting jetsam priority to 10 [0x10108] default 09:11:40.734804 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (CPUMON check): { <BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active] <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> [active] } default 09:11:40.740995 +0200 assertiond Client relinquished <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.741255 +0200 assertiond [Elitfonster:3365] Deactivate assertion: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.741590 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (deactivateAssertion): { <BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active] } default 09:11:40.741997 +0200 assertiond [Elitfonster:3365] Setting jetsam priority to 10 [0x10100] default 09:11:40.742407 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (CPUMON check): { <BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active] } default 09:11:40.743067 +0200 assertiond [Elitfonster:3365] Remove assertion: <BKProcessAssertion: 0x102d08bd0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…2242C8D03A21> default 09:11:40.743314 +0200 assertiond [Elitfonster:3365] dump all assertions HWM:5 (CPUMON check): { <BKProcessAssertion: 0x102d170e0; "Resume" (activation:inf); id:…0DFB949806E3> [active] } default 09:11:40.781197 +0200 assertiond -[BKAssertion dealloc] - <0x102d08bd0> default 09:11:40.867032 +0200 routined pre-fetch finished, app launch events, 2741, micro, 0, visit, 185 default 09:11:40.867492 +0200 routined MM@H: bluetoothAddons count, 1 default 09:11:40.867567 +0200 routined MM@H: contextAddons count, 4 default 09:11:40.867608 +0200 routined MM@H: microLocationAddons count, 0 default 09:11:40.867788 +0200 routined MM@H: todAddons count, 4 default 09:11:40.867951 +0200 routined MM@H: weekdayAddons count, 2 default 09:11:40.868083 +0200 routined MM@H: adding RTPredictionExpertApplicationAudio experts for combinations of (contextAddons, microLocationAddons) count, 0 default 09:11:40.868308 +0200 routined MM@H: adding RTPredictionExpertApplicationAudio experts for combinations of (contextAddons, microLocationAddons, todAddons) count, 0 default 09:11:40.868488 +0200 routined MM@H: adding RTPredictionExpertApplicationAudio experts for combinations of (contextAddons, microLocationAddons, weekdayAddons) count, 0 default 09:11:40.868614 +0200 routined MM@H: adding RTPredictionExpertApplicationBluetooth experts for combinations of (bluetoothAddons, microLocationAddons) count, 0 default 09:11:40.868904 +0200 routined MM@H: adding RTPredictionExpertApplicationBluetooth experts for combinations of (bluetoothAddons, microLocationAddons, todAddons) count, 0 default 09:11:40.869087 +0200 routined MM@H: adding RTPredictionExpertApplicationBluetooth experts for combinations of (bluetoothAddons, microLocationAddons, weekdayAddons) count, 0 default 09:11:40.869153 +0200 routined MM@H: adding RTPredictionExpertApplicationDeviceState experts for combinations of (microLocationAddons) count, 0 default 09:11:40.869484 +0200 routined MM@H: adding RTPredictionExpertApplicationMicroLocation experts for combinations of (microLocationAddons) count, 0 default 09:11:40.870084 +0200 routined MM@H: adding RTPredictionExpertApplicationDeviceState experts for combinations of (microLocationAddons, todAddons) count, 0 default 09:11:40.870179 +0200 routined MM@H: adding RTPredictionExpertApplicationMicroLocation experts for combinations of (microLocationAddons, todAddons) count, 0 default 09:11:40.870232 +0200 routined MM@H: adding RTPredictionExpertApplicationDeviceState experts for combinations of (microLocationAddons, weekdayAddons) count, 0 default 09:11:40.870439 +0200 routined MM@H: adding RTPredictionExpertApplicationMicroLocation experts for combinations of (microLocationAddons, weekdayAddons) count, 0 default 09:11:40.870650 +0200 routined MM@H: total count of experts, 0 default 09:11:40.873719 +0200 routined created prediction table,
default 09:11:40.883869 +0200 Elitfonster THREAD WARNING: ['SelectorCordovaPlugin'] took '35.783203' ms. Plugin should use a background thread. default 09:11:40.935579 +0200 symptomsd L2 Metrics on ifname en0: rssi: -37 (txFrames/txReTx/txFail) 0/0/0 -> (was/is) 0/0 default 09:11:41.712115 +0200 backboardd EventStatistics.m:48 : 87325.57284: Info: 14 Digitizer since 87318.26128 (Mon Aug 27 09:11:34 2018) default 09:11:42.332789 +0200 configd AUTOMATIC-V6 en2: reported address acquisition failure symptom Here is a screenshot: [image: image 2018-08-27 09 16 40] https://user-images.githubusercontent.com/988605/44647233-c56e3200-a9dd-11e8-8538-46f00aed9b00.jpg
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jasonmamy/cordova-wheel-selector-plugin/issues/36#issuecomment-416143691, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ9UxvzIXMkdCuFCpKnOfzLRAqNhLZzbks5uU6N1gaJpZM4WLVtc .
Nice call! [[data.numbers]] solved the issue. Thanks.
Hi. Testing this plugin in cordova ionic v1 app. I copy paste from the examples but the options in the wheel don't show up. Can't see any errors in the log either. Here is the code i use:
Anyone experiencing the same? Any ideas?