You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting FIS_AUTH_ERROR error on registering push notification in android and not getting push notification after sending push notification in iOS
#1863
Closed
smkhizar1 opened this issue
Oct 30, 2023
· 2 comments
Below error is getting in registration error listener after calling register method in android.
Registration error: java.util.concurrent.ExecutionException: java.io.IOException: FIS_AUTH_ERROR
and in iOS, i get registration token but i can't get notification on iOS with this token.
Expected Behavior
After calling register method, i should get registration token from listener and after sending push notification on this token. I should get push notification on phone.
Code Reproduction
I initialise listeners first then call register method.
addListeners = async () => {
await PushNotifications.addListener('registration', token => {
console.info('Registration token: ', token.value);
});
FIS_AUTH_ERROR seems to be related to misconfigurations in your firebase keys.
Try downloading google-services.json file from firebase console again and replace the existing one.
Anyway, you are using Capacitor 4, which is out of date, you should move to Capacitor 5 and latest @capacitor/push-notifications 5.x
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.
Bug Report
Plugin(s)
@capacitor/push-notifications: "^4.1.2",
Capacitor Version
Platform(s)
Ionic : 5.4.16
Android
iOS
Current Behavior
Below error is getting in registration error listener after calling register method in android.
Registration error: java.util.concurrent.ExecutionException: java.io.IOException: FIS_AUTH_ERROR
and in iOS, i get registration token but i can't get notification on iOS with this token.
Expected Behavior
After calling register method, i should get registration token from listener and after sending push notification on this token. I should get push notification on phone.
Code Reproduction
I initialise listeners first then call register method.
addListeners = async () => {
await PushNotifications.addListener('registration', token => {
console.info('Registration token: ', token.value);
});
}
registerNotifications = async () => {
let permStatus = await PushNotifications.checkPermissions();
}
Other Technical Details
Additional Context
The text was updated successfully, but these errors were encountered: