Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native BackgroundMode add EventListener does not work #7736

Closed
mburger81 opened this issue Aug 16, 2016 · 3 comments
Closed

Native BackgroundMode add EventListener does not work #7736

mburger81 opened this issue Aug 16, 2016 · 3 comments

Comments

@mburger81
Copy link
Contributor

mburger81 commented Aug 16, 2016

As described here in my post in the forum, I can not add an listener to activate

https://forum.ionicframework.com/t/error-on-backgroundmode-on/58979/4

using ionic2 beta.11

BackgroundMode.on('activate', function() {
});

EXCEPTION: TypeError: Cannot read property 'apply' of undefined
browser_adapter.js:84 EXCEPTION: TypeError: Cannot read property 'apply' of undefinedBrowserDomAdapter.logError @ browser_adapter.js:84BrowserDomAdapter.logGroup @ browser_adapter.js:94ExceptionHandler.call @ exception_handler.js:65(anonymous function) @ application_ref.js:337EventEmitter.subscribe.schedulerFn @ async.js:139SafeSubscriber.__tryOrUnsub @ Subscriber.js:225SafeSubscriber.next @ Subscriber.js:174Subscriber._next @ Subscriber.js:124Subscriber.next @ Subscriber.js:88Subject._finalNext @ Subject.js:128Subject._next @ Subject.js:120Subject.next @ Subject.js:77EventEmitter.emit @ async.js:127NgZone._zoneImpl.ng_zone_impl_1.NgZoneImpl.onError @ ng_zone.js:124NgZoneImpl.inner.inner.fork.onHandleError @ ng_zone_impl.js:74ZoneDelegate.handleError @ zone.js:327Zone.runTask @ zone.js:259ZoneTask.invoke @ zone.js:423
browser_adapter.js:84 STACKTRACE:BrowserDomAdapter.logError @ browser_adapter.js:84ExceptionHandler.call @ exception_handler.js:67(anonymous function) @ application_ref.js:337EventEmitter.subscribe.schedulerFn @ async.js:139SafeSubscriber.__tryOrUnsub @ Subscriber.js:225SafeSubscriber.next @ Subscriber.js:174Subscriber._next @ Subscriber.js:124Subscriber.next @ Subscriber.js:88Subject._finalNext @ Subject.js:128Subject._next @ Subject.js:120Subject.next @ Subject.js:77EventEmitter.emit @ async.js:127NgZone._zoneImpl.ng_zone_impl_1.NgZoneImpl.onError @ ng_zone.js:124NgZoneImpl.inner.inner.fork.onHandleError @ ng_zone_impl.js:74ZoneDelegate.handleError @ zone.js:327Zone.runTask @ zone.js:259ZoneTask.invoke @ zone.js:423
browser_adapter.js:84 TypeError: Cannot read property 'apply' of undefined
    at callCordovaPlugin (plugin.js:81)
    at Function.exports.wrap (plugin.js:221)
    at Function.value [as on] (plugin.js:284)
    at SafeSubscriber._next (app.ts:70)
    at SafeSubscriber.__tryOrUnsub (Subscriber.js:225)
    at SafeSubscriber.next (Subscriber.js:174)
    at Subscriber._next (Subscriber.js:124)
    at Subscriber.next (Subscriber.js:88)
    at XMLHttpRequest.XHRConnection.response.Observable_1.Observable.onLoad (xhr_backend.js:68)
    at ZoneDelegate.invokeTask (zone.js:356)BrowserDomAdapter.logError @ browser_adapter.js:84ExceptionHandler.call @ exception_handler.js:68(anonymous function) @ application_ref.js:337EventEmitter.subscribe.schedulerFn @ async.js:139SafeSubscriber.__tryOrUnsub @ Subscriber.js:225SafeSubscriber.next @ Subscriber.js:174Subscriber._next @ Subscriber.js:124Subscriber.next @ Subscriber.js:88Subject._finalNext @ Subject.js:128Subject._next @ Subject.js:120Subject.next @ Subject.js:77EventEmitter.emit @ async.js:127NgZone._zoneImpl.ng_zone_impl_1.NgZoneImpl.onError @ ng_zone.js:124NgZoneImpl.inner.inner.fork.onHandleError @ ng_zone_impl.js:74ZoneDelegate.handleError @ zone.js:327Zone.runTask @ zone.js:259ZoneTask.invoke @ zone.js:423
plugin.js:81 Uncaught TypeError: Cannot read property 'apply' of undefined
@jgw96
Copy link
Contributor

jgw96 commented Aug 16, 2016

This issue was moved to danielsogl/awesome-cordova-plugins#437

@jgw96
Copy link
Contributor

jgw96 commented Aug 16, 2016

Hello! Since this was an issue with Ionic Native I have moved this issue to the ionic native repo. Thanks for using Ionic!

@mburger81
Copy link
Contributor Author

@jgw96 👍

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants