fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
624 stars 996 forks source link

IOS 10 #112

Open uselessai opened 7 years ago

uselessai commented 7 years ago

When I use this plugin with a device with IOS 10.. Function GetToken always is null..

And it works perfectly with Android devices and simulators devices in IOS..

elewin commented 7 years ago

I'm having the same problem, it works fine on ios9, but on ios10 it's returning null

elewin commented 7 years ago

Could it have to do with lag time between when the user selects "allow" on the push notification permission popup, and when the plugin attempts to get a token? I've noticed if i wait a couple seconds after allowing the app to have push permission before executing the getToken function it seems to work sometimes

1fabiopereira commented 7 years ago

I have the same problem

lukjel commented 7 years ago

+1 - the same problem

tangtermsak commented 7 years ago

same here >.<

PriceFallin commented 7 years ago

I'm having the same issues with iOS 10. Has anyone found a solution?

Eccenux commented 7 years ago

Looking at the code it seems like none of required changes for iOS 10 is implemented. See FCM docs (from "Register for remote notifications" section).

tangtermsak commented 7 years ago

I fixed it by using local storage set time interval to get token till it not null and save in local storage then process what it want.

uselessai commented 7 years ago

At least It works I have a problem with the certification, file .p12, that I upload to the firebase console.

Notifications works when the app is in background or closed.. but if a reset the device notifications doesn't work.. i have to open the app at least once..

grapemix commented 7 years ago

I am extremely confused here. The maintainer claimed this plugin is iOS10 ready in 10/10/2016. But we still have problem in here. And this repo has not been updated since Jul except 2 pull request and bumping up the version. The 2 pull request does not seems to relate to iOS10 anyway according to the pull request author. Is anyone even reading the tickets??! I already experienced a few bugs which are already filed, but neglected...

tryadelion commented 7 years ago

any news ?

benny1308 commented 7 years ago

Maybe we should move to another plugin... any suggestions? @fechanique please wake up, your project needs you :-)

jusdeleon commented 7 years ago

Did you guys manage to get it to work on iOS 10? The "Allow push notifications" confirmation does not pop-up for iOS 10 devices. Push notifications for iOS 9 devices work though.