startPageActionBarHidden: true not hiding actionbar on some android devices


In an angular nativescript app I’m trying to hide the main page actionbar on all devices and use [startPageActionBarHidden: true]( when bootstrapping in my main.ts file:

import { platformNativeScriptDynamic } from 'nativescript-angular/platform';
import { AppModule } from './app.module';

platformNativeScriptDynamic({startPageActionBarHidden: true}).bootstrapModule(AppModule);

This works when running on my droid 2, but when I install the apk on a samsung galaxy s5 the action bar always shows up. Anyone else had issues with this? Is there something else I can try to hide it? The actionbar is not showing up on my ios devices but I think that is the default.


You may try this one here

import {Page} from "ui/page"; 

// ...
class MyComponent { 
 constructor(page: Page) { 
  page.actionBarHidden = true;