Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

push.on('registration', not fired in iOS #2222

Open
cordova2018 opened this issue Feb 24, 2018 · 10 comments
Open

push.on('registration', not fired in iOS #2222

cordova2018 opened this issue Feb 24, 2018 · 10 comments

Comments

@cordova2018
Copy link

cordova2018 commented Feb 24, 2018

Behaviour

'registration' event should be called when app is open

Actual Behaviour

iOS app get push permissions dialog but 'registration' event is not called.

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

OS X 10.11.6 El Capitan

Cordova CLI version and cordova platform version

cordova 7.1.0
cordova platform 6.3.0 ios

Plugin version

phonegap-plugin-push 2.1.3

Sample Code that illustrates the problem

index.js:

onDeviceReady: function() {
app.push = PushNotification.init({
android: {},
ios: {
"sound": true,
"vibration": true,
"badge": true
},
windows: {}
});
app.push.on('registration', function(data) {
alert(data.registrationId);
});
app.push.on('error', function(e) {
alert(e.message);
});
app.push.on('notification', function(data) {
alert(data.message);
});

  alert("last msg");
}

Logs taken while reproducing problem

Push Plugin register called
PushPlugin.register: setting badge to false
PushPlugin.register: clear badge is set to 0
PushPlugin.register: better button setup
FCM Sender ID (null)
Using APNS Notification

@bluesaki
Copy link

same problem to me

@bluesaki
Copy link

any help on this, please ?

@brahimbouine
Copy link

brahimbouine commented Mar 29, 2018

same here
i use v 2.1.1
android work fine ios nooo 👎

@stale
Copy link

stale bot commented Jun 3, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 3, 2018
@stale stale bot removed the wontfix label Jun 4, 2018
@macdonst
Copy link
Member

macdonst commented Jun 4, 2018

Sorry folks, I can't reproduce this issue.

@Pete-St
Copy link

Pete-St commented Jun 26, 2018

Push Plugin register called
PushPlugin.register: setting bade to true
PushPlugin.register: clear badge is set to 1
PushPlugin.register: better button setup
FCM Registration Token: (valid-looking token)
Push Plugin register success: <another valid-looking token>

... and then nothing.

@apatelVse
Copy link

apatelVse commented Jan 22, 2019

I have the same issue .
With plugin 1.8.4 which is working with IOS but was not working with Android 8. so upgrade to push plugin 2.2.3.
Now I can register a device with a push plugin version 2.2.3 on IOS APNs but not receiving notification.
Same plugin is working with the Android FCM

@robertolocal
Copy link

same issue here

@RodrigoQuintas
Copy link

same issue here, using version 2.2.3

@namrataukirde
Copy link

Same issue here, using ~2.1.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

9 participants