Affects Version/s: Release 3.4.1, Release 3.5.0
Fix Version/s: None
iOS, iPhone 5, iPhone 5s, iPhone6, iPhone 6 Plus
iPhone 6 on iOS 8.1.1 and 8.1.2
iPhone 6+ on iOS 8.0.2
iPhone 5 on 8.1
Mobile SDK 3.5.0 and 3.4.1
Sprint:2015 Sprint 06 SDK
I've discovered a bug where the app crashes when it receives some (3+) push notifications while the iPhone's screen is turned off and the app is in background.
1. Create a new mobile project
2. Add this code to the app via app.js
3. Please replace the ACS keys with your own and the GUID with your own.
4. Install to device
5. Open App
Allow it to retrieve a device token (used below)
6. Send 2 notifications
7. You'll see "CALLBACK..." in console logs
8. Background app with home button
9. Send 3+ noticiations
10. You should now get the crash in the console
After some push notifications, the 'callback' function does not get called anymore. After that, when I turn the screen back on, the app crashes completely with an error in the console.
This happens on at least iPhone 5S, iPhone 6 and iPhone 6 Plus and is a critical bug since it prevents users from receiving important notifications!
I've put together an example app & server and closely documented this issue at: https://github.com/VanCoding/iOS-Push-Bug
Using this you can reproduce this error on your own.
I'm using SDK 3.4.0.GA btw.