In my Swift code to handle push notification, I have this line:
if ( application.applicationState == UIApplicationStateInactive || application.applicationState == UIApplicationStateBackground) {
}
What causes the compilation error: using the unresolved identifier "UIApplicationStateInactive"
Am I missing some import files?
thank
source
share