shawnlan

Results comments of shawnlan

In my app I also embed Youtube players. When Youtube videos load, they take over the Control Center and make Prev/Next buttons disappear. I need a way to put them...

@BuddyLReno This Plugin: 1.4.1 Background Audio Plugin: [Here](https://github.com/AubreyHewes/cordova-background-audio) Ionic: 3.6.0 Ionic Native: 4.1.0 Cordova: 7.0.1 Cordova iOS: 4.4.0 Here is the code: ``` platform.ready().then(src => { this.mediaControls.subscribe().subscribe(action => { console.log(action);...

I have no problem with Android. Check your file and path and make sure everything is correct.

I use remote image as a workaround. Not ideal, but at least works.

Didn't update CLI. Newly created projects got these errors.

How do you do this? "expose a container object as a resolve in the parent state. Update a property in the parent component, and bind the resolve to the child...

Oh is this what you mean? ` $stateProvider .state('home', { url: '/home', component: 'home', resolve:{container:()=>{}} }) `

I created a directive: ``` directive('confirmOnExit', function($window) { return { link: function($scope) { $window.onbeforeunload = function(){ return 'Are you sure to leave?'; }; $scope.$on('$destroy',function(){ $window.onbeforeunload = null; }); }, controller:function(){...

To customize the `defaultErrorHandler`, do I do `$state.defaultErrorHandler` in any controller or in a `run` block? Or should I do it in the `config` block?

I know, but when a user click "back" button, I still don't get the parent reloaded.