Git Product home page Git Product logo

nativescript-plugins's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nativescript-plugins's Issues

Plugin: nativescript-tracking-transparency - Apple iOS ATT is not working on iOS 15

Apparently, there could be a new API on iOS 15 for getting authorization status:

class func requestTrackingAuthorization() async -> ATTrackingManager.AuthorizationStatus

Please see: https://developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/3547037-requesttrackingauthorization

My implementation of this plugin was previously working and approved by Apple Team on iOS 14. However, Apple Team is rejecting it on iOS 15 terms now.

May I request @NathanWalker @triniwiz to review this plugin again please? Thank you.

Camera-plus demo crash

I had a few issues getting the demo to run but after the changes in PR #31 I am now experiencing an immediate crash on iOS as soon as I click on nativescript-camera-plus. The stack trace is below.

I have isolated the issue to the first access of this._swifty.previewLayer. As soon as the app tries to access that property it crashes.

Do you have any idea why this would be? I'm attempting to get the demo to work so that I can help out with #12.

CONSOLE LOG: NativeScript-CameraPlus --- [xml width/height: 350x506.3333333333333]
====== Assertion failed ======
Native stack trace:
1          0x1032ca158 tns::Assert(bool, v8::Isolate*) + 128
2          0x1032a4028 tns::MetadataBuilder::RegisterStaticMethods(v8::Local<v8::Context>, v8::Local<v8::Function>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, robin_hood::detail::Table<true, 80ul, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned char, robin_hood::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&) + 476
3          0x1032a1eb4 tns::MetadataBuilder::GetOrCreateConstructorFunctionTemplateInternal(v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, robin_hood::detail::Table<true, 80ul, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned char, robin_hood::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, robin_hood::detail::Table<true, 80ul, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned char, robin_hood::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::_<\M-b\M^@\M-&>
4          0x1032a0100 tns::MetadataBuilder::GetOrCreateConstructorFunctionTemplate(v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) + 88
5          0x103253bb4 std::__1::function<v8::Local<v8::FunctionTemplate> (v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&)>::operator()(v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) const + 60
6          0x103250fb8 tns::ArgConverter::CreateJsWrapper(v8::Local<v8::Context>, tns::BaseDataWrapper*, v8::Local<v8::Object>, bool, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) + 1392
7          0x1032eb56c tns::Interop::GetResult(v8::Local<v8::Context>, tns::TypeEncoding const*, tns::BaseCall*, bool, std::__1::shared_ptr<v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> > >, bool, bool, bool, bool) + 3708
8          0x1032e77a0 tns::Interop::CallFunctionInternal(tns::MethodCall&) + 496
9          0x103250428 tns::ArgConverter::Invoke(v8::Local<v8::Context>, objc_class*, v8::Local<v8::Object>, tns::V8Args&, tns::MethodMeta const*, bool) + 780
10         0x1032a5030 tns::MetadataBuilder::InvokeMethod(v8::Local<v8::Context>, tns::MethodMeta const*, v8::Local<v8::Object>, tns::V8Args&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool) + 88
11         0x1032a4b24 tns::MetadataBuilder::PropertyGetterCallback(v8::FunctionCallbackInfo<v8::Value> const&) + 252
12         0x1033e385c v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) + 540
13         0x1033e2de4 v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 472
14         0x1033e27f0 v8::internal::Builtins::InvokeApiFunction(v8::internal::Isolate*, bool, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*, v8::internal::Handle<v8::internal::HeapObject>) + 504
15         0x103732970 v8::internal::Object::GetPropertyWithAccessor(v8::internal::LookupIterator*) + 744
16         0x103732044 v8::internal::Object::GetProperty(v8::internal::LookupIterator*, bool) + 140
17         0x1035aeef8 v8::internal::LoadIC::Load(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>, bool, v8::internal::Handle<v8::internal::Object>) + 2352
18         0x1035b7174 v8::internal::Runtime_LoadNoFeedbackIC_Miss(int, unsigned long*, v8::internal::Isolate*) + 252
19         0x103baa76c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit + 108
20         0x103c250dc Builtins_LdaNamedPropertyHandler + 3932
21         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
22         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
23         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
24         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
25         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
26         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
27         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
28         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
29         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
30         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
31         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
32         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
33         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
34         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
35         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
36         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
37         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
38         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
39         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
40         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
41         0x103b49690 Builtins_InterpreterEntryTrampoline + 240
42         0x103b470ac Builtins_JSEntryTrampoline + 172
43         0x103b46d48 Builtins_JSEntry + 168
44         0x1059f0000 44  ???                                 0x00000001059f0000 0x0 + 4389273600
JavaScript stack trace:
at _onLayoutChangeFn (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/packages/nativescript-camera-plus/index.ts:864:15)
at _handleEvent (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/node_modules/@nativescript/core/data/observable/index.js:233:0)
at notify (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/node_modules/@nativescript/core/data/observable/index.js:216:0)
at _raiseLayoutChangedEvent (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/node_modules/@nativescript/core/ui/core/view/view-common.js:316:0)
at _setNativeViewFrame (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/node_modules/@nativescript/core/ui/core/view/index.js:142:0)
at layoutNativeView (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/node_modules/@nativescript/core/ui/core/view/index.js:170:0)
at layout (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/node_modules/@nativescript/core/ui/core/view/index.js:62:0)
at layoutChild (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/node_modules/@nativescript/core/ui/core/view/view-helper/view-helper-common.js:96:0)
at layoutChild (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/node_modules/@nativescript/core/ui/core/view/view-common.js:672:18)
at <anonymous> (file: src/Users/nickfredricks/FlyPaper/nativescript-plugins/node_modules/@nativescript/core/ui/layouts/stack-layout/index.js:111:16)

DASH DRM

Please how to deal with DRM ( PlayReady ) in DASH format

Crash in Android device when adding nativescript-checkbox to a Nativescript 8.2.2 project

Description
The app can run in debug mode but it crashes in Android device when adding nativescript-checkbox to a Nativescript 8.2.2 project.

The 2 lines of plugin code may not work as intended:

  1. https://github.com/nstudio/nativescript-plugins/blob/main/packages/nativescript-checkbox/index.android.ts#:~:text=const%20AppCompatCheckBox_Namespace%20%3D%20useAndroidX()%20%3F%20androidx.appcompat.widget%20%3A%20(android.support%20as%20any).v7.widget%3B

  2. https://github.com/nstudio/nativescript-plugins/blob/main/packages/nativescript-checkbox/index.android.ts#:~:text=const%20CompoundButtonCompat_Namespace%20%3D%20useAndroidX()%20%3F%20androidx.core.widget%20%3A%20(android.support.v4%20as%20any).widget%3B

Somehow the global variables:
global.androidx , com.google , com.google.android and com.google.android.material
don't contain expected values.

Environment and code repository
Nativescript: CLI 8.2.2
JAVA: openjdk version "11.0.14.1" 2022-02-08 LTS
Node: v14.17.0
Npm: 6.14.13
Android Studio: Bumblebee | 2021.1.1 Patch 2
Android SDK: 31,30,29,28
Code repository: https://github.com/banchasf/nscheckbox

Error message

03-16 19:19:19.523  8197  8197 D TNS.Runtime: V8 version 8.3.110.9
03-16 19:19:19.907  8197  8197 D AndroidRuntime: Shutting down VM
03-16 19:19:19.908  8197  8197 E AndroidRuntime: FATAL EXCEPTION: main
03-16 19:19:19.908  8197  8197 E AndroidRuntime: Process: org.nativescript.nsmscheckbox, PID: 8197
03-16 19:19:19.908  8197  8197 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: TypeError: Cannot read property 'widget' of undefined
03-16 19:19:19.908  8197  8197 E AndroidRuntime: File: (file:///data/data/org.nativescript.nsmscheckbox/files/app/vendor.js:2:760452)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: StackTrace: 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 19827(file:///data/data/org.nativescript.nsmscheckbox/files/app/vendor.js:2:760453)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at __webpack_require__(file:///data/data/org.nativescript.nsmscheckbox/files/app/runtime.js:1:197)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at 8898(file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:111741)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at __webpack_require__(file:///data/data/org.nativescript.nsmscheckbox/files/app/runtime.js:1:197)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at __webpack_exec__(file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112199)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at (file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112276)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at __webpack_require__.X(file:///data/data/org.nativescript.nsmscheckbox/files/app/runtime.js:1:1182)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at (file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112212)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at (file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112443)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at require(:1:266)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: TypeError: Cannot read property 'widget' of undefined
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6717)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at android.app.ActivityThread.access$1300(ActivityThread.java:237)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:223)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7656)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: Caused by: com.tns.NativeScriptException: Error calling module function 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: TypeError: Cannot read property 'widget' of undefined
03-16 19:19:19.908  8197  8197 E AndroidRuntime: File: (file:///data/data/org.nativescript.nsmscheckbox/files/app/vendor.js:2:760452)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: StackTrace: 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 19827(file:///data/data/org.nativescript.nsmscheckbox/files/app/vendor.js:2:760453)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at __webpack_require__(file:///data/data/org.nativescript.nsmscheckbox/files/app/runtime.js:1:197)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at 8898(file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:111741)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at __webpack_require__(file:///data/data/org.nativescript.nsmscheckbox/files/app/runtime.js:1:197)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at __webpack_exec__(file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112199)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at (file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112276)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at __webpack_require__.X(file:///data/data/org.nativescript.nsmscheckbox/files/app/runtime.js:1:1182)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at (file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112212)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at (file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112443)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at require(:1:266)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 
03-16 19:19:19.908  8197  8197 E AndroidRuntime: TypeError: Cannot read property 'widget' of undefined
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at com.tns.Runtime.runModule(Native Method)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at com.tns.Runtime.runModule(Runtime.java:689)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at com.tns.Runtime.run(Runtime.java:681)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6712)
03-16 19:19:19.908  8197  8197 E AndroidRuntime: 	... 8 more
03-16 19:19:19.911   513  2089 I am_crash: [8197,0,org.nativescript.nsmscheckbox,816365124,com.tns.NativeScriptException,Error calling module function 
03-16 19:19:19.911   513  2089 I am_crash: TypeError: Cannot read property 'widget' of undefined
03-16 19:19:19.911   513  2089 I am_crash: File: (file:///data/data/org.nativescript.nsmscheckbox/files/app/vendor.js:2:760452)
03-16 19:19:19.911   513  2089 I am_crash: 
03-16 19:19:19.911   513  2089 I am_crash: StackTrace: 
03-16 19:19:19.911   513  2089 I am_crash: 19827(file:///data/data/org.nativescript.nsmscheckbox/files/app/vendor.js:2:760453)
03-16 19:19:19.911   513  2089 I am_crash: 	at __webpack_require__(file:///data/data/org.nativescript.nsmscheckbox/files/app/runtime.js:1:197)
03-16 19:19:19.911   513  2089 I am_crash: 	at 8898(file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:111741)
03-16 19:19:19.911   513  2089 I am_crash: 	at __webpack_require__(file:///data/data/org.nativescript.nsmscheckbox/files/app/runtime.js:1:197)
03-16 19:19:19.911   513  2089 I am_crash: 	at __webpack_exec__(file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112199)
03-16 19:19:19.911   513  2089 I am_crash: 	at (file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112276)
03-16 19:19:19.911   513  2089 I am_crash: 	at __webpack_require__.X(file:///data/data/org.nativescript.nsmscheckbox/files/app/runtime.js:1:1182)
03-16 19:19:19.911   513  2089 I am_crash: 	at (file:///data/data/org.nativescript.nsmscheckbox/files/app/bundle.js:1:112212)

@nstudio/nativescript-plaid Link does not load on Android

Hi guys !

So the plaid plugin is working fine on iOS but I cannot get Link to load right after get the LinkToken on Android : the page opens with the spinner for a second or so and then it closes.

I thought it was working on the previous versions of this plugin so I tried to bump up the version of the Android SDK from 3.1.0 to 3.3.1 (with a few settings to make it work) but sadly the problem is the same.

I tried on this config

  • Nativescript 7 (TS)
  • Android Emulator and a real Android phone (Android 10)

I am new to Nativescript so I could not interesting log output from the console.
(I am using the ns debug android command but it does not log much)

Could you help me with this issue ?

[camera-plus] Known issues: video recording and preview layer.

This is to move the known issues from the old repository to here. My changes / PR were used as the base to move the code to here and there were some known issues particularly on iOS:

  • Crash on launch when attempting to render the previewLayer
    Workaround: Commenting the lines as shown below allows this to be launched as expected
private _onLayoutChangeFn(args: any) {
  const size = this.getActualSize();
  CLog(`xml width/height: ${size.width}x${size.height}`);
  const frame = this._swifty.view.frame;
  this._swifty.view.frame = CGRectMake(frame.origin.x, frame.origin.y, size.width, size.height);
  // this._swifty.previewLayer.frame = CGRectMake(frame.origin.x, frame.origin.y, size.width, size.height);
  this._swifty.view.setNeedsLayout();
  // this._swifty.previewLayer.setNeedsLayout();
}

Crash log:

CONSOLE LOG: NativeScript-CameraPlus --- [MySwifty viewDidAppear]
Received configuration update from daemon (initial)
CONSOLE LOG: NativeScript-CameraPlus --- [xml width/height: 414x342]
====== Assertion failed ======
Native stack trace:
1          0x10112e12c tns::Assert(bool, v8::Isolate*) + 128
2          0x1010ef0f8 tns::MetadataBuilder::RegisterStaticMethods(v8::Local<v8::Context>, v8::Local<v8::Function>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, robin_hood::detail::Table<true, 80ul, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned char, robin_hood::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&) + 476
3          0x1010ecf84 tns::MetadataBuilder::GetOrCreateConstructorFunctionTemplateInternal(v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, robin_hood::detail::Table<true, 80ul, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned char, robin_hood::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, robin_hood::detail::Table<true, 80ul, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned char, robin_hood::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::_<\M-b\M^@\M-&>
4          0x1010eb1d0 tns::MetadataBuilder::GetOrCreateConstructorFunctionTemplate(v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) + 88
5          0x1010959b0 std::__1::function<v8::Local<v8::FunctionTemplate> (v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&)>::operator()(v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) const + 60
6          0x101092db4 tns::ArgConverter::CreateJsWrapper(v8::Local<v8::Context>, tns::BaseDataWrapper*, v8::Local<v8::Object>, bool, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) + 1392
7          0x1011563e4 tns::Interop::GetResult(v8::Local<v8::Context>, tns::TypeEncoding const*, tns::BaseCall*, bool, std::__1::shared_ptr<v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> > >, bool, bool, bool, bool) + 3708
8          0x101152614 tns::Interop::CallFunctionInternal(tns::MethodCall&) + 496
9          0x101092224 tns::ArgConverter::Invoke(v8::Local<v8::Context>, objc_class*, v8::Local<v8::Object>, tns::V8Args&, tns::MethodMeta const*, bool) + 780
10         0x1010f0100 tns::MetadataBuilder::InvokeMethod(v8::Local<v8::Context>, tns::MethodMeta const*, v8::Local<v8::Object>, tns::V8Args&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool) + 88
11         0x1010efbf4 tns::MetadataBuilder::PropertyGetterCallback(v8::FunctionCallbackInfo<v8::Value> const&) + 252
12         0x10126be10 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) + 536
13         0x10126b3dc v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 516
14         0x10126add0 v8::internal::Builtins::InvokeApiFunction(v8::internal::Isolate*, bool, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*, v8::internal::Handle<v8::internal::HeapObject>) + 492
15         0x101591214 v8::internal::Object::GetPropertyWithAccessor(v8::internal::LookupIterator*) + 372
16         0x101590a6c v8::internal::Object::GetProperty(v8::internal::LookupIterator*, bool) + 140
17         0x1014247c8 v8::internal::LoadIC::Load(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>, bool) + 1428
18         0x10142cc64 v8::internal::Runtime_LoadNoFeedbackIC_Miss(int, unsigned long*, v8::internal::Isolate*) + 216
19         0x1019fcc4c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit + 108
20         0x101a6f778 Builtins_LdaNamedPropertyHandler + 4408
21         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
22         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
23         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
24         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
25         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
26         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
27         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
28         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
29         0x10198e504 Builtins_ArgumentsAdaptorTrampoline + 228
30         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
31         0x10198e504 Builtins_ArgumentsAdaptorTrampoline + 228
32         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
33         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
34         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
35         0x10198e504 Builtins_ArgumentsAdaptorTrampoline + 228
36         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
37         0x10198e504 Builtins_ArgumentsAdaptorTrampoline + 228
38         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
39         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
40         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
41         0x10198e504 Builtins_ArgumentsAdaptorTrampoline + 228
42         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
43         0x10198e504 Builtins_ArgumentsAdaptorTrampoline + 228
44         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
45         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
46         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
47         0x10198e504 Builtins_ArgumentsAdaptorTrampoline + 228
48         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
49         0x1019956b4 Builtins_InterpreterEntryTrampoline + 244
50         0x101992f64 Builtins_JSEntryTrampoline + 164
51         0x101992c08 Builtins_JSEntry + 168
52         0x143b0c000 52  ???                                 0x0000000143b0c000 0x0 + 5430624256
  • Hard crash when stopping recording of a video
    No known workaround so far.

Despite this being set:
UISaveVideoAtPathToSavedPhotosAlbum(recordingPath, this, 'videoDidFinishSavingWithErrorContextInfo', null);

When you stop recording a video you get a hard crash with errors similar to this:

***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught Error: MySwifty<0x1088e5800> does not respond to selector videoDidFinishSavingWithErrorContextInfo
at
module.exports.push.../../src/camera-plus.ts.MySwifty.recordingReady(file:///app/bundle.js:788:17)
at module.exports.push.../../src/camera-plus.ts.SwiftyDelegate.swiftyCamDidFinishProcessVideoAt(file:///app/bundle.js:569:27)
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught Error: MySwifty<0x1088e5800> does not respond to selector videoDidFinishSavingWithErrorContextInfo
at
module.exports.push.../../src/camera-plus.ts.MySwifty.recordingReady(file:///app/bundle.js:788:17)
at module.exports.push.../../src/camera-plus.ts.SwiftyDelegate.swiftyCamDidFinishProcessVideoAt(file:///app/bundle.js:569:27)
', reason: '(null)'

Problem opening Plaid Link : Can't find variable PLKLinkTokenConfiguration

For plugin nstudio/nativescript-plaid on iOS, when testing on iOS (14.4) the Plaid Link does not open and following error occurs :

2021-03-05 11:49:39.446 nsplaydev[3798:1258227] *** JavaScript call stack:
(
	0   UIApplicationMain@[native code]
	1   run@file:///app/tns_modules/@nativescript/core/application/application.js:312:26
	2   @file:///app/bundle.js:159:67
	3   ./app.ts@file:///app/bundle.js:175:34
	4   __webpack_require__@file:///app/runtime.js:817:34
	5   checkDeferredModules@file:///app/runtime.js:44:42
	6   webpackJsonpCallback@file:///app/runtime.js:31:39
	7   anonymous@file:///app/bundle.js:2:61
	8   evaluate@[native code]
	9   moduleEvaluation@:1:11
	10  @:2:1
	11  asyncFunctionResume@:1:11
	12  @:24:9
	13  promiseReactionJob@:1:11
)
2021-03-05 11:49:39.446 nsplaydev[3798:1258227] *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: ReferenceError: Can't find variable: PLKLinkTokenConfiguration

I am using a Link Token in a sandbox environment

plaid iOS SDK 2.0.11

[nativescript-filterable-listpicker] [angular] 'GridLayout' not found for element 'GridLayout'

NS 8
"@nstudio/nativescript-filterable-listpicker": "^3.0.0"

New ng app

Simple page:

<GridLayout>
<FilterableListpicker blur="dark" hintText="Type to filter..."></FilterableListpicker>
</GridLayout>

System.err: Calling js method onCreateView failed

System.err: Error: Parsing XML at 2:11

System.err: > Module 'GridLayout' not found for element 'GridLayout'.

System.err: > com.tns.NativeScriptException: Failed to find module: "@nativescript/core/ui", relative to: app/tns_modules/

Maybe the same issue:
NativeScript/nativescript-dev-webpack#1121

Was working fine in NS 6

exoplayer: player.mute() does nothing

Calling videoPlayer.mute(true) does nothing.

Dived a little into the source code and found that the mute functionality is commented out

    mute(mute) {
        /* if (this.mediaPlayer) {
           if (mute === true) {
             this.mediaPlayer.setVolume(0);
           } else if (mute === false) {
             this.mediaPlayer.setVolume(1);
           }
         }*/
    }

I uncommented it in my node_modules directory and debugged, this.mediaPlayer is always null, so in effect still does nothing.

If I change it to:

    mute(mute) {
        this.player.setVolume(mute ? 0 : 1);
    }

it seems to mute and unmute fine.

Camera-plus not working on iOS, error this.cam.takePicture is not a function

I am implementing the camera-plus, but this does not work for me in iOS, copy and paste the code of the demo, but even so it still does not work, in the log it tells me that the camera charges Cam loaded, but it does not preview it and when I try to take a photo with the takePicture, it generates this error:
ERROR TypeError: this.cam.takePicture is not a function
Captura de Pantalla 2021-09-18 a la(s) 7 26 58 p  m

{ "dependencies": { "@angular/animations": "~11.2.7", "@angular/common": "~11.2.7", "@angular/compiler": "~11.2.7", "@angular/core": "~11.2.7", "@angular/forms": "~11.2.7", "@angular/platform-browser": "~11.2.7", "@angular/platform-browser-dynamic": "~11.2.7", "@angular/router": "~11.2.7", "@nativescript/angular": "~11.8.0", "@nativescript/core": "~8.0.1", "@nativescript/theme": "~3.0.1", "@nstudio/nativescript-camera-plus": "^4.1.0-alpha.1", "reflect-metadata": "~0.1.13", "rxjs": "~6.6.7", "zone.js": "~0.11.4" }, "devDependencies": { "@angular/compiler-cli": "~11.2.7", "@nativescript/ios": "8.0.0", "@nativescript/types": "~8.0.0", "@nativescript/webpack": "beta", "@ngtools/webpack": "~11.2.6", "typescript": "~4.0.0" }, "private": "true", "readme": "NativeScript Application" }

can't resolve dependencies. can't install project.

i wanna try this repo but i couldn't make it work :

npm run setup

> [email protected] setup
> npx rimraf node_modules package-lock.json dist tmp && npm i && ts-patch install

Need to install the following packages:
  rimraf
Ok to proceed? (y) y
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/zone.js
npm ERR!   dev zone.js@"0.11.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer zone.js@"~0.10.3" from @angular/[email protected]
npm ERR! node_modules/@angular/core
npm ERR!   dev @angular/core@"~10.1.0" from the root project
npm ERR!   peer @angular/core@"10.1.6" from @angular/[email protected]
npm ERR!   node_modules/@angular/animations
npm ERR!     dev @angular/animations@"~10.1.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /home/alpha/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alpha/.npm/_logs/2021-02-16T22_03_15_171Z-debug.log
npm ERR! code 1
npm ERR! path /project/p/lib/video/nativescript-plugins
npm ERR! command failed
npm ERR! command sh -c npx rimraf node_modules package-lock.json dist tmp && npm i && ts-patch install

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alpha/.npm/_logs/2021-02-16T22_03_15_184Z-debug.log

i am using :
node: v12.19.0
npm: 7.5.3
ns: 7.0.1

Any help ?

nativescript-checkbox plugin causing problem to the font size in all the labels in the application on Android

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

CLI: 7.0.10
Cross-platform modules: @nativescript/[email protected] (also tested 7.0.0)
Android Runtime: 7.0.0
Plugin(s): @nstudio/nativescript-checkbox 2.0.3 (also tested 2.0.0)

Describe the bug
Whenever adding TNSCheckBoxModule to the app module, all the fontSize properties in the element and font-size in the css are
not working on the label element (maybe on other elements too).

To Reproduce

  1. Create a new app running ns create HelloWorld --ng
  2. Add fontSize property to the label with some big value
  3. Observe the font size displayed according to the value set.
  4. Add @nstudio/nativescript-checkbox plugin to the project using ns plugin add @nstudio/nativescript-checkbox
  5. Import TNSCheckBoxModule in the app.module.ts
  6. Observe the font size displayed with the default value

Expected behavior
The font size should be honored.

Help camrea-plus import clone

How could I import the camera component after cloning it, which worked fine in a pure javascript project. But in a project in angular it doesn't work. Could you help me on how to import it to make it work.

Unable to run angular demos

Hi,

I'm just trying to run angular demo to test checkbox, because I have a problem with my project making it work with formControl: ERROR Error: No value accessor for form control with name....

To run angular demo, I did:

git clean -fxd
npm i
npm start

and select apps.demo-angular.android

then I get:


> [email protected] start /home/hugo/projects/test/nativescript-plugins
> nps

nps is executing `default` : nps-i
? NativeScript Plugins ~ made with ❤️  Choose a command to start... apps.demo-angular.android
                  ⚆  Run Android  🤖
nps is executing `apps.demo-angular.android` : nx run demo-angular:android

> nx run demo-angular:android
---
Running NativeScript CLI within apps/demo-angular/

ns debug android --force
---
Searching for devices...
Unable to install dependencies. Make sure your package.json is valid and all dependencies are correct. Error is: Command npm failed with exit code 1 Error output:
 npm ERR! code ENOLOCAL
npm ERR! Could not install from "../../dist/packages/nativescript-intercom" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/hugo/.npm/_logs/2022-02-09T22_51_36_656Z-debug.log

Done.

———————————————————————————————————————————————

>  NX   ERROR  Running target "demo-angular:android" failed

  Failed tasks:

  - demo-angular:android

  Hint: run the command with --verbose for more details.

The script called "apps.demo-angular.android" which runs "nx run demo-angular:android" failed with exit code 1 https://github.com/sezna/nps/blob/master/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code

ns doctor

✔ Getting environment information

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
✔ Getting NativeScript components versions information...

ns version

8.1.5
✔ Up to date.

@nstudio/nativescript-input-mask : Textfield mask don't work in iOS

Masking of texts did not work as expected in any of the ios device. I had checked in simulator as well as in real devices. No luck.

Environment:

Node v14
Angular v11
Nativescript v8
Nativescript ios v8
XCode 12

Instructions:

  1. Imported "InputMask" into the main module and registered the element using register element module
  2. HTML has the following element
<InputMask #phoneNumber class="input" formControlName="number" mask="([999]) [999]-[9999]" 
keyboardType="phone" (extractedValueChange)="onPhoneFieldChange($event)"></InputMask>

Issues:

  1. Textfield allows more that the specified numbers within mask (this acts as a usual textfield that allows N number of character, mask property has no effect)
  2. extractedValueChange event too don't occur. I have console logged the values, the function did not get called at all.

Whereas in Android it works great.

Please help overcome this issue.

exoplayer: Exposing surface_type to use texture_view

Hi we have some problems with using the exoplayer plugin in the use case of tilting videos by rotation.
We couldn't find out a good way to change the exoplayers surface_type to texture_view which is needed for rotation to work.
At the moment we hot patch the plugin to load a layout of this form.

<merge xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <com.google.android.exoplayer2.ui.PlayerView
        app:surface_type="texture_view"
    />
</merge>

We do this by applying a patch like this:

diff --git a/node_modules/@nstudio/nativescript-exoplayer/index.android.js b/node_modules/@nstudio/nativescript-exoplayer/index.android.js
index f661303..9af42cb 100644
--- a/node_modules/@nstudio/nativescript-exoplayer/index.android.js
+++ b/node_modules/@nstudio/nativescript-exoplayer/index.android.js
@@ -174,7 +174,22 @@ export class Video extends VideoBase {
         this._updateSubtitles(value ? value.android : null);
     }
     createNativeView() { 
-        var nativeView = new com.google.android.exoplayer2.ui.PlayerView(this._context);
+        let res = this._context.getResources();
+        const layoutId = res.getIdentifier("player_view", 'layout', this._context.getPackageName());
+        const parser = res.getLayout(layoutId)
+
+        let state = 0;
+        do {
+            state = parser.next();
+            if (state == org.xmlpull.v1.XmlPullParser.START_TAG) {
+                if (parser.getName() === "com.google.android.exoplayer2.ui.PlayerView") {
+                    var attrs = android.util.Xml.asAttributeSet(parser);;
+                    break;
+                }
+            }
+        } while(state != org.xmlpull.v1.XmlPullParser.END_DOCUMENT);
+
+        var nativeView = new com.google.android.exoplayer2.ui.PlayerView(this._context, attrs);
         if (this.enableSubtitles) {
         }
         return nativeView;

Does anyone know a cleaner way to get this use case working?
Thanks in advance.

Exoplayer

How can I pass my Bearer token when I use nativescript-exoplayer. I'm using HLS type and need to add token to request

[camera-plus] Uncaught Could not create UIImage

When cloning this repo, building, and then installing the built nativescript-camera-plus plugin, i find that my app crashes when it navigates to the page where i am using the plugin.

I am using Nativescript (NS7)+ Vue and get the following error:

CONSOLE LOG: NativeScript-CameraPlus --- [CameraPlus createNativeView]
CONSOLE LOG: NativeScript-CameraPlus --- [video enabled:, false]
CONSOLE LOG: NativeScript-CameraPlus --- [default camera:, rear]
CONSOLE LOG: NativeScript-CameraPlus --- [MySwifty viewdidload]
CONSOLE LOG: NativeScript-CameraPlus --- [doubleTapCameraSwitch:, true]
CONSOLE LOG: NativeScript-CameraPlus --- [this.cameraDelegate:, <SwiftyDelegate: 0x600003cc0640>]
CONSOLE LOG: NativeScript-CameraPlus --- [view:, <UIView: 0x7fecb240cb70; frame = (0 0; 834 1194); autoresize = W+H; layer = <CALayer: 0x600003f88a20>>]
CONSOLE LOG: NativeScript-CameraPlus --- [initNativeView.]
CONSOLE LOG: NativeScript-CameraPlus --- [MySwifty viewWillAppear]
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught Could not create UIImage!
at
logError(file: node_modules/nativescript-vue/dist/index.js:1899:4)
at globalHandleError(file: node_modules/nativescript-vue/dist/index.js:1888:2)
at handleError(file: node_modules/nativescript-vue/dist/index.js:1848:4)
at invokeWithErrorHandling(file: node_modules/nativescript-vue/dist/index.js:1871:4)
at invoker(file: node_modules/nativescript-vue/dist/index.js:2527:13)
at _handleEvent(file: app/packages/core/data/observable/index.ts:279:10)
at notify(file: app/packages/core/data/observable/index.ts:258:14)
at _emit(file: app/packages/core/data/observable/index.ts:307:8)
at onLoaded(file: app/packages/core/ui/core/view-base/index.ts:406:7)
at onLoaded(file: app/packages/nativescript-camera-plus/index.ios.ts:794:8)
at (file: app/packages/core/ui/core/view-base/index.ts:498:67)
at callFunctionWithSuper(file: app/packages/core/ui/core/view-base/index.ts:491:2)
at callLoaded(file: app/packages/core/ui/core/view-base/index.ts:498:7)
at loadView(file: app/packages/core/ui/core/view-base/index.ts:676:8)
at (file: app/packages/core/ui/core/view-base/index.ts:401:8)
at eachChildView(file: app/packages/core/ui/layouts/layout-base-common.ts:125:18)
at eachChild(file: app/packages/core/ui/core/view/view-common.ts:867:7)
at onLoaded(file: app/packages/core/ui/core/view-base/index.ts:400:7)
at (file: app/packages/core/ui/core/view-base/index.ts:498:67)
at callFunctionWithSuper(file: app/packages/core/ui/core/view-base/index.ts:491:2)
at callLoade<…>

I have tried the suggestion in #12 to comment out this._swifty.previewLayer.frame = CGRectMake(frame.origin.x, frame.origin.y, size.width, size.height); and this._swifty.previewLayer.setNeedsLayout(); lines, but that does not seem to change anything.

feature add request, video playback speed

Hi there, video playback speed is not present in nativescript-exoplayer, I have forked this in older version of exoplayer on github.
please add this

public setPlaybackSpeed(speed: number) {
if (this.mediaPlayer) {
let playbackParams = new com.google.android.exoplayer2.PlaybackParameters(parseFloat((speed)));
this.mediaPlayer.setPlaybackParameters(playbackParams);
}
}

@nstudio/nativescript-exoplayer seekToTimeComplete not firing on android

seekToTimeComplete callback not being called on android exoplayer...
works well on ios.

doesn't work on Angular and plain TS projects.

nativescript: 8.0.2;
@nstudio/nativescript-exoplayer: 5.0.6;

to reproduce just install the plugin on any new created project e.g.
ns create;
ns plugin add nativescript-exoplayer;

Any help will be appreciated

toggleFlash() does not work

  toggleFlashlight(isFlashlightOn: boolean): void {
    if (this.camera) {
      if (!isFlashlightOn && this.camera.getFlashMode() === 'on') {
        this.camera.toggleFlash();
      }
      if (isFlashlightOn && this.camera.getFlashMode() === 'off') {
        this.camera.toggleFlash();
      }
    }
  }

It doesn't work on Android. I haven't tried it on iOS. The default switch does not turn on the flash either.

Vue and options

After finding a post on stackoverflow and looking at the source I was able to have the list show up.

But I seem to have problems with the options:
Setting headingTitle does not show a title.
Setting enableSearch to false does not hide the text field, but setting hintText does change the placeholder.
Setting showCancel to false does not hide the cancel button.

The items in the list also seem to leave space for a description, even though I haven't set one on any item.

What am I doing wrong?

And the cancel button could use a config property for its label (i18n).

Not working on Android

I'm trying to use the plugin on an Android device (Nativescript 8)

The view appears, I can add an overlay - but there's no preview. All I see is a black screen.

On iOS, the plugin is working (except for the built in camera-toggle - this produces a crash)

exoplayer rtsp troubles

I'm trying to show a webcam rtsp stream, but all I get is a short error msg in the log:

PlayerError com.google.android.exoplayer2.ExoPlaybackException: com.google.android.exoplayer2.upstream.HttpDataSource$HttpDataSourceException: Unable to connect to rtsp://ipvmdemo.dyndns.org:5541/onvif-media/media.amp?profile=profile_1_h264&sessiontimeout=60&streamtype=unicast

This with a public testing stream (which works in vlc), same with our webcams with internal addresses.

How can I find out what's wrong and how to fix it?

Exoplayer volume acting weird for iOS

Hi,

It appears that when backgroundAudio="true" and silent mode on iOS is true the audio also goes into mute mode. Is there a way to prevent this from happening?

When backgroundAudio="false" and before opening the app, if I set the volume to 50% and then open the app and play a video and turn the volume up it will show as 100% but still plays very quietly as if it is still playing at 50%. I can decrease the volume to 0%. This seems like very odd behaviour to me.

Cheers,
James

[Camera-Plus] Error on initialize plugin on iOS

After installing the plugin and trying to run on iOS, I get the following error:

CONSOLE LOG: NativeScript-CameraPlus --- [CameraPlus createNativeView] CONSOLE LOG: NativeScript-CameraPlus --- [video enabled:, false] CONSOLE LOG: NativeScript-CameraPlus --- [default camera:, rear] CONSOLE LOG: NativeScript-CameraPlus --- [MySwifty viewdidload] CONSOLE LOG: NativeScript-CameraPlus --- [doubleTapCameraSwitch:, true] CONSOLE LOG: NativeScript-CameraPlus --- [this.cameraDelegate:, <SwiftyDelegate: 0x6000019f7df0>] CONSOLE LOG: NativeScript-CameraPlus --- [view:, <UIView: 0x7f9c4d145c10; frame = (0 0; 390 844); autoresize = W+H; layer = <CALayer: 0x600001b45fe0>>] CONSOLE LOG: NativeScript-CameraPlus --- [initNativeView.] CONSOLE LOG: NativeScript-CameraPlus --- [MySwifty viewWillAppear] CONSOLE LOG: NativeScript-CameraPlus --- [adding buttons...] CONSOLE LOG: NativeScript-CameraPlus --- [adding flash button...] CONSOLE LOG: NativeScript-CameraPlus --- [adding show gallery button...] CONSOLE LOG: NativeScript-CameraPlus --- [adding show capture button...] CONSOLE LOG: NativeScript-CameraPlus --- [MySwifty viewDidAppear] CONSOLE LOG: NativeScript-CameraPlus --- [xml width/height: 390x844] ====== Assertion failed ====== Native stack trace: 1 0x1079bb9ff tns::Assert(bool, v8::Isolate*) + 119 2 0x10799575f tns::MetadataBuilder::RegisterStaticMethods(v8::Local<v8::Context>, v8::Local<v8::Function>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, robin_hood::detail::Table<true, 80ul, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned char, robin_hood::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&) + 519 3 0x10799351d tns::MetadataBuilder::GetOrCreateConstructorFunctionTemplateInternal(v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, robin_hood::detail::Table<true, 80ul, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned char, robin_hood::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, robin_hood::detail::Table<true, 80ul, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned char, robin_hood::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::_<…> 4 0x10799173b tns::MetadataBuilder::GetOrCreateConstructorFunctionTemplate(v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) + 99 5 0x1079de10e std::__1::function<v8::Local<v8::FunctionTemplate> (v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&)>::operator()(v8::Local<v8::Context>, tns::BaseClassMeta const*, tns::KnownUnknownClassPair, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) const + 54 6 0x10793fba5 tns::ArgConverter::CreateJsWrapper(v8::Local<v8::Context>, tns::BaseDataWrapper*, v8::Local<v8::Object>, bool, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) + 1581 7 0x1079ddcb1 tns::Interop::GetResult(v8::Local<v8::Context>, tns::TypeEncoding const*, tns::BaseCall*, bool, std::__1::shared_ptr<v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> > >, bool, bool, bool, bool) + 4231 8 0x1079d9b41 tns::Interop::CallFunctionInternal(tns::MethodCall&) + 581 9 0x10793eed0 tns::ArgConverter::Invoke(v8::Local<v8::Context>, objc_class*, v8::Local<v8::Object>, tns::V8Args&, tns::MethodMeta const*, bool) + 758 10 0x1079966dc tns::MetadataBuilder::InvokeMethod(v8::Local<v8::Context>, tns::MethodMeta const*, v8::Local<v8::Object>, tns::V8Args&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool) + 76 11 0x107996231 tns::MetadataBuilder::PropertyGetterCallback(v8::FunctionCallbackInfo<v8::Value> const&) + 245 12 0x107ae90a1 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) + 609 13 0x107ae858a v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 570 14 0x107ae7f20 v8::internal::Builtins::InvokeApiFunction(v8::internal::Isolate*, bool, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*, v8::internal::Handle<v8::internal::HeapObject>) + 768 15 0x107eb8174 v8::internal::Object::GetPropertyWithAccessor(v8::internal::LookupIterator*) + 404 16 0x107eb78dd v8::internal::Object::GetProperty(v8::internal::LookupIterator*, bool) + 125 17 0x107cfec97 v8::internal::LoadIC::Load(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>, bool, v8::internal::Handle<v8::internal::Object>) + 1751 18 0x107d07be2 v8::internal::Runtime_LoadNoFeedbackIC_Miss(int, unsigned long*, v8::internal::Isolate*) + 322 19 0x1083be6d9 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit + 57 20 0x10843943e Builtins_LdaNamedPropertyHandler + 4062 JavaScript stack trace: at _onLayoutChangeFn (file: node_modules/@nstudio/nativescript-camera-plus/index.ios.js:754:0) at _handleEvent (file: node_modules/@nativescript/core/data/observable/index.js:233:0) at notify (file: node_modules/@nativescript/core/data/observable/index.js:216:0) at _raiseLayoutChangedEvent (file: node_modules/@nativescript/core/ui/core/view/view-common.js:319:0) at _setNativeViewFrame (file: node_modules/@nativescript/core/ui/core/view/index.ios.js:149:0) at layoutNativeView (file: node_modules/@nativescript/core/ui/core/view/index.ios.js:177:0) at layout (file: node_modules/@nativescript/core/ui/core/view/index.ios.js:69:0) at layoutChild (file: node_modules/@nativescript/core/ui/core/view/view-helper/view-helper-common.js:96:0) at layoutChild (file: node_modules/@nativescript/core/ui/core/view/view-common.js:731:8) at onLayout (file: node_modules/@nativescript/core/ui/layouts/grid-layout/index.ios.js:165:16)

✔ Getting NativeScript components versions information...
✔ Component nativescript has 8.0.2 version and is up to date.
✔ Component @nativescript/core has 8.0.8 version and is up to date.
✔ Component @nativescript/ios has 8.0.0 version and is up to date.
✔ Component @nativescript/android has 8.0.0 version and is up to date.

@nstudio/nativescript-camera-plus": "4.0.3",

Error running demos: Cannot find module '@nstudio/nativescript-embrace/hooks/before-watchPatterns.js'

When trying to start the vue demo ap, I get the following error:

Cannot find module '@nstudio/nativescript-embrace/hooks/before-watchPatterns.js'

What I did:

  • checkout repository
  • npm run setup
  • npm start
  • select demo app to start

env

ns doctor
✔ Getting environment information

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 13.2.1 satisfies minimum required version 10.
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 8.1.4 and the latest available version is 8.1.5.
✔ Component @nativescript/core has 8.1.5 version and is up to date.
✔ Component @nativescript/ios has 8.1.0 version and is up to date.
✔ Component @nativescript/android has 8.1.1 version and is up to date.

exoplayer bluetooth headphone issues iOS

Hello, as the title sais, on iOS i have no audio with bluetooth headphones.
When i open the app and attempt to login i hear the keyboard sound inside the headphones, so they work and are properly connected to the iphone. when i play a video there is no audio from the headphones (the video has a sound track and it works on android), but the audio is reproduced from the iphone speakers.
does anyone have any suggestions?
thank you

filterable-listpicker inside a ScrollView

So I had my own homegrown version of this that popped up a modal dialog and that mostly works great but with one exception in which upon selection I was navigating to another page, but then the closing of the modal dialog also tried to reshow the page it was launched from and thus erasing the navigation I had just done. So I tried to make it "inline" but my data is inside of a ScrollView on the page and thus I couldn't scroll the ListView because the outer ScrollView took control.

So I found and tried this one and I get the exact same problem. :( First off I thought this was a modal dialog as seems to be implied by the gif and text, but it appears for me "inline" and I get the same problem that I can't control the ListView that shows because the outer ScrollView takes precedence.

Is there some way around this?

[Camera-Plus] Camera preview size is not proper (iOS)

Hi! Everything works fine on Android. On iOS, it is not possible to make it to the full screen.

photo_2021-07-30_09-42-52

  <GridLayout  row="0" (loaded)="onCameraContainerLoaded($event)">
    <CameraPlus class="camera-layout"  debug="true" galleryPickerMode="single" showFlashIcon="false"
      showToggleIcon="false" showCaptureIcon="false" showGalleryIcon="false" confirmSaveText="CONFIRM!"
      confirmRetakeText="RETAKE!" (loaded)="onCameraLoaded($event)" (photoCapturedEvent)="photoCapturedEvent($event)">
    </CameraPlus>
  </GridLayout>

  <LottieView *ngIf="inProgress" width="75%" [src]="src" loop="true" autoPlay="true"
    (loaded)="lottieViewLoaded($event)"></LottieView>
  </GridLayout>```

Filterable List Picker CSS unused

Hey,

Adding the CSS provided in the "READ ME" to my Vue component doesn't seem to override default CSS.
I am doing it wrong ?
Thanks

Code added in the style section of MyComponent.vue :

 .flp-container .flp-list-container {
    border-radius: 10;
  }
  .flp-container .flp-list-container .flp-listview {
    background-color: white;
  }

  .flp-container .flp-list-container .flp-listview .flp-row {
    background-color: white;
  }
  /* .flp-container .flp-list-container .flp-listview .flp-row .flp-row-container {
    padding: 10;
  } */
  .flp-container .flp-list-container .flp-listview .flp-row .flp-image {
    margin: 10 0 10 5;
  }
  .flp-container .flp-list-container .flp-listview .flp-row .flp-title-container {
    margin: 10 10 10 5;
    /* margin: 0 10 0 10; */
  }
  .flp-container .flp-list-container .flp-listview .flp-row .flp-title-container .flp-title {
    font-weight: bold; 
    font-size: 16;
    color: #E0E0E0;
  }
  .flp-container .flp-list-container .flp-listview .flp-row .flp-title-container .flp-description {
    color: #E0E0E0; 
    font-size: 13;
  }
  .flp-container .flp-list-container .flp-listview .flp-row .flp-title-container .flp-no-title {
    margin-left: 15; 
    padding: 10 0;
  }
  .flp-container .flp-list-container .flp-listview .flp-row .flp-item-selected {
    color: lightblue;
  }

  .flp-container .flp-hint-field {
    padding: 10 15; 
    height: 40; 
    background-color: #E0E0E0;
    color: #E0E0E0;
    border-radius: 10 10 0 0;
    font-size: 30;
  }

  .flp-container .flp-cancel-container {
    background-color: #E0E0E0; 
    height: 40; 
  }

  .flp-container .flp-cancel-container .flp-btn-cancel {
    font-weight: bold; 
    height: 40; 
    background-color: transparent; 
    border-color: transparent; 
    border-width: 1; 
    font-size: 12;
    border-radius: 0 0 10 10;
  }
My dependencies :
`"dependencies": {
    "@nativescript/core": "^7.3.0",
    "@nativescript/firebase": "^11.1.2",
    "@nativescript/iqkeyboardmanager": "^2.0.0",
    "@nativescript/theme": "^2.5.0",
    "@nativescript/unit-test-runner": "^1.0.2",
    "@nstudio/nativescript-filterable-listpicker": "^3.0.0",
    "@nstudio/nativescript-pulltorefresh": "^3.0.1",
    "accounting": "^0.4.1",
    "axios": "^0.20.0",
    "i18n-postal-address": "^0.2.0",
    "nativescript-appversion": "^1.4.4",
    "nativescript-barcodescanner": "file:app/libs/nativescript-barcodescanner",
    "nativescript-fingerprint-auth": "^7.0.2",
    "nativescript-localize": "^4.2.2",
    "nativescript-permissions": "^1.3.11",
    "nativescript-print-star": "file:app/libs/nativescript-print-star",
    "nativescript-ui-listview": "^9.0.4",
    "nativescript-vue": "^2.8.4",
    "vuex": "^3.6.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.8",
    "@babel/preset-env": "^7.12.7",
    "@nativescript/ios": "6.5.4",
    "@nativescript/types": "~7.1.0",
    "@nativescript/webpack": "^4.0.1",
    "@types/node": "^12.19.16",
    "@types/qunit": "^2.9.6",
    "babel-loader": "^8.1.0",
    "karma": "5.2.3",
    "karma-nativescript-launcher": "0.4.0",
    "karma-qunit": "4.1.1",
    "karma-webpack": "3.0.5",
    "nativescript-vue-template-compiler": "^2.8.3",
    "nativescript-worker-loader": "^0.12.1",
    "node-sass": "^4.14.1",
    "qunit": "2.12.0",
    "typescript": "^3.4.3",
    "vue": "^2.6.12",
    "vue-loader": "^15.9.5"
  },```

@nstudio/nativescript-filterable-listpicker not working with NS 8

When using with NS 8 I get an error:

System.err: An uncaught Exception occurred on "main" thread.
System.err: Calling js method onCreateView failed
System.err: Error: Parsing XML at 2:11
System.err:  > Module 'GridLayout' not found for element 'GridLayout'.
System.err:    > com.tns.NativeScriptException: Failed to find module: "@nativescript/core/ui", relative to: app/tns_modules/
System.err:
System.err: StackTrace:
System.err: ScopeError(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\utils\debug.js:51:0)
System.err:     at PositionErrorFormat(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\builder\index.js:222:0)
System.err:     at (file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\builder\index.js:207:0)
System.err:     at (file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\xml\index.js:412:0)
System.err:     at EasySAXParser.parse(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\js-libs\easysax\easysax.js:751:0)
System.err:     at parse(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\xml\index.js:455:0)
System.err:     at parse(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\builder\index.js:213:0)
System.err:     at parseInternal(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\builder\index.js:181:0)
System.err:     at parse(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\builder\index.js:49:0)
System.err:     at onLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nstudio\nativescript-filterable-listpicker\common.js:72:29)
System.err:     at (file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:318:0)
System.err:     at callFunctionWithSuper(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:312:0)
System.err:     at callLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:318:0)
System.err:     at loadView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:458:0)
System.err:     at (file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:237:0)
System.err:     at eachChildView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\layouts\layout-base-common.js:101:0)
System.err:     at eachChild(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view\view-common.js:759:0)
System.err:     at onLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:236:0)
System.err:     at onLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view\index.android.js:291:0)
System.err:     at (file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:318:0)
System.err:     at callFunctionWithSuper(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:312:0)
System.err:     at callLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:318:0)
System.err:     at loadView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:458:0)
System.err:     at (file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:237:0)
System.err:     at eachChildView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\layouts\layout-base-common.js:101:0)
System.err:     at eachChild(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view\view-common.js:759:0)
System.err:     at onLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:236:0)
System.err:     at onLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view\index.android.js:291:0)
System.err:     at (file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:318:0)
System.err:     at callFunctionWithSuper(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:312:0)
System.err:     at callLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:318:0)
System.err:     at loadView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:458:0)
System.err:     at (file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:237:0)
System.err:     at eachChildView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\content-view\index.js:65:0)
System.err:     at eachChildView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\page\page-common.js:106:0)
System.err:     at eachChild(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view\view-common.js:759:0)
System.err:     at onLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:236:0)
System.err:     at onLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view\index.android.js:291:0)
System.err:     at onLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\page\index.android.js:38:0)
System.err:     at (file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:318:0)
System.err:     at callFunctionWithSuper(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:312:0)
System.err:     at callLoaded(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:318:0)
System.err:     at loadView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:458:0)
System.err:     at _addViewCore(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:453:0)
System.err:     at _addView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\core\view-base\index.js:439:0)
System.err:     at onCreateView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\frame\index.android.js:739:0)
System.err:     at onCreateView(file: src\webpack:\@nativescript\template-hello-world-ng\node_modules\@nativescript\core\ui\frame\fragment.android.js:25:0)
System.err:     at com.tns.Runtime.callJSMethodNative(Native Method)
System.err:     at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1302)
System.err:     at com.tns.Runtime.callJSMethodImpl(Runtime.java:1188)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:1175)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:1153)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:1149)
System.err:     at com.tns.FragmentClass.onCreateView(FragmentClass.java:55)
System.err:     at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2699)
System.err:     at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:320)
System.err:     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1199)
System.err:     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1368)
System.err:     at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1446)
System.err:     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1509)
System.err:     at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:447)
System.err:     at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2181)
System.err:     at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2004)
System.err:     at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1959)
System.err:     at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1861)
System.err:     at androidx.fragment.app.FragmentManager$4.run(FragmentManager.java:413)
System.err:     at android.os.Handler.handleCallback(Handler.java:938)
System.err:     at android.os.Handler.dispatchMessage(Handler.java:99)
System.err:     at android.os.Looper.loop(Looper.java:223)
System.err:     at android.app.ActivityThread.main(ActivityThread.java:7656)
System.err:     at java.lang.reflect.Method.invoke(Native Method)
System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

I've attached a sample app, created with ns create choosing angular & then adding the plugin.

angular.zip

[nativescript-plaid] Link is crashing at the very last step

Using the nativescript-plaid plugin, it crashes at the very end of the process when clicking on the "Continue" button
I am using plaid in sandbox mode

Only logs I have is a SIGABRT and I struggle to debug this error..

iOS : tested on 14.1 and 14.4
Plugin version : 1.0.4
NS version : 7.2.0
XCode : 12.4

@nstudio/nativescript-exoplayer getDuration on IOS live stream returns Nan

getDuration method returns Nan (only on ios) if src is a live stream. on android it works as expected.
steps to reproduce:

  1. create any simple project using "ns create".
  2. install nativescript-exoplayer "ns plugin add @nstudio/nativescript-exoplayer".
  3. fire getDuration method.

any help would be greatly appreciated.

@nstudio/nativescript-exoplayer renaming and documentation updates

Over the past few months I have noticed some confusion around using video with nativescript. The main issue stems from exoplayer and videoplayer both being used but not clear which should be used or why. The idea would be to potential renaming @nstudio/nativescript-exoplayer using the word "video" but being clear that it is more robust and requires the exo libraries with it.

It would be nice to also include some sort of video section in the UI docs or including it in the plugins section of the official nativescript website. This would ideally solve some confusion around if nativescript supports video and which plugin would be best for your project.

I believe it would be helpful if it is more clear that nativescript can support video and does, as well as give some information around which plugin might be better for the project someone is currently working on. This might also create more interest in PRs for the plugins as they will be more visible.

Callback on iOS returns no asset

CameraPlus

Set saveToGallery to false.

When photoCapturedEvent is emitted, the event.data contains not a saved image, but just an empty object.

Cause:

in index.ios.js Line 490 ff MySwifty.prototype.savePhoto

var asset_1 = new ImageAsset(this._photoToSave);

fails. this._photoToSave is an iOS UIImage and it seems ImageAsset can't handle this.

Solution

Safe the image and then return it.

So I added this to the function:

if (isIOS) {

  const imageFolder = knownFolders.documents(); 
  const iosImage = UIImageJPEGRepresentation(this._photoToSave, 0.7);

  const result1 = NSFileManager.defaultManager.createFileAtPathContentsAttributes(imageFolder.path + "/cam_capture.jpg", iosImage, null);

  const asset = new ImageAsset(imageFolder.path + "/cam_capture.jpg");

   _this._owner.get().sendEvent(CameraPlus.photoCapturedEvent, asset);
   _this.resetPreview();

}

Of course, you can give the image a different name and save it at a different location.

[CheckBox] Unable to change font-size of checkbox

nativescript 7.0.1
@nativescript/android 7.1.2
@nativescript/core 7.1.4
Angular: 11

<CheckBox [checked]="element.isC" text="'Example'" style="font-size:50px"></CheckBox>
<CheckBox [checked]="element.isC" text="'Example'" ></CheckBox>

Documentation:
Css Styling
font-size - checkbox is sized to text from here : default 15

Result:
checkbox

Remove calling 'stop' on pausing the video

Hello guys,
These are great plugins. I was using @nstudio/nativescript-exoplayer, and I came to know that there is one issue. When user pauses the video, actually it is being stopped.

You can see the code at this line, here.

Please remove or comment this line. Because it is not letting the video play again, which is expected behaviour after stopping the video and unexpected behaviour to the people who does not know that the video is actually being stopped instead of pause.

Happy coding!

@nstudio/nativescript-input-mask: Angular form properties don't work with InputMask

I tried to show default value for the InputMask field, for which I had tried both [(ngModel)] and reactive forms both did not work.

Assigning ngModel variable a value did not show the default value in the screen

Reactive Form: I had defined formGroup and controller names

<InputMask #phoneNumber class="input" formControlName="phoneField"
    mask="([999]) [999]-[9999]" keyboardType="phone" (extractedValueChange)="onPhoneFieldChange($event)">
</InputMask>

TS File: In ts file I had defined the form group and form builder and have assigned initial value for the controller (phoneField). Tried patchValue as well. No luck!

this.formBuilder.group({
   phoneField: [95555, Validators.required]
});

The default value 95555 did not show up in the screen.


Template Driven Form: Have assigned ngModel a value and that did not show up on the screen.

<InputMask #phoneNumber class="input" [(ngModel)]="phoneField" mask="([999]) [999]-[9999]" keyboardType="phone"
      (extractedValueChange)="onPhoneFieldChange($event)">
</InputMask>

public phoneField: number = 955555;


Environment:

Nodejs 14
Nativescript 8
Angular 11
Nativescript Angular & ios 8

For now I will have to just make use of simple TextField since masking and other features did not work. There are no other Input Mask library available as well. The one that are available in nativescript market place are all outdated , as they only support on version 6 and below and not 7 and 8. I need this InputMask badly, please help us fix the issue, this plugin from NSTUDIO could really help us a lot.

Thanks in advance :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.