You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/09/02 09:14:31 UTC

[GitHub] [cordova-plugin-battery-status] cyptus commented on issue #66: Conflicts with cordova-plugin-firebase

cyptus commented on issue #66: Conflicts with cordova-plugin-firebase
URL: https://github.com/apache/cordova-plugin-battery-status/issues/66#issuecomment-527070672
 
 
   try registering the battery event with
   
   ```ts
   import { fromEvent } from 'rxjs';
   import { BatteryStatusResponse } from '@ionic-native/battery-status/ngx';
   
   fromEvent<BatteryStatusResponse>(window, 'batterystatus').subscribe(async (status) => {
   //...
   });
   ```
   
   instead of ```batteryStatus.onChange().subscribe(...)``` as a work around.
   
   more info: https://github.com/ionic-team/ionic-native/issues/2972

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org