cordova-plugin-nativeaudio icon indicating copy to clipboard operation
cordova-plugin-nativeaudio copied to clipboard

[__NSArrayM insertObject:atIndex:]:

Open vennassafir opened this issue 5 years ago • 1 comments

Hi,

I used this plugin on my project . Android is okey but ios has problem. Xcode console like this;

2018-10-14 07:18:18.132381+0300 Appname[55053:1869587] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil' *** First throw call stack: ( 0 CoreFoundation 0x000000011313d12b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x0000000112061f41 objc_exception_throw + 48 2 CoreFoundation 0x000000011317d0cc _CFThrowFormattedException + 194 3 CoreFoundation 0x000000011306c2d5 -[__NSArrayM insertObject:atIndex:] + 1285 4 Appname 0x000000010c37916c -[NativeAudioAsset initWithPath:withVoices:withVolume:withFadeDelay:] + 508 5 Appname 0x000000010c3a79c4 __30-[NativeAudio preloadComplex:]_block_invoke + 388 6 libdispatch.dylib 0x0000000114cf02f7 _dispatch_call_block_and_release + 12 7 libdispatch.dylib 0x0000000114cf133d _dispatch_client_callout + 8 8 libdispatch.dylib 0x0000000114cf6251 _dispatch_queue_override_invoke + 1458 9 libdispatch.dylib 0x0000000114cfd102 _dispatch_root_queue_drain + 772 10 libdispatch.dylib 0x0000000114cfcda0 _dispatch_worker_thread3 + 132 11 libsystem_pthread.dylib 0x00000001151b35a2 _pthread_wqthread + 1299 12 libsystem_pthread.dylib 0x00000001151b307d start_wqthread + 13 )

in my ionic code is here;

scope.nativeAudio .preloadComplex( val.id.toString(), val.url, val.rangeValue / 1000, 1, 0 ) .then(function() { scope.nativeAudio.play(val.id.toString()); scope.nativeAudio.loop(val.id.toString()); });

Please help me... Thanks

vennassafir avatar Oct 14 '18 04:10 vennassafir

Did you ever find an answer to this one?

danielgoodwin97 avatar Jul 30 '23 00:07 danielgoodwin97