3

Why does the alert in my Ionic 2 app look like an old Android version and how can I change this?

Note: this is just calling JavaScript

alert()

function, NOT the Alert component! I am doing this on purpose.

enter image description here

For comparison, this is an alert from a website in the browser:

enter image description here

I'm concerned that the browser version/sdk it's building to is out of date.

Why are these looking different?

Dave
  • 5,283
  • 7
  • 44
  • 66

1 Answers1

0

Set

theme="@android:style/Theme.DeviceDefault.Light.NoActionBar"

In platforms/android/AndroidManifest.xml

Dave
  • 5,283
  • 7
  • 44
  • 66