NativeScript android BetterVideoPlayer implement

Issue I am trying to implement BetterVideoPlayer (implementation ‘com.github.halilozercan:BetterVideoPlayer:1.2.alpha1’) for NativeScript Android. So, in an Angular project I have created separate component like this: import { View } from “tns-core-modules/ui/core/view”; declare var com, android; export class BetterPlayer extends View {

Continue reading

NativeScript ListView isn't updating

Issue So I have a ListView like this <ListView height=”150″ [items]=”countries”> <ng-template let-country=”item”> <Image src={{country.imgSrc}}></Image> <Label text={{country.name}}></Label> </ng-template> </ListView> I have a subscription to an Observable that is returning an array of countries. countries: any[] = []; ngOnInit() { this.countryService.countriesUpdated.subscribe(

Continue reading

How to get the reference of a Nativescript angular modal's native view window?

Issue I am trying to set Immersive mode only in modal page but when I do the below in ngOnInit of the modal component Application.android.foregroundActivity.getWindow().getDecorView().setSystemUiVisibility( // tslint:disable-next-line:no-bitwise View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar | View.SYSTEM_UI_FLAG_IMMERSIVE ); It

Continue reading

Set size to icon in NavigationButton on Android

Issue In a Nativescript/Angular app I have the avatar of the user on the left in the header. For Android, I have to use NavigationButton: <NavigationButton #navigationButton *ngIf=”isAndroid” [loaded]=”navigationButtonLoaded()” [icon]=”customImage” (tap)=”toggleSideDrawer()”> </NavigationButton> The customImage is a https resource; NavigationButton wants

Continue reading

Issue in android:pathPrefix on AndroidManifest.xml with special character #

Issue I have the following link: https://thus.customapp.it/#/app/customapp/itemDetail/45289348293423 I want that this link is captured and opened with my app. So, I added these lines on AndroidManifest file: <intent-filter> <action android:name=”android.intent.action.VIEW” /> <category android:name=”android.intent.category.DEFAULT” /> <category android:name=”android.intent.category.BROWSABLE” /> <data android:scheme=”https” android:host=”thus.customapp.it”

Continue reading

ActivityCompat always undefined on android.support.v4.app

Issue Recently I have created native script angular app. I’m trying to get read permissions for SMS but getting below error ERROR TypeError: Cannot read property ‘requestPermissions’ of undefined (<any>android.support.v4.app.ActivityCompat).requestPermissions(app.android.context, [(<any>android).Manifest.permission.RECEIVE_SMS], REQUEST_REQUIRED_PERMISSIONS); added below lines to manifest.xml <uses-permission android:name=”android.permission.RECEIVE_SMS”/> <uses-permission

Continue reading

NativeScript Android Build fails with an exception – Unsupported class file major version 57

Issue I have nativescript angular app in which I have implemented following plugins. “@agm/core”: “^1.0.0-beta.7”, “@angular/animations”: “~8.2.0”, “@angular/cdk”: “^8.2.3”, “@angular/common”: “~8.2.0”, “@angular/compiler”: “~8.2.0”, “@angular/core”: “~8.2.0”, “@angular/forms”: “~8.2.0”, “@angular/http”: “8.0.0-beta.10”, “@angular/material”: “^8.2.3”, “@angular/material-moment-adapter”: “^8.1.4”, “@angular/platform-browser”: “~8.2.0”, “@angular/platform-browser-dynamic”: “~8.2.0”, “@angular/router”: “~8.2.0”, “@material-extended/mde”:

Continue reading

NativeScript CleartextHTTPTrafficNotPermitted

Issue I want to make a HTTP-Request to my local Node-Backend. So I configured my AndroidManifest.xml and my network_security_config.xml to allow cleartext HTTP traffic. But it seems that my NativeScript App is not correctly initializing the AndroidManifest.xml. <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”__PACKAGE__”

Continue reading

How to use dependecy injection in flutter?

Issue I wan to use di. in flutter and I add this https://pub.dartlang.org/packages/di packages my project and I started to read this https://webdev.dartlang.org/angular/guide/dependency-injection article, but I don’t fully understand. So it’s ok: use @Injectable() annotation on services class(e.g: MyServices), but

Continue reading

Can't install nodejs in Termux on Android

Issue When I do pkg install nodejs or pkg install nodejs-lts it gives me a this message: Checking availability of current mirror: ok Ign:1 https://dl.bintray.com/grimler/game-packages-24 games InRelease Ign:2 https://dl.bintray.com/grimler/science-packages-24 science InRelease Err:3 https://dl.bintray.com/grimler/game-packages-24 games Release OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection

Continue reading