Start a new topic
Answered

iOS 10 push not working when app in background

I do have a problem. iOS push is  working perfectly fine on iOS 9 but it does not on iOS 10. I included the new methods responsible for handling push in iOS 10. i.e. I implemented the UNUserNotificationCenterDelegate protocol. I tried to ask for help from apple developer support and I was told that the problem was coming from the third party SDK i was using for the push. I need help. 


Thanks,

Fabrice.


Best Answer

Fabrice,


Please find attached sample Kinvey push project. I have tested it on iOS 10.0.1 and 10.1.1 and working fine.


Thanks,

Pranav

Kinvey Support

zip

Well, the problem arose in September  when iOS 10 was released. I wrote my app in swift 2.3 targeting iOS 9.3 and above. I am using KinveyKit - 1.40.8. Just wondering,Do i have to provide the KID here??


Thanks,

Fabrice.

Hi Fabrice,


Considering that we are on a public forum, sharing the kid (i.e. the app key) is not a problem. You don't need to (and shouldn't) share the app secret or the master secret.


We at Kinvey can use the kid to go through the logs which might help us locate the root cause of this issue.



Regards,

Wani

Kinvey Support

Hello,

Okay, the app key is "kid_SkLLgUO3". I even tried to use swift 3 with kinvey sdk-3..the same problem happened in iOS 10 too.


Thanks,

Fabrice.

Hello,


@Pranav, while you are taking a look at the code that i sent,  would you mind sending me the code you tested that worked? I am developing the app for a client and am getting close  to the deadline. 


Thanks,

Fabrice.

Fabrice,


Can you please send me your relevant code so that I can try it out?


Also I tested push notifications with 10.0.2 as well as 10.1.1 and they seem to be working fine.


Thanks,

Pranav

Kinvey Support

I have attached a sample project in swift. I tried it before and it didn't work on iOS 10. Hope this helps.


Thanks,

Fabrice.

zip
(50.9 KB)
Thanks Fabrice. Will take a look at it and get back to you asap.

Thanks,
Pranav
Kinvey Support

 

Answer

Fabrice,


Please find attached sample Kinvey push project. I have tested it on iOS 10.0.1 and 10.1.1 and working fine.


Thanks,

Pranav

Kinvey Support

zip
Fabrice,

I will look into it and get back to you.

Thanks,
Pranav
Kinvey Support

 

Fabrice,


  1. Can you provide me some specific timestamps when the error occured?
  2. What is the KID of your app?
  3. What is the SDK version?



Thanks,
Pranav
Kinvey Support
Login or Signup to post a comment