Are you using PushWoosh to send notifications to your iOS Cordova hybrid app? Have you suddenly begun getting an alert notification while the app is active?
Strangely, this happened to me out of the blue. For weeks this did not happen but magically does now.
A few others have experienced it in the past:
- https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin/issues/35
- https://community.pushwoosh.com/questions/1107/in-app-notification-on-ios-when-active
In the Xcode log, you'll see this:
2015-01-11 10:15:32.507 Kids In Touch[6559:1466524] Will show push notifications alert
Based on instructions in that GitHub issue, I was finally able to resolve this. The issue mentions adding Pushwoosh_SHOW_ALERT
to your info.plist
. If you're an Xcode novice like myself, this won't mean much.
Shameless Plug : Kids In Touch - Training Wheels for Texting
After some digging, I discovered this is simply the Info settings tab in Xcode. You can have to add a new Custom iOS Target Properties item here.
After running the app again, you'll see this in the Xcode log and those troublesome alerts inside the app will go away.
2015-01-11 10:15:32.507 Kids In Touch[6559:1466524] Will show push notifications alert: 0