derek82511 / cordova-azure-notification-hubs

Register and receive push notifications via Azure Notification Hub.
MIT License
10 stars 30 forks source link

Push Plugin register failed - iOS #19

Open ihatred123x opened 4 years ago

ihatred123x commented 4 years ago

what seems to be the problem here?

we have set APNS certificates on azure portal, added provisioning profile to xcode, package/widget id is identical but we still having this error. XCode information is so vague we have no idea what is wrong.

`

this._push = PushNotification.init({
  notificationHubPath: environment.azNH.name,
  connectionString: environment.azNH.connection,
  android: {
    sound: true
  },
  ios: {
      alert: 'true',
      badge: true,
      sound: 'false'
  }
});
this._push.on('registration', (data) => {
  console.log(data);
  this._registration.next(data);
});
this._push.on('notification', (data) => {
  this._notification.next(data);
});

`

koczka commented 4 years ago

Same problem with Ionic 5.26.0, Capacitor 2.1.2, Angular 9.1.0. Through APSN the device is able to receive notifications, but won't register to the azure services.

Also, it is working on Android just fine, with the sample code provided.

tonyfloodgateapp commented 4 years ago

I also can't register IOS. Maybe only IOS version > 13.

exhaler commented 3 years ago

Same problem with Ionic 5.26.0, Capacitor 2.1.2, Angular 9.1.0. Through APSN the device is able to receive notifications, but won't register to the azure services.

Also, it is working on Android just fine, with the sample code provided.

@koczka Can you please elaborate on how did you manage to send the device token to Azure notifications hubs? are you using the capacitor plugin or sending the device token to the backend and registering it there.

koczka commented 3 years ago

If I recall correctly we went with the second option, only sending the token for the backend to do the azure registration.

exhaler commented 3 years ago

If I recall correctly we went with the second option, only sending the token for the backend to do the azure registration.

Do you remember which npm package did you use? i'm using node.js as the backend

varshavsr commented 2 years ago

I am unable to register the device with Azure notification hub in iOS 14 version of device. Its crashes in the [hub registerNativeWithDeviceToken:deviceToken tags:nil completion:^(NSError* error)

Is this issue resolved ?

ANicholasson commented 2 years ago

@varshavsr Hi, I'm experiencing the same issue myself now. Did you manage to figure this one out?

varshavsr commented 2 years ago

@ANicholasson As this plugin didnot help us resolving the issue, we had to take a different approach of calling the REST API to register the device.

ssarya commented 1 year ago

Anyone able to resolve the issue? Please help.