Open (redirect to) default browser


How can implement this android/java code in nativescript/angular?

         Uri uri = Uri.parse("");
         Intent intent = new Intent(Intent.ACTION_VIEW, uri);


Hey @mortezadalil

Refer to the Docs page. So this can be broken down in these two steps:

  1. Import the utils/utils module:
    var utilsModule = require("tns-core-modules/utils/utils"); (import * as utilsModule from 'tns-core-modules/utils/utils in your case with the angular app)
  2. call the openUrl method: