Open EugeneSnihovsky opened 6 years ago
@jlorente do you have any time to look at this one?
As workaround for now I use this check
document.hasFocus()
If application is opened or in background it will be true
, if fully closed - false
.
I have a lot of work this week, but i will try to take a look at it on next friday.
anyone has resolved this bug?
I can not tell whether I started the application by tapping push notification while locking on iOS 12.
The status is as follows, this is the same as when you started by tapping the icon.
document.hasFocus() = false coldstart = false foreground = false
I have fixed the foreground attribute in this pull request and will check how to fix coldstart one in the future.
Same problem here, coldstart is always false on iOS
Steps to Reproduce
I use real device IPad with ios 10.3.3
Simple example
Launch app and send voip notification (I use release mode with
ssl://gateway.push.apple.com:2195
url). Receive notification withadditionalData.coldstart === false
Quit from app (not move to background, full exit). Send voip notification. Receive notification with
additionalData.coldstart === false
(see it from Xcode device console. Device is connected via cable).Open app from received push notification. Send another voip notification. Receive notification with
additionalData.coldstart === false
Cordova CLI version and cordova platform version
cli packages: (/Users/eugene/.npm-global/lib/node_modules)
global packages:
local packages:
System:
Plugin version
Logs taken while reproducing problem
I always receive in device log (foreground also not work, always false even app is opened)
Is this a bug or I missed something? I need to find programmatically my app state (opened (background/foreground) or fully closed)