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

Push Plugin register failed - iOS #19

Open
ihatred123x opened this issue Jun 1, 2020 · 9 comments
Open

Push Plugin register failed - iOS #19

ihatred123x opened this issue Jun 1, 2020 · 9 comments

Comments

@ihatred123x
Copy link

ihatred123x commented Jun 1, 2020

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
Copy link

koczka commented Jun 10, 2020

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
Copy link

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

@exhaler
Copy link

exhaler commented Feb 5, 2021

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
Copy link

koczka commented Feb 5, 2021

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

@exhaler
Copy link

exhaler commented Feb 5, 2021

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
Copy link

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
Copy link

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

@varshavsr
Copy link

@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
Copy link

ssarya commented Apr 18, 2023

Anyone able to resolve the issue? Please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants