Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
514 stars 197 forks source link

Can't seem to get Push enabled after upgrading to iOS10/XCode 8 #257

Open adamgins opened 7 years ago

adamgins commented 7 years ago

@raix not sure if you have tried this with iOS10/XCode app.

I got my core app working as per https://forums.meteor.com/t/ios-10-compatibility/26065/54

I manually enabled Push Notifications in XCode (under the Capabilities tab):

screen shot 2016-10-02 at 9 07 59 pm

However my app does not seem to have it enabled, once installed:

screen shot 2016-10-02 at 9 09 23 pm

it looks like it's enabled here too:

screen shot 2016-10-02 at 9 11 34 pm

With my existing production/previous versions this has always worked.

Any ideas pls?

raix commented 7 years ago

Might be related to https://github.com/phonegap/phonegap-plugin-push/issues/1256

I think updating the cordova dependency should solve it

raix commented 7 years ago

try latest on https://github.com/raix/push/releases

adamgins commented 7 years ago

Thanks.

I think I found the issue... it's related to XCode Config. I had to turn of "automatically manage signing" in XCode project config. Then you can specifically set it for dev/prod with the correct certificates.

This seems to have re-enabled my push.

Also, I was doing Push.Configure in a meteor.startup callback and tried something "clever" to check Push.enabled()... but that did not work. Anyway, I seem to have got past that hurdle, just busy trying to deploy via TestFlight and then hopefully on to production.

I am busy hitting some non-push issues, released to permissions around plugins... will see how that goes.

I will look at that release you provided in a bit

thanks again

adamgins commented 7 years ago

@raix I upgraded to latest 1.4.2 beta 9 and I am getting this issue, via XCode 8 console

[TotalPluginStartup] 86.908996ms
2016-10-06 12:48:00.304334 Buzzy[3984:944524] createNotificationChecker
2016-10-06 12:48:00.304382 Buzzy[3984:944524] not coldstart
2016-10-06 12:48:00.305365 Buzzy[3984:944524] active
2016-10-06 12:48:00.305528 Buzzy[3984:944524] PushPlugin skip clear badge
Buzzy(3984,0x1b8026c40) malloc: *** error for object 0x1700ac9c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

I seemed to be getting it on 1.3.5.1 too, not sure what I did to break it?

AshHimself commented 7 years ago

Hey @adamgins, I had this error and it daunted me for days. This was the cause for me, hopefully it is for you as well. https://www.mail-archive.com/issues@cordova.apache.org/msg72838.html

adamgins commented 7 years ago

@AshHimself thanks heaps!!! Yep that solved it... much appreciated. I guess the following question, is I wonder whats broken?

AshHimself commented 7 years ago

That @adamgins is above my pay grade :) I do however believe this is not a RAIX nor Meteor issue and will need to be resolved within the Cordova project.