-
Notifications
You must be signed in to change notification settings - Fork 146
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
Conflicts with cordova-plugin-firebase #66
Comments
Which OS? OS version? Any error messages or what does "loses its functionality" mean? |
I am on macOS high Sierra 10.13.6 actually there is no error of any type during build or after build. Simply the event on battery-status is not present any more. |
OS = Android, iOS? What is your
What does that mean, "not present"? Is it not triggered any more? Does it not exist any more? |
Please try to recreate the problem with a new project created with |
Hi there. plugin version is not empty, github seems to chopped it off. Both firebase and battery-status are are on their latest version. firebase version atm : 0.1.22 But I update both to the latest stable version but that does not help. Ionic: ionic (Ionic CLI) : 4.1.1 (/usr/local/lib/node_modules/ionic) Cordova: cordova (Cordova CLI) : 8.0.0 System: ios-deploy : 2.0.0 |
i got the exact same issue, is there any workaround available? |
I have the same issue as well. Is there any update on this? |
try registering the battery event with import { fromEvent } from 'rxjs';
import { BatteryStatusResponse } from '@ionic-native/battery-status/ngx';
fromEvent<BatteryStatusResponse>(window, 'batterystatus').subscribe(async (status) => {
//...
}); instead of more info: danielsogl/awesome-cordova-plugins#2972 |
Thanks @cyptus but it's not working.... I'm calling this function from ngOnInit(): batteryStatus() {
fromEvent<BatteryStatusResponse>(window, 'batterystatus').subscribe(async (status) => {
this.batteryStats = status.level;
console.log('Battery status: ', status);
if (status.level !== null) {
this.userService.updateUser({ batteryStatus: this.batteryStats });
}
});
} console logs this:
I don't know if I'm doing anything wrong but I can't get it to work at all. |
@janpio @arrrash @cyptus @sbrannstrom @infil00p Instead of maintaining this plugin only for me, I published a new maintained plugin called "community-cordova-plugin-battery-status" (https://github.com/EYALIN/community-cordova-plugin-battery-status) which is maintained and will keep being. |
In our Ionic project after installing cordova-plugin-firebase the battery-status loses its functionality.
But when we remove cordova-plugin-firebase it work fine.
Will be appreciated if you can help in this regard.
more info :
cordova -v -> 8.0.0
The text was updated successfully, but these errors were encountered: